Skip to content

Commit

Permalink
Merge pull request #596 from res0nance/fix-tests
Browse files Browse the repository at this point in the history
Fix failing tests
  • Loading branch information
res0nance authored Apr 13, 2021
2 parents a674aee + 3ce5b24 commit 53a5cb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/java/hudson/plugins/ec2/ConfigurationAsCodeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void testUnixData() throws Exception {

final SpotConfiguration spotConfig = slaveTemplate.spotConfig;
assertNotEquals(null, spotConfig);
assertEquals(true, spotConfig.getFallbackToOndemand());
assertTrue(spotConfig.getFallbackToOndemand());
assertEquals(3, spotConfig.getSpotBlockReservationDuration());
assertEquals("0.15", spotConfig.getSpotMaxBidPrice());
assertTrue(spotConfig.useBidPrice);
Expand Down Expand Up @@ -98,7 +98,7 @@ public void testUnix() throws Exception {
assertTrue(ec2Cloud.canProvision(new LabelAtom("clear")));
assertTrue(ec2Cloud.canProvision(new LabelAtom("linux")));

assertEquals(null, slaveTemplate.spotConfig);
assertNull(slaveTemplate.spotConfig);
}

@Test
Expand All @@ -121,7 +121,7 @@ public void testWindowsData() throws Exception {
assertTrue(ec2Cloud.canProvision(new LabelAtom("vs2019")));

final AMITypeData amiType = slaveTemplate.getAmiType();
assertTrue(!amiType.isUnix());
assertFalse(amiType.isUnix());
assertTrue(amiType.isWindows());
assertTrue(amiType instanceof WindowsData);
final WindowsData windowsData = (WindowsData) amiType;
Expand Down Expand Up @@ -275,7 +275,7 @@ public void testMac() throws Exception {
assertTrue(ec2Cloud.canProvision(new LabelAtom("clear")));
assertTrue(ec2Cloud.canProvision(new LabelAtom("mac")));

assertEquals(null, slaveTemplate.spotConfig);
assertNull(slaveTemplate.spotConfig);
}

@Test
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/hudson/plugins/ec2/MacDataExport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
connectBySSHProcess: false
connectionStrategy: PRIVATE_IP
deleteRootOnTermination: false
ebsEncryptRootVolume: DEFAULT
ebsOptimized: false
hostKeyVerificationStrategy: CHECK_NEW_SOFT
labelString: "mac metal"
Expand Down

0 comments on commit 53a5cb1

Please sign in to comment.