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

Upgrade to new jcasc test harness #168

Merged
merged 1 commit into from
Jan 14, 2020

Conversation

timja
Copy link
Member

@timja timja commented Jan 14, 2020

JCasc had to create a new dependency that wasn't a tests classifier because maven doesn't allow you to bring dependencies through classifiers.

Upgrading here so that PCT works again,

Tracking:
jenkinsci/bom#164


import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

public class CredentialRenameTest {
public static File input = new File("src/test/resources/com/microsoftopentechnologies/helper/correctFormatOldConfig.xml");
private Jenkins jenkinsInstance;
private static final String correctConfigContent =
Copy link
Member Author

Choose a reason for hiding this comment

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

on new credentials it seems like the credential.xml was cached in memory and credentials weren't being loaded by just overwriting it on the file system


CredentialRename.renameStorageConfig();
Copy link
Member Author

Choose a reason for hiding this comment

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

this is called on startup, no need to call it again

@timja
Copy link
Member Author

timja commented Jan 14, 2020

Would be great to get a release with this in, so it can be used in PCT @gavinfish 😄

@@ -93,7 +93,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>credentials</artifactId>
<version>2.1.16</version>
<version>2.2.0</version>
Copy link
Member Author

Choose a reason for hiding this comment

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

The credentials configurator moved to the credentials plugin from the support plugin in this version

Copy link
Member

@gavinfish gavinfish left a comment

Choose a reason for hiding this comment

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

lgtm
nice work 🎉

@gavinfish gavinfish merged commit c550f1a into jenkinsci:dev Jan 14, 2020
@timja timja deleted the update-to-new-jcasc-test-harness branch January 14, 2020 07:53
@gavinfish
Copy link
Member

Would be great to get a release with this in, so it can be used in PCT @gavinfish 😄

Sure, I will draft a release.

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

Successfully merging this pull request may close these issues.

2 participants