Skip to content

Commit

Permalink
fix e2e domain create test case
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasgun committed Aug 10, 2021
1 parent f29d141 commit 7f80ced
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/domain_mapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package e2e

import (
"testing"
"time"

"knative.dev/client/pkg/util"

Expand Down Expand Up @@ -59,6 +60,7 @@ func TestDomain(t *testing.T) {

t.Log("create domain with TLS")
domainCreateWithTls(r, "newdomain.com", "hello", "tls-secret")
time.Sleep(time.Second)
domainDescribe(r, "newdomain.com", true)
}

Expand All @@ -75,7 +77,7 @@ func domainCreateWithTls(r *test.KnRunResultCollector, domainName, serviceName,
command = append(command, options...)
out := r.KnTest().Kn().Run(command...)
r.AssertNoError(out)
assert.Check(r.T(), util.ContainsAllIgnoreCase(out.Stdout, "domain", "mapping", serviceName, domainName, "created", "namespace", r.KnTest().Kn().Namespace()))
assert.Check(r.T(), util.ContainsAllIgnoreCase(out.Stdout, "domain", "mapping", domainName, "created", "namespace", r.KnTest().Kn().Namespace()))
}

func domainUpdate(r *test.KnRunResultCollector, domainName, serviceName string, options ...string) {
Expand Down

0 comments on commit 7f80ced

Please sign in to comment.