Skip to content
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

Merged

Conversation

rnapoles-rh
Copy link
Contributor

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:

@netlify
Copy link

netlify bot commented Apr 5, 2022

Deploy Preview for odo-docusaurus-preview canceled.

Name Link
🔨 Latest commit 2854903
🔍 Latest deploy log https://app.netlify.com/sites/odo-docusaurus-preview/deploys/6267f99de32c2100080bf1f5

@openshift-ci openshift-ci bot requested review from feloy and valaparthvi April 5, 2022 12:38
@odo-robot
Copy link

odo-robot bot commented Apr 5, 2022

Unit Tests on commit 41b3dc4 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Apr 5, 2022

Kubernetes Tests on commit 41b3dc4 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Apr 5, 2022

OpenShift Tests on commit 41b3dc4 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Apr 5, 2022

Validate Tests on commit 41b3dc4 finished successfully.
View logs: TXT HTML

@valaparthvi valaparthvi mentioned this pull request Apr 6, 2022
2 tasks
tests/integration/generic_test.go Outdated Show resolved Hide resolved
})

// Disabling test temporarely while odo registry gets developed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Disabling test temporarely while odo registry gets developed
// TODO: Disabling test temporarily while odo registry gets developed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

// })
// })

// Disabling test temporarely while odo registry gets developed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Disabling test temporarely while odo registry gets developed
// TODO: Disabling test temporarily while odo registry gets developed

Comment on lines 129 to 72
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)

})
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@feloy
Copy link
Contributor

feloy commented Apr 6, 2022

@rnapoles-rh Could you add these tests to .ibm/pipelines/ so they are executed on the Kubernetes and/or OpenShift clusters on IBM Cloud?

@rnapoles-rh
Copy link
Contributor Author

@rnapoles-rh Could you add these tests to .ibm/pipelines/ so they are executed on the Kubernetes and/or OpenShift clusters on IBM Cloud?

Sure thing

@feloy
Copy link
Contributor

feloy commented Apr 8, 2022

@rnapoles-rh You get an error running these tests on Kubenetes, because of a known issue: #5650
Could you set this test for OpenShift only?

odo generic
/workspace/5142e227-52f8-4283-98ff-69b75dcb1e93/tests/integration/generic_test.go:12
  when executing odo version command
  /workspace/5142e227-52f8-4283-98ff-69b75dcb1e93/tests/integration/generic_test.go:146
    should show the version of odo major components including server login URL [It]
    /workspace/5142e227-52f8-4283-98ff-69b75dcb1e93/tests/integration/generic_test.go:152

    Expected
        <bool>: false
    to be true

@@ -20,6 +20,7 @@ cleanup_namespaces
make test-cmd-login-logout
make test-cmd-project
make test-e2e-devfile
make test-generic
Copy link
Contributor

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
Copy link
Contributor

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.

Copy link
Contributor

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

tests/integration/generic_test.go Outdated Show resolved Hide resolved
@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Apr 12, 2022
@rnapoles-rh
Copy link
Contributor Author

@rnapoles-rh You get an error running these tests on Kubenetes, because of a known issue: #5650 Could you set this test for OpenShift only?

odo generic
/workspace/5142e227-52f8-4283-98ff-69b75dcb1e93/tests/integration/generic_test.go:12
  when executing odo version command
  /workspace/5142e227-52f8-4283-98ff-69b75dcb1e93/tests/integration/generic_test.go:146
    should show the version of odo major components including server login URL [It]
    /workspace/5142e227-52f8-4283-98ff-69b75dcb1e93/tests/integration/generic_test.go:152

    Expected
        <bool>: false
    to be true

Right, skipping as needed for Kubernetes cluster

@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Apr 26, 2022
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.6% 0.6% Duplication

@odo-robot
Copy link

odo-robot bot commented Apr 26, 2022

Windows Tests (OCP) on commit 41b3dc4 finished successfully.
View logs: TXT HTML

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Apr 28, 2022
@feloy
Copy link
Contributor

feloy commented Apr 28, 2022

/approve

@openshift-ci
Copy link

openshift-ci bot commented Apr 28, 2022

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. label Apr 28, 2022
@anandrkskd
Copy link
Contributor

/lgtm

@rnapoles-rh
Copy link
Contributor Author

Infra error: Ginkgo timed out waiting for all parallel nodes to report back!
/test v4.10-integration-e2e

@feloy
Copy link
Contributor

feloy commented Apr 28, 2022

/override ci/prow/v4.10-integration-e2e
IBM Cloud tests pass

@openshift-ci
Copy link

openshift-ci bot commented Apr 28, 2022

@feloy: Overrode contexts on behalf of feloy: ci/prow/v4.10-integration-e2e

In response to this:

/override ci/prow/v4.10-integration-e2e
IBM Cloud tests pass

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.

@openshift-merge-robot openshift-merge-robot merged commit f280a61 into redhat-developer:main Apr 28, 2022
cdrage pushed a commit to cdrage/odo that referenced this pull request Aug 31, 2022
* rebasing

* Incorporated additional feedback, removed make test-generic from openshift-tests.sh as it runs test-integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. lgtm Indicates that a PR is ready to be merged. Required by Prow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor test-generic
5 participants