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

Test to validate the EC2Cloud private key migration #500

Merged
merged 5 commits into from
Sep 18, 2020

Conversation

varyvol
Copy link

@varyvol varyvol commented Sep 18, 2020

Adds to #498 an automated test validating the migration for an EC2 cloud is correctly done.

@MRamonLeon @djesionek

@varyvol varyvol changed the title Key migration Test to validate the EC2Cloud private key migration Sep 18, 2020
Copy link
Contributor

@MRamonLeon MRamonLeon left a comment

Choose a reason for hiding this comment

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

I guess this PR superseeds #498 right?

public JenkinsRule r = new JenkinsRule();

@Test
@LocalData
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add some comment explaining that the local data is from a previous version of EC2 to show it clear the migration works? Or maybe in the config.xml you can add a comment noticing the privateKey is the actual key and not a credential and it works.

Copy link
Author

Choose a reason for hiding this comment

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

Added.

@varyvol
Copy link
Author

varyvol commented Sep 18, 2020

I don't pretend this to supersede the original PR, only to demonstrate how to use LocalData to perform the related testing.

@MRamonLeon MRamonLeon merged commit e622e8d into jenkinsci:master Sep 18, 2020
@CptPlastic
Copy link

CptPlastic commented Sep 18, 2020

This breaks the plugin. We ended up rolling back.
POST issues when updating KeyPair.

@varyvol
Copy link
Author

varyvol commented Sep 21, 2020

@CptPlastic this only adds a test, so I guess you'll be referring to a previous PR. Which version did you update to?

@timja
Copy link
Member

timja commented Oct 23, 2020

this is raised as https://issues.jenkins-ci.org/browse/JENKINS-63707

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants