-
Notifications
You must be signed in to change notification settings - Fork 244
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
refactoring generic-test #5628
refactoring generic-test #5628
Conversation
✅ Deploy Preview for odo-docusaurus-preview canceled.
|
tests/integration/generic_test.go
Outdated
}) | ||
|
||
// Disabling test temporarely while odo registry gets developed |
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.
// Disabling test temporarely while odo registry gets developed | |
// TODO: Disabling test temporarily while odo registry gets developed |
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.
Done
tests/integration/generic_test.go
Outdated
// }) | ||
// }) | ||
|
||
// Disabling test temporarely while odo registry gets developed |
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.
// Disabling test temporarely while odo registry gets developed | |
// TODO: Disabling test temporarily while odo registry gets developed |
tests/integration/generic_test.go
Outdated
When("deleting two projects one after the other", func() { | ||
It("should be able to delete them sequentially", func() { | ||
project1 := helper.CreateRandProject() | ||
project2 := helper.CreateRandProject() | ||
|
||
helper.DeleteProject(project2) | ||
helper.DeleteProject(project1) | ||
helper.DeleteProject(project2) | ||
}) | ||
}) | ||
|
||
Context("When deleting three project one after the other in opposite order", func() { | ||
It("should be able to delete", func() { | ||
It("should be able to delete them in any order", func() { | ||
project1 := helper.CreateRandProject() | ||
project2 := helper.CreateRandProject() | ||
project3 := helper.CreateRandProject() | ||
|
||
helper.DeleteProject(project1) | ||
helper.DeleteProject(project2) | ||
helper.DeleteProject(project1) | ||
helper.DeleteProject(project3) | ||
|
||
}) | ||
}) |
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.
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.
Done
@rnapoles-rh Could you add these tests to |
Sure thing |
daf2d97
to
46387f7
Compare
@rnapoles-rh You get an error running these tests on Kubenetes, because of a known issue: #5650
|
.ibm/pipelines/openshift-tests.sh
Outdated
@@ -20,6 +20,7 @@ cleanup_namespaces | |||
make test-cmd-login-logout | |||
make test-cmd-project | |||
make test-e2e-devfile | |||
make test-generic |
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.
@rnapoles-rh I don't think this is required as generic tests are getting tested in make test-integration
test suite.
@@ -17,6 +17,7 @@ cleanup_namespaces | |||
make test-interactive | |||
make test-e2e-devfile | |||
make test-cmd-project | |||
make test-generic |
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.
@rnapoles-rh I don't think this is required as generic tests are getting tested in make test-integration
test suite.
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.
But we are not running make test-integration
itself
Right, skipping as needed for Kubernetes cluster |
…shift-tests.sh as it runs test-integration
46387f7
to
2854903
Compare
Kudos, SonarCloud Quality Gate passed!
|
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: feloy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Infra error: |
/override ci/prow/v4.10-integration-e2e |
@feloy: Overrode contexts on behalf of feloy: ci/prow/v4.10-integration-e2e In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
* rebasing * Incorporated additional feedback, removed make test-generic from openshift-tests.sh as it runs test-integration
What type of PR is this:
/kind tests
What does this PR do / why we need it:
Which issue(s) this PR fixes:
Fixes #5324
PR acceptance criteria:
Unit test
Integration test
Documentation
How to test changes / Special notes to the reviewer: