Skip to content

chore(tests): Improving the tests for OSLogin SSH sample #8486

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

Merged
merged 33 commits into from
Jan 19, 2023
Merged

Conversation

m-strzelczyk
Copy link
Contributor

Description

Issue #8476
Issue #8429

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Nov 10, 2022
@m-strzelczyk
Copy link
Contributor Author

I want to change the test behavior to preserve the instances for which it fails. This way I can try to debug it better, as it happens very rarely.

@m-strzelczyk m-strzelczyk marked this pull request as ready for review January 12, 2023 16:41
@m-strzelczyk m-strzelczyk requested review from a team as code owners January 12, 2023 16:41
@snippet-bot
Copy link

snippet-bot bot commented Jan 12, 2023

Here is the summary of changes.

You are about to add 1 region tag.
You are about to delete 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@m-strzelczyk m-strzelczyk added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 17, 2023
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 17, 2023
@kweinmeister kweinmeister added do not merge Indicates a pull request not ready for merge, due to either quality or timing. and removed do not merge Indicates a pull request not ready for merge, due to either quality or timing. labels Jan 19, 2023
@m-strzelczyk m-strzelczyk merged commit 4c1f37e into main Jan 19, 2023
@m-strzelczyk m-strzelczyk deleted the issue-8429 branch January 19, 2023 12:39
telpirion pushed a commit that referenced this pull request Mar 13, 2023
* docs(samples): New version of the OSLogin SSH script

* Adding tests for the new snippet

* Fixing test

* Fixing lint problems

* Adding region tag to new sample

* Apply suggestions from code review

Co-authored-by: Dan Lee <[email protected]>

* Fixing some issues

* Better exception handling

* Fixing typing

* Fixing typing

* Making test more tolerant of ssh failures

* Linting

* Re-raising the exception if ssh fails too many times.

* Improving error reporting

* Making test more understanding with firewalls

* Updating file name + linting.

* Trying a different approach

Signed-off-by: Maciej Strzelczyk <[email protected]>

* Changing the behavior of test to preserve instances of failed tests.

Signed-off-by: Maciej Strzelczyk <[email protected]>
Co-authored-by: Dan Lee <[email protected]>
Co-authored-by: Karl Weinmeister <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants