Fixes TestArgoCDWaitEnsureAppIsNotCrashing. Closes #2088 (#2092)

This commit is contained in:
Alex Collins 2019-08-02 15:06:45 -07:00 committed by GitHub
parent 5f2dc0e9e0
commit bc77e8ce12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -164,24 +164,15 @@ func TestComparisonFailsIfClusterNotAdded(t *testing.T) {
Expect(DoesNotExist())
}
func TestArgoCDWaitEnsureAppIsNotCrashing(t *testing.T) {
func TestCannotSetInvalidPath(t *testing.T) {
Given(t).
Path(guestbookPath).
When().
Create().
Sync().
IgnoreErrors().
AppSet("--path", "garbage").
Then().
Expect(SyncStatusIs(SyncStatusCodeSynced)).
Expect(HealthIs(HealthStatusHealthy)).
And(func(app *Application) {
_, err := fixture.RunCli("app", "set", app.Name, "--path", "crashing-guestbook")
assert.NoError(t, err)
}).
When().
Sync().
Then().
Expect(SyncStatusIs(SyncStatusCodeSynced)).
Expect(HealthIs(HealthStatusDegraded))
Expect(Error("", "app path does not exist"))
}
func TestManipulateApplicationResources(t *testing.T) {