github.com/argoproj/argo-cd@v1.8.7/test/e2e/deployment_test.go (about) 1 package e2e 2 3 import ( 4 "testing" 5 6 "github.com/argoproj/gitops-engine/pkg/health" 7 . "github.com/argoproj/gitops-engine/pkg/sync/common" 8 9 . "github.com/argoproj/argo-cd/pkg/apis/application/v1alpha1" 10 . "github.com/argoproj/argo-cd/test/e2e/fixture/app" 11 ) 12 13 // when we have a config map generator, AND the ignore annotation, it is ignored in the app's sync status 14 func TestDeployment(t *testing.T) { 15 Given(t). 16 Path("deployment"). 17 When(). 18 Create(). 19 Sync(). 20 Then(). 21 Expect(OperationPhaseIs(OperationSucceeded)). 22 Expect(SyncStatusIs(SyncStatusCodeSynced)). 23 Expect(HealthIs(health.HealthStatusHealthy)). 24 When(). 25 PatchFile("deployment.yaml", `[ 26 { 27 "op": "replace", 28 "path": "/spec/template/spec/containers/0/image", 29 "value": "nginx:1.17.4-alpine" 30 } 31 ]`). 32 Sync() 33 }