Commit Graph

253 Commits

Author SHA1 Message Date
David Simansky d75836c4f4
Infer versions for E2E tests from current branch (#1627)
* Infer versions for E2E tests from current branch

* Fix var export

* Reflect review feedback
2022-03-14 06:29:18 -07:00
David Simansky a591c0c027
Fix Serving & Eventing version fetch in e2e tests (#1625) 2022-03-09 07:03:49 -08:00
kmahapatra 4922d37bb7
Grab latest version in presubmit (#1623) 2022-03-08 14:21:48 -08:00
Gunjan Vyas 7be13f05ac
Traffic split auto redirection should only consider the active revisions (#1617)
* Traffic split should consider only the active revisions

* Modified unit test for traffic split change

* Fix e2e test case

* e2e test fix
2022-03-08 04:04:05 -08:00
Gunjan Vyas ad863f3f37
Added eventtype support (#1598)
* Added eventtype list and eventingv1beta1 client to Knparams

* Add kn eventtype describe command

* Added eventtype builder and create command

* Added eventtype delete command

* Added autocomplete for eventtype commands

* Added mock client and create tests

* Added delete tests

* Added describe tests

* Added tests for list

* Added flag test

* Added mock client tests

* Added completion helper tests

* Added client tests

* Added types test

* Added e2e tests

* Removed non-essential list columns and renamed imports

* Update pkg/kn/commands/eventtype/list.go

Co-authored-by: David Simansky <dsimansk@redhat.com>

Co-authored-by: David Simansky <dsimansk@redhat.com>
2022-03-02 03:48:43 -08:00
Paul Schweigert 5030b5df2f
updates kn versions for presubmit integration test (#1577) 2022-01-25 18:16:44 -08:00
Gunjan Vyas ddbae2e96e
Fix for file not found error message discrepancy in windows (#1575)
* Fix for file not found error message discrepancy in windows

* Added comment
2022-01-24 06:51:30 -08:00
David Simansky fc85cff55c
Remove k8s cluster version pin (#1572) 2022-01-21 01:31:05 -08:00
Kenjiro Nakayama 530841f1f5
Use istio stable intead of latest (#1549)
* upgrade to latest dependencies

bumping knative.dev/eventing 5601111...b3bccaf:
  > b3bccaf Refactor filter receiver tests (# 5991)
bumping knative.dev/serving ea2fcde...7499ae2:
  > 7499ae2 Update net-gateway-api nightly (# 12423)
  > 5a93929 Update net-kourier nightly (# 12427)
  > e9afd16 Update net-istio nightly (# 12426)
  > 69ea206 Update net-contour nightly (# 12425)
  > 12360b6 Update net-certmanager nightly (# 12424)
  > 7ac9d5d upgrade to latest dependencies (# 12420)
  > 7e6a1d1 Update net-istio nightly (# 12418)
  > a711eef Update net-contour nightly (# 12417)
  > 5ee5ae7 Update net-gateway-api nightly (# 12416)
  > 442ef77 Update net-certmanager nightly (# 12412)

Signed-off-by: Knative Automation <automation@knative.team>

* Use istio stable intead of latest

Co-authored-by: Knative Automation <automation@knative.team>
2021-12-14 04:31:50 -08:00
Gunjan Vyas 8fd19e6bea
Add --tag flag to service create and allow traffic split <100 when @latest is specified (#1514)
* Add --tag flag to service create

* added comments

* Added tests

* handled @latest tag in traffic split

* added unit tests

* added e2e tests

* added comments

* simplified code

* add e2e tests for error cases

* Add handling for non latest revisions with mutation bool
2021-11-29 05:31:04 -08:00
David Simansky 2b1e77de20
Align autoscaling annotations in tests (#1531)
* Align autoscaling annotations in unit tests

* Fix code style

* Fix e2e tests
2021-11-26 05:34:51 -08:00
David Simansky 86cbd7c794
Move away from grpc-ping test image as symlink (#1521) 2021-11-16 02:02:52 -08:00
David Simansky 4fb6bdb95a
Fix fetching of Istion latest release (#1509) 2021-11-04 03:14:01 -07:00
David Simansky 10d9b3dad9
Fix the most common E2E flakes (#1510)
* Add simple wait for URL to domain mapping E2E test

* Disable sync delete of brokers used in defer
2021-11-03 14:39:00 -07:00
David Simansky a1cf5bf81f
Update Serving and Eventing versions in E2E tests (#1507) 2021-11-02 11:39:41 -07:00
Gunjan Vyas da6f164dbb
Remove lookup-plugins flag (#1506)
Co-authored-by: Roland Huß <roland@ro14nd.de>
2021-11-02 10:26:41 -07:00
David Simansky 7de73389c1
Fix fetching of Istio latest release (#1505)
* Fix fetching of Istio latest release

* Pin Istio tag name
2021-11-02 07:29:41 -07:00
Roland Huß db3bcbc6b0
Rename `--extra-containers` to `--containers` (#1499)
and make `--extra-containers deprecated`
2021-11-01 04:39:22 -07:00
Gunjan Vyas d8d0ee1e6e
Calculate traffic split when N-1 revisions are specified (#1483)
* Calculate traffic split when N-1 revisions are specified

* Added test cases for traffic split

* enhanced error messages and added example

* added e2e test

* refactored verifyInput function

* Update docs/cmd/kn_service_update.md

Co-authored-by: Navid Shaikh <shaikhnavid14@gmail.com>

* Update pkg/kn/commands/service/update.go

Co-authored-by: Navid Shaikh <shaikhnavid14@gmail.com>

* added unit test for revision list error

Co-authored-by: Navid Shaikh <shaikhnavid14@gmail.com>
2021-10-29 13:24:59 -07:00
Roland Huß 33666193cf
Rename --concurrency-target and --concurrency-utilization (#1490)
* Rename --concurrency-target and --concurrency-utilization

The new option names are --scale-target and --scale-limit, respectively

Both options are still available but deprecated. Reasoning is that both
options really belong to the 'scale' option group as they influencen
the scaling behaviour.

* rebased and added changelog
2021-10-27 02:40:01 -07:00
Roland Huß 03045c8195
Move `--autoscale-window` to `--scale-window` (#1489)
* Move `--autoscale-window` to `--scale-window`

and deprecate `--autoscale-window`

* regenerate docs

* fix issue that --scale-window was not picked up

* add some test

* add some additional test
2021-10-26 02:12:20 -07:00
David Simansky a736af7129
Combine update deps actions format manually (#1484)
* upgrade to latest dependencies

bumping knative.dev/eventing ff4bc40...5f69768:
  > 5f69768 upgrade to latest dependencies (# 5817)
  > a6a819d upgrade to latest dependencies (# 5812)
bumping knative.dev/networking c2191da...91e7d04:
  > 91e7d04 upgrade to latest dependencies (# 531)
  > 16ef524 upgrade to latest dependencies (# 529)
  > cc26c45 Update actions (# 530)
  > 0c6b765 Deprecate httpProtocol: "Disabled" in config-network (# 528)
bumping knative.dev/pkg fa2f8f1...3463dd7:
  > 3463dd7 upgrade to latest dependencies (# 2315)
  > a5bb759 upgrade to latest dependencies (# 2314)
  > e61a20d Update actions (# 2313)
  > 0e24b49 Format go code (# 2312)
bumping knative.dev/hack 815cd31...47ac3b0:
  > 47ac3b0 Split build tags that are in a comma separated list (# 83)
  > 8687668 [# 50] Add error message when Bash < 4 (# 79)
  > 8d79600 Fixes # 81 (# 82)
  > 51582ce fix misspelling functionallity -> functionality (# 78)
  > 675e1fd Correctly specify the user when creating clusterrolebinding for kind (# 80)
bumping knative.dev/serving 7c6d4bc...30087cd:
  > 30087cd upgrade to latest dependencies (# 12145)
  > e5d8560 Format go code (# 12139)
  > c9b2e25 upgrade to latest dependencies (# 12141)
  > ebdd09e Update actions (# 12140)
  > caced61 Update net-certmanager nightly (# 12138)
  > c6f1707 Add logic to retry pause/resume for pod freezer (# 12049)
  > 0780c10 Trust k8s readiness signal (# 12086)
  > 0592224 Update net-kourier nightly (# 12135)
  > 1cac17a Fix HTTP Redirect test for Contour (# 12124)
  > 8ecc7f9 Update net-istio nightly (# 12134)
  > f37a630 Update net-certmanager nightly (# 12133)
  > 04efc1e Update net-kourier nightly (# 12128)
  > 8cc9b0d upgrade to latest dependencies (# 12132)

* Update actions
2021-10-18 08:56:36 -07:00
David Simansky c7bad9f123
Fix domain mapping E2E test config (#1476)
* Fix domain mapping E2E test config

* Pin GKE Kube version to 1.20
2021-10-13 03:20:47 -07:00
Roland Huß 61b8a75414
Update versions for 0.26.0 (#1459)
* Deprecate `lookup-path` option and updated relevant documentation

Lookup in path is now the default for all plugins.
This option will be removed eventually in a future version,
when path lookup is enabled uncoditinally and can't be turned of.

* Update versions for 0.26.0
2021-09-22 02:11:17 -07:00
Gunjan Vyas 5d4b4f3759
Fix windows e2e plugin tests (#1457)
* Fix windows e2e plugin tests

* Suggested changes
2021-09-21 09:54:37 -07:00
Martin Gencur 7e90dca8f3
Tekton - use ClusterRoleBinding v1 (#1440)
* Tekton test - ClusterRoleBinding v1

* make it compatible with Kubernetes 1.22

* TMP: Test Tekton in presubmits

* Revert "TMP: Test Tekton in presubmits"

This reverts commit 8996ac7692.
2021-08-30 07:56:28 -07:00
Martin Gencur 95193bd7e5
TestServiceExport works with images specified by digest (#1435)
* TestServiceExport works with images specified by digest

* Do not expect image name in TestSourceContainer test

* it might not be available if the test image is passed as image digest
2021-08-30 03:50:28 -07:00
Lionel Villard 035150ec4c
update versions to 0.25 (#1425) 2021-08-10 18:18:59 -07:00
Gunjan Vyas ce790b40d6
Adding --tls option to domain create command (#1419)
* Adding --tls option to domain create command

* Adding client test for builder

* Update CHANGELOG.adoc

Co-authored-by: David Simansky <dsimansk@redhat.com>

* Edited domain create usage message

* Update docs/cmd/kn_domain_create.md

Co-authored-by: Roland Huß <rhuss@redhat.com>

* Update pkg/serving/v1alpha1/client.go

Co-authored-by: Roland Huß <rhuss@redhat.com>

* Update docs and usage message

* Changing test domain name in e2e for tls test

* fix e2e domain create test case

Co-authored-by: David Simansky <dsimansk@redhat.com>
Co-authored-by: Roland Huß <rhuss@redhat.com>
2021-08-10 05:09:13 -07:00
David Simansky fc7e87667f
Add support for multi-containers (#1382)
* Add support for multi-containers

* Update examples

* Fix UpdateContainers to match by name

* Add experimental note & tests

* Rename flag to --extra-containers

* Fix formatting

* Fix flag renaming leftovers

* Update pkg/kn/flags/podspec_test.go

Co-authored-by: Roland Huß <rhuss@redhat.com>

Co-authored-by: Roland Huß <rhuss@redhat.com>
2021-08-09 12:25:12 -07:00
Gunjan Vyas 9d1bfc6197
Adding class option to broker create (#1402)
* Adding --class flag to broker create command

* Updated broker class usage

* Updated broker create examples
2021-08-06 06:36:20 -07:00
Roland Huß a252d9b38d
Add an update timestamp to trigger the creation of a revision when needed. (#1364)
* Add a update timestamp anytime a new revision should be triggered. Previously client side revision names was this trigger but since we switched to server-side revision naming by default that didn't work anymore (and hasn't worked with server-side revision naming before, too).

Fixes #1318.

* fix e2e test

* add some unit tests

* Update error handling + added some tests

* fixed compile error in test

* lint fixes
2021-07-26 12:17:16 -07:00
Gunjan Vyas b05a1114b3
Adding base64 data handling to ping update command (#1392) 2021-07-26 02:59:15 -07:00
Martin Gencur c145ecaf26
Use namespaced kubectl for sa,role,rolebinding in tests (#1396) 2021-07-22 05:06:03 -07:00
Martin Gencur 2d6cab730d
Run tests as project admin (#1384)
* Create Broker explicitly rather than by labeling namespace

* creating explicity is allowed for users with project admin permissions
in the given project

* Use Role instead of ClusterRole to work with Sources

* this allows for running the tests as project admin users and don't
require cluster-admin permissions

* Separate SourceList test for cluster admin and regular user

* Instructions for running E2E as project admin

* Fix imports

* Define output as a new variable in source_list_crd_test

* Fix golint

* Reference an issue created for source list-types
2021-07-14 00:53:31 -07:00
David Simansky dfc8665d12
Remove standalone DomainMapping setup (#1370) 2021-07-08 08:00:23 -07:00
Martin Gencur 157d568bcb
Do not cleanup on failure in Tekton tests (#1369)
* Cleanup Tekton tests only on success

* TMP: Run in presubmits

* Skip Istio addon in Tekton tests

* Revert "TMP: Run in presubmits"

This reverts commit d050971465.
2021-07-08 05:13:23 -07:00
Dave Protasowski 0bbb3ec9d9
update versions to 0.24 (#1360)
* update versions

* upgrade integration tests
2021-06-29 12:00:17 -07:00
Zbynek Roubalik a086cc9707
Add `env-value-from` flag & keep order of env vars in created/updated services (#1328)
* Add --env-value-from & preserve env var order

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* add e2e test for checking Service Env Vars

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* update changelog

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* refactor UpdateEnvVars()

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* apply review suggestions

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* fix typo

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* improve test cases names

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-06-29 01:48:13 -07:00
Hyounggyu Choi 217df5ccf5
Make e2e test run over other networks (#1339) 2021-06-08 12:52:41 -07:00
Ville Aikas 3cc608f9b1
bump presubmit to .23 (#1323) 2021-05-18 23:55:15 -07:00
Martin Gencur adb6bdff74
Fully qualified test images (#1307)
* Use fully qualified image references in helloworld Dockerfile

* TMP: Run tekton tests in pre-submit

* remove this when the tekton tests pass

* TMP: Use mgencurs fork so that buildah uses the updated Dockerfile

* TMP: Fix running in pre-submit

* Revert "TMP: Fix running in pre-submit"

This reverts commit 35694f067e.

* Revert "TMP: Use mgencurs fork so that buildah uses the updated Dockerfile"

This reverts commit b7ad15e4d8.

* Revert "TMP: Run tekton tests in pre-submit"

This reverts commit 36d3a95c1b.
2021-05-10 05:40:00 -07:00
David Simansky e5b19e12ab
Update Eventing Sources API to v1 (#1299)
* Update Eventing Sources API to v1

* Update vendor dir

* Fix imports formatting

* Move PingSource client to v1beta2

* Fix sink resolve

* Fix serving version string

* Use Eventing version 0.22.1 in e2e tests
2021-05-03 03:12:58 -07:00
Yevhen Vydolob 563f1d9294
Fix service/revision list output with '-o' param (#1276)
* Fix service/revision list output with '-o' param

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>

* Update CHANGELOG

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>

* Simplify output flag check

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>

* Respect '-o' in all list commands

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>

* Fix imports

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>

* Fix e2e test

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>

* Fix e2e test

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>

* Remove unnecessary import

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>

* Fix import

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>

* Fix tests

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
2021-04-13 07:53:00 -07:00
David Simansky 33deb82a98
chore(ci): Update E2E latest release versions for Serving & Eventing (#1285) 2021-04-08 09:49:51 -07:00
David Simansky 10ea0df157
Add DomainMapping CRUD commands (#1267)
* Add DomainMapping CRUD commands

* fix: Reflect review feedback

* fix: Fix prealloc lint error

* fix: Add specific reference resolution

* fix: Remove Kubernetes support in ref

* chore: Add context param to client functions
2021-04-01 08:53:23 -07:00
Martin Gencur 43b669fe9f
Pass revision to git-clone Tekton task - fix nightly Tekton tests (#1270)
* Pass revision to git-clone Tekton task

* the branch main branch has been renamed from "master" and the default
value for the git-clone task is no longer valid

* TMP: Test Tekton in-presubmit

* Revert "TMP: Test Tekton in-presubmit"

This reverts commit 23649c9a71.
2021-03-19 07:39:53 -07:00
Kaustubh Pande 431637a1d9
add support for namespace for all commands that takes --sink option (#1264) 2021-03-18 06:41:54 -07:00
Kaustubh Pande 2ad8dfe483
add --prune & --prune-all options to delete all the unreferenced revisions (#1217) 2021-03-15 02:26:00 -07:00
David Simansky 95ccaeb648
Use common Eventing setup from hack library (#1258)
* Use common Eventing setup from hack library

* fix: Keep eventing core though
2021-03-10 02:24:25 -08:00