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

Add namespace context for exec command in the test #22713

Merged
merged 1 commit into from
Dec 1, 2023
Merged

Conversation

musienko-maxim
Copy link
Contributor

@musienko-maxim musienko-maxim commented Nov 30, 2023

What does this PR do?

The test applies oc commands without the name of the namespace.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

https://issues.redhat.com/browse/CRW-5065
#22575

How to test this PR?:

Set the env. Where will be a test run for the Namespace/OpenShift project.: For example,
export TEST_NAMESPACE=admin-devspaces
Review and merge PR, get results from the Jenkins pipeline

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

@che-bot che-bot added kind/enhancement A feature request - must adhere to the feature request template. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. target/branch Indicates that a PR will be merged into a branch other than master. labels Nov 30, 2023
@dmytro-ndp
Copy link
Contributor

@musienko-maxim : should PR fix the issue #22575 ?

Asking, because WorkspaceWithParent test had failed on "Check expected containers in the parent POD" step again being run using this branch: https://main-jenkins-csb-crwqe.apps.ocp-c1.prod.psi.redhat.com/job/Testing/job/e2e/job/basic/job/typescript-tests/16241/consoleFull

@musienko-maxim
Copy link
Contributor Author

Yes, we can close the issue because this PR should fix the #22575. If we get some other problems, I hope it won't happen - we can create new issue

@musienko-maxim musienko-maxim merged commit 57fc319 into main Dec 1, 2023
2 checks passed
@musienko-maxim musienko-maxim deleted the CRW-5065 branch December 1, 2023 13:33
@che-bot che-bot removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Dec 1, 2023
@dmytro-ndp
Copy link
Contributor

);
expect(initContainerName).contains('che-code-injector');
});

test('Check expected environment variables', function (): void {
const envList: string = shellExecutor.executeArbitraryShellScript(
`${API_TEST_CONSTANTS.TS_API_TEST_KUBERNETES_COMMAND_LINE_TOOL} exec -i ${podName} -c tools -- sh -c env`
`${API_TEST_CONSTANTS.TS_API_TEST_KUBERNETES_COMMAND_LINE_TOOL} -n admin-devspaces exec -i ${podName} -c tools -- sh -c env`
Copy link
Contributor

Choose a reason for hiding this comment

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

admin-devspaces is hardcoded

@dmytro-ndp
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template. target/branch Indicates that a PR will be merged into a branch other than master.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants