github.com/argoproj/argo-cd/v3@v3.2.1/test/e2e/app_skipreconcile_test.go (about) 1 package e2e 2 3 import ( 4 "testing" 5 6 "github.com/argoproj/argo-cd/v3/common" 7 . "github.com/argoproj/argo-cd/v3/pkg/apis/application/v1alpha1" 8 . "github.com/argoproj/argo-cd/v3/test/e2e/fixture/app" 9 ) 10 11 func TestAppSkipReconcileTrue(t *testing.T) { 12 Given(t). 13 Path(guestbookPath). 14 When(). 15 // app should have no status 16 CreateFromFile(func(app *Application) { 17 app.Annotations = map[string]string{common.AnnotationKeyAppSkipReconcile: "true"} 18 }). 19 Then(). 20 Expect(NoStatus()) 21 } 22 23 func TestAppSkipReconcileFalse(t *testing.T) { 24 Given(t). 25 Path(guestbookPath). 26 When(). 27 // app should have status 28 CreateFromFile(func(app *Application) { 29 app.Annotations = map[string]string{common.AnnotationKeyAppSkipReconcile: "false"} 30 }). 31 Then(). 32 Expect(StatusExists()) 33 } 34 35 func TestAppSkipReconcileNonBooleanValue(t *testing.T) { 36 Given(t). 37 Path(guestbookPath). 38 When(). 39 // app should have status 40 CreateFromFile(func(app *Application) { 41 app.Annotations = map[string]string{common.AnnotationKeyAppSkipReconcile: "not a boolean value"} 42 }). 43 Then(). 44 Expect(StatusExists()) 45 }