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

Debug test file cleanup left over #5038

Conversation

prietyc123
Copy link
Contributor

What type of PR is this?

/kind tests

What does this PR do / why we need it:
This pr will remove the tmp directory debug test data leftover and also a workaround for #5037 in tests

Which issue(s) this PR fixes:

Fixes #?

PR acceptance criteria:

How to test changes / Special notes to the reviewer:
make test-cmd-devfile-storage should not throw error in #5037

@openshift-ci openshift-ci bot added kind/tests needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. labels Sep 3, 2021
@netlify
Copy link

netlify bot commented Sep 3, 2021

✔️ Deploy Preview for odo-docusaurus-preview ready!

🔨 Explore the source changes: 6bfc8aa

🔍 Inspect the deploy log: https://app.netlify.com/sites/odo-docusaurus-preview/deploys/6131a6f9a0bf5f00075477cf

😎 Browse the preview: https://deploy-preview-5038--odo-docusaurus-preview.netlify.app

@prietyc123 prietyc123 force-pushed the CleanupDebugJsonLeftOutFromTest branch from 096456f to 6bfc8aa Compare September 3, 2021 04:39
@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 Sep 3, 2021
@@ -328,7 +328,7 @@ func CommonAfterEach(commonVar CommonVar) {
func GjsonMatcher(values []gjson.Result, expected []string) bool {
matched := 0
for i, v := range values {
if strings.Contains(v.String(), expected[i]) {
if CaseInsensitiveStringContains(v.String(), expected[i]) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This method is used in a lot of places, are we sure we never want to test for case in any of these tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added such workaround for #5037 . I think it does not make sense after your comment #5037 (comment)

@prietyc123 prietyc123 force-pushed the CleanupDebugJsonLeftOutFromTest branch 2 times, most recently from 3b08e07 to 8d76854 Compare September 3, 2021 06:40
@prietyc123 prietyc123 changed the title Debug file cleanup and adding case insensitive function Debug test file cleanup left over Sep 3, 2021
@valaparthvi
Copy link
Member

valaparthvi commented Sep 6, 2021

@prietyc123 I see you closed the issue #5037, does that mean this PR is not relevant anymore?

@prietyc123 prietyc123 force-pushed the CleanupDebugJsonLeftOutFromTest branch from c9fb9bd to 9273142 Compare September 6, 2021 07:24
@sonarcloud
Copy link

sonarcloud bot commented Sep 6, 2021

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.0% 0.0% Duplication

@prietyc123
Copy link
Contributor Author

@prietyc123 I see you closed the issue #5037, does that mean this PR is not relevant anymore?

@valaparthvi This pr is still relevant to remove debug test left over. #5037 was a part of change introduced in 6bfc8aa and later removed.

@prietyc123
Copy link
Contributor Author

/retest

@prietyc123
Copy link
Contributor Author

kuberenetes job was waiting for a long time in queue and then failed.

/test psi-kubernetes-integration-e2e

@feloy
Copy link
Contributor

feloy commented Sep 9, 2021

/approve

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Sep 9, 2021
@openshift-ci
Copy link

openshift-ci bot commented Sep 9, 2021

[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 Sep 9, 2021
@openshift-merge-robot openshift-merge-robot merged commit 62d1512 into redhat-developer:main Sep 9, 2021
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.

None yet

4 participants