Skip to content

Commit

Permalink
fix: remove TestSyncOptionDryRun test (argoproj#3939)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Matyushentsev authored Jul 13, 2020
1 parent 817f68a commit 60637e6
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions test/e2e/app_management_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -853,25 +853,6 @@ func TestSyncOptionPruneFalse(t *testing.T) {
Expect(ResourceSyncStatusIs("Pod", "pod-1", SyncStatusCodeOutOfSync))
}

// make sure that if we sync with dry run, app does not go OutOfSync
func TestSyncOptionDryRun(t *testing.T) {
Given(t).
Path("two-nice-pods").
When().
Create().
Sync().
Then().
Expect(OperationPhaseIs(OperationSucceeded)).
Expect(SyncStatusIs(SyncStatusCodeSynced)).
When().
PatchFile("pod-1.yaml", `[{"op": "replace", "path": "/spec/containers/0/image", "value": "nginx:1.19.0"}]`).
Sync("--dry-run").
Then().
Expect(OperationPhaseIs(OperationSucceeded)).
Expect(SyncStatusIs(SyncStatusCodeSynced)).
Expect(ResourceSyncStatusIs("Pod", "pod-1", SyncStatusCodeSynced))
}

// make sure that if we have an invalid manifest, we can add it if we disable validation, we get a server error rather than a client error
func TestSyncOptionValidateFalse(t *testing.T) {

Expand Down

0 comments on commit 60637e6

Please sign in to comment.