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

Create cleanup #5589

Merged
Merged

Conversation

valaparthvi
Copy link
Contributor

What type of PR is this:
/kind code-refactoring

What does this PR do / why we need it:
This PR cleans up odo create and all of its references from odo.
Which issue(s) this PR fixes:

Fixes #5564

PR acceptance criteria:

  • Unit test

  • Integration test

  • Documentation

How to test changes / Special notes to the reviewer:
You can review each commit independently, each one has a clear purpose.

@netlify
Copy link

netlify bot commented Mar 24, 2022

Deploy Preview for odo-docusaurus-preview ready!

Name Link
🔨 Latest commit 9371ebf
🔍 Latest deploy log https://app.netlify.com/sites/odo-docusaurus-preview/deploys/623d7a49f217f9000994a0a3
😎 Deploy Preview https://deploy-preview-5589--odo-docusaurus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@openshift-ci openshift-ci bot requested review from cdrage and feloy March 24, 2022 13:13
@valaparthvi valaparthvi marked this pull request as draft March 24, 2022 13:15
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. label Mar 24, 2022
@odo-robot
Copy link

odo-robot bot commented Mar 24, 2022

Unit Tests on commit 7dc9aa8 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Mar 24, 2022

Kubernetes Tests on commit 7dc9aa8 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Mar 24, 2022

OpenShift Tests on commit 7dc9aa8 finished successfully.
View logs: TXT HTML

@valaparthvi valaparthvi marked this pull request as ready for review March 24, 2022 14:55
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. label Mar 24, 2022
@openshift-ci openshift-ci bot requested a review from kadel March 24, 2022 14:56
@odo-robot
Copy link

odo-robot bot commented Mar 24, 2022

Validate Tests on commit 7dc9aa8 finished successfully.
View logs: TXT HTML

@@ -35,7 +35,7 @@ var _ = Describe("odo devfile push command tests", func() {
When("creating a nodejs component", func() {
output := ""
BeforeEach(func() {
helper.Cmd("odo", "create", "--project", commonVar.Project, cmpName, "--devfile", helper.GetExamplePath("source", "devfiles", "nodejs", "devfile-registry.yaml")).ShouldPass()
helper.Cmd("odo", "init", "--name", cmpName, "--devfile-path", helper.GetExamplePath("source", "devfiles", "nodejs", "devfile-registry.yaml")).ShouldPass()
Copy link
Contributor

Choose a reason for hiding this comment

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

Feel free to completely remove all the problematic tests from this file (or all the file), as this file will be removed in the other PR #5570

"github.com/tidwall/gjson"

"github.com/redhat-developer/odo/tests/helper"
Copy link
Contributor

Choose a reason for hiding this comment

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

Feel free to remove this file, as it will be removed from the other PR #5561

@@ -5,7 +5,7 @@ import (

. "github.com/onsi/ginkgo"

//We continued iterating on bracket pair guides. Horizontal lines now outline the scope of a bracket pair. Also, vertical lines now depend on the indentation of the code that is surrounded by the bracket pair.. "github.com/onsi/gomega"
// We continued iterating on bracket pair guides. Horizontal lines now outline the scope of a bracket pair. Also, vertical lines now depend on the indentation of the code that is surrounded by the bracket pair.. "github.com/onsi/gomega"
Copy link
Contributor

Choose a reason for hiding this comment

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

You can also remove this file

@cdrage
Copy link
Member

cdrage commented Mar 24, 2022

Hey @valaparthvi I'm going to close #5575 as your PR directly influences. I'll keep yours open instead as you did a much better job cleaning up the tests!

@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

@valaparthvi
Copy link
Contributor Author

/override ci/prow/v4.10-integration-e2e

IBM cloud test passes for both K8s and OC.

@openshift-ci
Copy link

openshift-ci bot commented Mar 25, 2022

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

In response to this:

/override ci/prow/v4.10-integration-e2e

IBM cloud test passes for both K8s and OC.

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.

@valaparthvi valaparthvi requested a review from feloy March 25, 2022 10:09
@cdrage
Copy link
Member

cdrage commented Mar 25, 2022

Tests pass, code looks good!

/lgtm

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

feloy commented Mar 25, 2022

/approve

@openshift-ci
Copy link

openshift-ci bot commented Mar 25, 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 Mar 25, 2022
@openshift-merge-robot openshift-merge-robot merged commit 80d7cfd into redhat-developer:main Mar 25, 2022
cdrage pushed a commit to cdrage/odo that referenced this pull request Aug 31, 2022
* Cleanup create code

* Add missing integration tests from odo create to odo init

* Add CreateLocalEnv to create .odo/env/env.yaml file for commands that require it but cannot create it

* Remove 'odo create'  usages from integration tests

* Remove create reference from the Makefile

* REmove create doc from v3

Signed-off-by: Parthvi Vala <[email protected]>

* Remove test files

* Fix CI failure

Signed-off-by: Parthvi Vala <[email protected]>
@rm3l rm3l added the area/refactoring Issues or PRs related to code refactoring label Jun 19, 2023
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. area/refactoring Issues or PRs related to code refactoring 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.

remove odo create
5 participants