client/test
Navid Shaikh fc9b24c1e5 Add custom comparison for checking multiple substrings (#227)
* Adds custom comparison for checking multiple substrings

 This changeset introduces custom comparison for checking if a target
 string has given multiple substrings, namely `ContainsMultipleSubstrings`.

 Also removes `commands.TestContains` function and replaces all references
 of `commands.TestContains` with `gotest.tools/assert.Check` function and
 uses `ContainsMultipleSubstrings` as comparison function.

* Renames and makes the compare function variadic

 New name: ContainsAll
 New location: pkg/util/compare.go
 Also the function now takes target string as first arg,
 and accepts any number of substrings to check.
 Removed the message arg, the compare function composes the error message.
 For eg:
```
        Actual output: foo-abcd   foo       <unknown>   0 OK / 0     <unknown>   <unknown>
        Missing strings: foo-abcd1, foo1
```

* Adds tests for compare utility ContainsAll

* Update vendor/modules.txt
2019-07-05 10:07:32 -07:00
..
e2e Add custom comparison for checking multiple substrings (#227) 2019-07-05 10:07:32 -07:00
e2e-smoke-tests.sh Adds kn route list command (#202) 2019-07-02 11:25:32 -07:00
e2e-tests-local.sh Adds a Golang version of e2e Basic workflow that can execute locally (#121) 2019-06-11 19:49:43 -07:00
e2e-tests.sh Add the support to test against specified release of Knative serving (#170) 2019-06-28 11:30:08 -07:00
presubmit-integration-tests-latest-release.sh Add the support to test against specified release of Knative serving (#170) 2019-06-28 11:30:08 -07:00
presubmit-tests.sh Add the support to test against specified release of Knative serving (#170) 2019-06-28 11:30:08 -07:00