@@ -87,7 +87,6 @@ public void run(@Optional @CitrusResource TestContext context) throws IOExceptio
8787 assertTrue (new File (context .getVariable ("exportLocation" ) + "/" + context .getVariable ("exportFolder1" ) + "/swagger.io.crt" ).exists (), "Certificate swagger.io.crt is missing" );
8888 assertTrue (new File (context .getVariable ("exportLocation" ) + "/" + context .getVariable ("exportFolder1" ) + "/AmazonRSA2048M04.crt" ).exists (), "Certificate AmazonRSA2048M04 is missing" );
8989 assertTrue (new File (context .getVariable ("exportLocation" ) + "/" + context .getVariable ("exportFolder1" ) + "/AmazonRootCA1.crt" ).exists (), "Certificate AmazonRootCA1.crt is missing" );
90- //assertTrue(new File(context.getVariable("exportLocation")+"/"+context.getVariable("exportFolder1")+"/Amazon.crt").exists(), "Certificate Amazon.crt is missing");
9190 assertTrue (new File (context .getVariable ("exportLocation" ) + "/" + context .getVariable ("exportFolder1" ) + "/" + context .getVariable ("exportAPIName1" )).exists (), "Exported Swagger-File is missing" );
9291
9392 exportedAPIConfigFile = context .getVariable ("exportLocation" ) + "/" + context .getVariable ("exportFolder2" ) + "/api-config.json" ;
@@ -97,7 +96,6 @@ public void run(@Optional @CitrusResource TestContext context) throws IOExceptio
9796
9897 assertEquals (exportedAPIConfig .get ("version" ).asText (), "2.0.0" );
9998 assertEquals (exportedAPIConfig .get ("organization" ).asText (), "API Development " + context .getVariable ("orgNumber" ));
100- //assertEquals(exportedAPIConfig.get("backendBasepath").asText(), "https://petstore.swagger.io");
10199 assertEquals (exportedAPIConfig .get ("state" ).asText (), "unpublished" );
102100 assertEquals (exportedAPIConfig .get ("path" ).asText (), context .getVariable ("apiPath2" ));
103101 assertEquals (exportedAPIConfig .get ("name" ).asText (), context .getVariable ("apiName2" ));
@@ -108,8 +106,8 @@ public void run(@Optional @CitrusResource TestContext context) throws IOExceptio
108106 assertTrue (exportedAPIConfig .get ("caCerts" ).get (0 ).get ("outbound" ).asBoolean ());
109107
110108 assertTrue (new File (context .getVariable ("exportLocation" ) + "/" + context .getVariable ("exportFolder2" ) + "/swagger.io.crt" ).exists (), "Certificate swagger.io.crt is missing" );
111- assertTrue (new File (context .getVariable ("exportLocation" ) + "/" + context .getVariable ("exportFolder " ) + "/AmazonRSA2048M04.crt" ).exists (), "Certificate StarfieldServicesRootCertificateAuthority-G2.crt is missing" );
112- assertTrue (new File (context .getVariable ("exportLocation" ) + "/" + context .getVariable ("exportFolder " ) + "/AmazonRootCA1.crt" ).exists (), "Certificate AmazonRootCA1.crt is missing" ); //assertTrue(new File(context.getVariable("exportLocation")+"/"+context.getVariable("exportFolder2")+"/Amazon.crt").exists(), "Certificate Amazon.crt is missing");
109+ assertTrue (new File (context .getVariable ("exportLocation" ) + "/" + context .getVariable ("exportFolder2 " ) + "/AmazonRSA2048M04.crt" ).exists (), "Certificate StarfieldServicesRootCertificateAuthority-G2.crt is missing" );
110+ assertTrue (new File (context .getVariable ("exportLocation" ) + "/" + context .getVariable ("exportFolder2 " ) + "/AmazonRootCA1.crt" ).exists (), "Certificate AmazonRootCA1.crt is missing" ); //assertTrue(new File(context.getVariable("exportLocation")+"/"+context.getVariable("exportFolder2")+"/Amazon.crt").exists(), "Certificate Amazon.crt is missing");
113111 assertTrue (new File (context .getVariable ("exportLocation" ) + "/" + context .getVariable ("exportFolder2" ) + "/" + context .getVariable ("exportAPIName2" )).exists (), "Exported Swagger-File is missing" );
114112 }
115113}
0 commit comments