mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-23 09:18:26 +00:00
parent
5f2dc0e9e0
commit
bc77e8ce12
1 changed files with 4 additions and 13 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue