mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
chore: enable use-any from revive (#21282)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -29,8 +29,8 @@ func TestIsAppSyncStatusRefreshed(t *testing.T) {
|
||||
{
|
||||
name: "No OperationState",
|
||||
app: &unstructured.Unstructured{
|
||||
Object: map[string]interface{}{
|
||||
"status": map[string]interface{}{},
|
||||
Object: map[string]any{
|
||||
"status": map[string]any{},
|
||||
},
|
||||
},
|
||||
expectedValue: true,
|
||||
@@ -38,9 +38,9 @@ func TestIsAppSyncStatusRefreshed(t *testing.T) {
|
||||
{
|
||||
name: "No FinishedAt, Completed Phase",
|
||||
app: &unstructured.Unstructured{
|
||||
Object: map[string]interface{}{
|
||||
"status": map[string]interface{}{
|
||||
"operationState": map[string]interface{}{
|
||||
Object: map[string]any{
|
||||
"status": map[string]any{
|
||||
"operationState": map[string]any{
|
||||
"phase": "Succeeded",
|
||||
},
|
||||
},
|
||||
@@ -51,9 +51,9 @@ func TestIsAppSyncStatusRefreshed(t *testing.T) {
|
||||
{
|
||||
name: "FinishedAt After ReconciledAt & ObservedAt",
|
||||
app: &unstructured.Unstructured{
|
||||
Object: map[string]interface{}{
|
||||
"status": map[string]interface{}{
|
||||
"operationState": map[string]interface{}{
|
||||
Object: map[string]any{
|
||||
"status": map[string]any{
|
||||
"operationState": map[string]any{
|
||||
"finishedAt": "2021-01-01T01:05:00Z",
|
||||
"phase": "Succeeded",
|
||||
},
|
||||
@@ -67,9 +67,9 @@ func TestIsAppSyncStatusRefreshed(t *testing.T) {
|
||||
{
|
||||
name: "FinishedAt Before ReconciledAt & ObservedAt",
|
||||
app: &unstructured.Unstructured{
|
||||
Object: map[string]interface{}{
|
||||
"status": map[string]interface{}{
|
||||
"operationState": map[string]interface{}{
|
||||
Object: map[string]any{
|
||||
"status": map[string]any{
|
||||
"operationState": map[string]any{
|
||||
"finishedAt": "2021-01-01T01:02:00Z",
|
||||
"phase": "Succeeded",
|
||||
},
|
||||
@@ -92,8 +92,8 @@ func TestIsAppSyncStatusRefreshed(t *testing.T) {
|
||||
|
||||
func TestGetAppProj_invalidProjectNestedString(t *testing.T) {
|
||||
app := &unstructured.Unstructured{
|
||||
Object: map[string]interface{}{
|
||||
"spec": map[string]interface{}{},
|
||||
Object: map[string]any{
|
||||
"spec": map[string]any{},
|
||||
},
|
||||
}
|
||||
informer := cache.NewSharedIndexInformer(nil, nil, 0, nil)
|
||||
@@ -176,8 +176,8 @@ func TestInitTimeout(t *testing.T) {
|
||||
|
||||
func TestCheckAppNotInAdditionalNamespaces(t *testing.T) {
|
||||
app := &unstructured.Unstructured{
|
||||
Object: map[string]interface{}{
|
||||
"spec": map[string]interface{}{},
|
||||
Object: map[string]any{
|
||||
"spec": map[string]any{},
|
||||
},
|
||||
}
|
||||
namespace := "argocd"
|
||||
|
||||
Reference in New Issue
Block a user