Skip to content

Commit

Permalink
fix test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
rhuss committed Feb 24, 2021
1 parent eb66ca2 commit 6af1bba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
| https://github.com/knative/client/pull/1194[#1194]

| ✨
| Use server-side generated revision names by default now. For BYO revision names use `--revision name` for service commands
| https://github.com/knative/client/issues/1144[#1144]
| Use server-side generated revision names by default now. For BYO revision names use `--revision-name` for service commands
| https://github.com/knative/client/issues/1240[#1240]
|===

## v0.20.0 (2021-01-14)
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/revision_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func TestRevision(t *testing.T) {
test.RevisionListWithService(r, "hello")

t.Log("update hello service and increase revision count to 3")
test.ServiceUpdate(r, "hello", "--env", "TARGET=kn", "--port", "8888")
test.ServiceUpdate(r, "hello", "--env", "TARGET=kn", "--port", "9000")

t.Log("delete three revisions with one revision a nonexistent")
existRevision1 := test.FindRevisionByGeneration(r, "hello", 1)
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func serviceCreatePrivateUpdatePublic(r *test.KnRunResultCollector, serviceName
out = r.KnTest().Kn().Run("service", "update", serviceName,
"--image", pkgtest.ImagePath("helloworld"), "--no-cluster-local")
r.AssertNoError(out)
assert.Check(r.T(), util.ContainsAllIgnoreCase(out.Stdout, "service", serviceName, "unchanged", "namespace", r.KnTest().Kn().Namespace(), "ready"))
assert.Check(r.T(), util.ContainsAllIgnoreCase(out.Stdout, "service", serviceName, "no new revision", "namespace", r.KnTest().Kn().Namespace()))

out = r.KnTest().Kn().Run("service", "describe", serviceName, "--verbose")
r.AssertNoError(out)
Expand Down

0 comments on commit 6af1bba

Please sign in to comment.