Skip to content

Commit

Permalink
fix: update error message for test (argoproj#8942)
Browse files Browse the repository at this point in the history
* fix: update error message for test

Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>

* fix: use message that's common to different k8s versions

Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
Signed-off-by: wojtekidd <wojtek.cichon@protonmail.com>
  • Loading branch information
crenshaw-dev authored and wojtekidd committed Apr 25, 2022
1 parent 83c322f commit 461f5f7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/e2e/app_management_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1256,11 +1256,6 @@ func TestSyncOptionPruneFalse(t *testing.T) {
// 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) {

// k3s does not validate at all, so this test does not work
if os.Getenv("ARGOCD_E2E_K3S") == "true" {
t.SkipNow()
}

Given(t).
Path("crd-validation").
When().
Expand All @@ -1278,7 +1273,7 @@ func TestSyncOptionValidateFalse(t *testing.T) {
Sync().
Then().
// server error
Expect(Error("Error from server", ""))
Expect(Error("cannot be handled as a Deployment", ""))
}

// make sure that, if we have a resource that needs pruning, but we're ignoring it, the app is in-sync
Expand Down

0 comments on commit 461f5f7

Please sign in to comment.