tests: Update swagger petstore URLs from http to https to fix failing tests (#411)

Accessing the http URLs was doing a 302 redirect to https.

Co-authored-by: Aaron Watry <aaron.watry@advarra.com>
This commit is contained in:
Aaron Watry
2020-10-02 02:57:43 -05:00
committed by GitHub
parent b70d6ca9ca
commit 61df613cd2

View File

@@ -48,8 +48,8 @@ public class GeneralConverterTest {
FileUtils.deleteQuietly(outputDirectory.toFile());
//When
Swagger2MarkupConverter.from(URI.create("http://petstore.swagger.io/v2/swagger.json")).build()
.toFolder(outputDirectory);
Swagger2MarkupConverter.from(URI.create("https://petstore.swagger.io/v2/swagger.json")).build()
.toFolder(outputDirectory);
//Then
String[] files = outputDirectory.toFile().list();
@@ -108,8 +108,8 @@ public class GeneralConverterTest {
FileUtils.deleteQuietly(outputDirectory.toFile());
//When
Swagger2MarkupConverter.from(new URL("http://petstore.swagger.io/v2/swagger.json")).build()
.toFolder(outputDirectory);
Swagger2MarkupConverter.from(new URL("https://petstore.swagger.io/v2/swagger.json")).build()
.toFolder(outputDirectory);
//Then
String[] files = outputDirectory.toFile().list();