mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-04 07:08:19 +00:00
* chore: Upgrade Go module to v2 Signed-off-by: jannfis <jann@mistrust.net> * Restore import order Signed-off-by: jannfis <jann@mistrust.net> * fix knowntypes_normalizer codegen error Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com> * fix codegen Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com> * fix Procfile Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com> Co-authored-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
33 lines
817 B
Go
33 lines
817 B
Go
package e2e
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/argoproj/gitops-engine/pkg/health"
|
|
. "github.com/argoproj/gitops-engine/pkg/sync/common"
|
|
|
|
. "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
|
|
. "github.com/argoproj/argo-cd/v2/test/e2e/fixture/app"
|
|
)
|
|
|
|
// when we have a config map generator, AND the ignore annotation, it is ignored in the app's sync status
|
|
func TestDeployment(t *testing.T) {
|
|
Given(t).
|
|
Path("deployment").
|
|
When().
|
|
Create().
|
|
Sync().
|
|
Then().
|
|
Expect(OperationPhaseIs(OperationSucceeded)).
|
|
Expect(SyncStatusIs(SyncStatusCodeSynced)).
|
|
Expect(HealthIs(health.HealthStatusHealthy)).
|
|
When().
|
|
PatchFile("deployment.yaml", `[
|
|
{
|
|
"op": "replace",
|
|
"path": "/spec/template/spec/containers/0/image",
|
|
"value": "nginx:1.17.4-alpine"
|
|
}
|
|
]`).
|
|
Sync()
|
|
}
|