Skip to content

Commit

Permalink
revert tests
Browse files Browse the repository at this point in the history
Signed-off-by: James Lamb <[email protected]>
  • Loading branch information
jameslamb committed Aug 1, 2024
1 parent bc83110 commit b899323
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
12 changes: 0 additions & 12 deletions cmd/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,3 @@ func TestFileDoesNotExist(t *testing.T) {
assert.NotNil(err, "did not error")
assert.Contains(b.String(), "Cannot find container-canary/kubeflow:doesnotexist", "did not fail")
}

func TestValidateRespectsStartupTimeout(t *testing.T) {
assert := assert.New(t)
b := new(bytes.Buffer)
rootCmd.SetOut(b)
rootCmd.SetErr(b)
rootCmd.SetArgs([]string{"validate", "--file", "../examples/kubeflow.yaml", "container-canary/long-sleep:local", "--startup-timeout", "3"})
err := rootCmd.Execute()

assert.NotNil(err, "should fail")
assert.Contains(b.String(), "validation failed", "container failed to start after 3 seconds")
}
3 changes: 0 additions & 3 deletions internal/testdata/containers/long-sleep.Dockerfile

This file was deleted.

0 comments on commit b899323

Please sign in to comment.