-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add e2e testing with uptest #30
Conversation
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2c48ed8
to
263afb1
Compare
Signed-off-by: Hasan Turken <turkenh@gmail.com>
9ebd34f
to
a1f2484
Compare
Signed-off-by: Hasan Turken <turkenh@gmail.com>
a1f2484
to
e7670fb
Compare
Makefile
Outdated
@$(INFO) running automated tests | ||
@$(KUBECTL) apply -R -f package/cluster | ||
@KUBECTL=$(KUBECTL) KUTTL=$(KUTTL) uptest --claim-or-composite --example-list=examples/cluster-claim.yaml --default-timeout=2400 || $(FAIL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO(turkenh): This line needs to be replaced with available uptest
binary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add uptest
to https://github.com/upbound/build?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@turkenh where can I get the correct uptest
binary version for local uptest-local
testing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is now part of build submodule, you should be able to checkout the PR and run make e2e
after setting up your creds with UPTEST_GCP_CREDS env var.
Signed-off-by: Hasan Turken <turkenh@gmail.com>
Signed-off-by: Hasan Turken <turkenh@gmail.com>
c17e6ed
to
9d8c4bc
Compare
Signed-off-by: Hasan Turken <turkenh@gmail.com>
/test-e2e |
Makefile
Outdated
@$(KUBECTL) -n upbound-system get cm universal-crossplane-config >/dev/null 2>&1 || $(UP) uxp install | ||
@$(KUBECTL) -n upbound-system wait deploy crossplane --for condition=Available --timeout=120s | ||
@$(KUBECTL) get provider.pkg upbound-provider-gcp > /dev/null 2>&1 || $(UP) ctp provider install upbound/provider-gcp:$(PROVIDER_GCP_VERSION) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you considered building the configuration package locally and installing that similar to providers? It'd make it test crossplane.yaml
as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, actually have a draft PR in build submodule: https://github.com/upbound/build/pull/208/files
I remember, I tried to make it work for provider packages as well and gave up after seeing things getting too complicated. But I will give it another try only with configuration package support (for now).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, looks like we are good to go now, especially with the removal of package pull secret requirement things are more straightforward.
Also to indicate only configuration package deployment is supported, I have named the target as local.xpkg.deploy-cfg.<package>
which made me feel better: upbound/build#208
For the changes on this side, please see the last commit.
Signed-off-by: Hasan Turken <turkenh@gmail.com>
68b5f3b
to
27df30a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @turkenh ! Looking great!
Signed-off-by: Hasan Turken <turkenh@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description of your changes
End to end testing with uptest.
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR, as appropriate.How has this code been tested