Skip to content

Conversation

@SkorikSergey
Copy link
Contributor

@SkorikSergey SkorikSergey commented Nov 7, 2025

What does this PR do?

Automate "SSH key with passphrase configuration from the User Dashboard" test-case

Screenshot/screencast of this PR

What issues does this PR fix or reference?

https://issues.redhat.com/browse/CRW-5392

How to test this PR?

To test this PR:

  • set TS_SELENIUM_SSH_PRIVATE_KEY and TS_SELENIUM_SSH_PUBLIC_KEY
  • also passphrase by TS_SELENIUM_SSH_PASSPHRASE
  • set TS_SELENIUM_FACTORY_GIT_REPO_URL for repo url
  • start SshUrlNoOauthPatFactory e2e test

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.

@SkorikSergey SkorikSergey self-assigned this Nov 7, 2025
@SkorikSergey SkorikSergey added area/qe status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. labels Nov 7, 2025
@SkorikSergey SkorikSergey marked this pull request as ready for review November 7, 2025 14:37
'ssh://[email protected]/~admin/private-bb-repo.git';
const privateSshKey: string = FACTORY_TEST_CONSTANTS.TS_SELENIUM_SSH_PRIVATE_KEY;
const publicSshKey: string = FACTORY_TEST_CONSTANTS.TS_SELENIUM_SSH_PUBLIC_KEY;
const sshPassphrase: string = FACTORY_TEST_CONSTANTS.TS_SELENIUM_SSH_PASSPHRASE;
Copy link
Contributor

Choose a reason for hiding this comment

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

Correct name is TS_SELENIUM_SSH_KEY_PASSPHRASE.

TS_SELENIUM_SSH_PUBLIC_KEY: process.env.TS_SELENIUM_SSH_PUBLIC_KEY || '',

/**
* ssh passphrase as string (from environment variable)
Copy link
Contributor

Choose a reason for hiding this comment

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

it would better to say "ssh key passphrase" to avoid confusion

/**
* ssh passphrase as string (from environment variable)
*/
TS_SELENIUM_SSH_PASSPHRASE: process.env.TS_SELENIUM_SSH_PASSPHRASE || '',
Copy link
Contributor

Choose a reason for hiding this comment

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

correct name is TS_SELENIUM_SSH_KEY_PASSPHRASE

@dmytro-ndp
Copy link
Contributor

dmytro-ndp commented Nov 7, 2025

@SkorikSergey: thank you for test automation!

It's also important to ensure in the test that push inside the workspace without personal access token using either terminal or source control view works without asking for the passphrase.
There was a problem with it in the past: eclipse-che/che-dashboard#1157 (comment)

See an example of push verification in the test https://github.com/eclipse-che/che/blob/main/tests/e2e/specs/factory/NoSetupRepoFactory.spec.ts#L192-L251

@dmytro-ndp
Copy link
Contributor

dmytro-ndp commented Nov 11, 2025

@SkorikSergey: thank you for pointing out the fact that SshUrlNoOauthPatFactory will fail if adding https://github.com/eclipse-che/che/blob/main/tests/e2e/specs/factory/NoSetupRepoFactory.spec.ts#L140-L154 steps into it without adding Data.txt file to the test repo:

Please add Data.txt file to those repos as well.

@SkorikSergey SkorikSergey added status/in-progress This issue has been taken by an engineer and is under active development. and removed status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. labels Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/qe status/in-progress This issue has been taken by an engineer and is under active development.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants