Skip to content

Commit 4a6ebec

Browse files
committed
[Test][Gradle Plugin] Update GenerateTaskDslTest.kt
Extended the Test for testing remote inputSpecs with urlParams, a case that caused problems in the maven plugin.
1 parent b7b8da5 commit 4a6ebec

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

modules/openapi-generator-gradle-plugin/src/test/kotlin/GenerateTaskDslTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,15 @@ class GenerateTaskDslTest : TestBase() {
3434
@Test
3535
fun `openApiGenerate should create an expected file structure from URL config`() {
3636
val specUrl = "https://raw.githubusercontent.com/OpenAPITools/openapi-generator/b6b8c0db872fb4a418ae496e89c7e656e14be165/modules/openapi-generator-gradle-plugin/src/test/resources/specs/petstore-v3.0.yaml"
37+
val urlParams ="?meaningless=params&so=it&results=in&illegal=filenames&on=windows"
3738
// Arrange
3839
val buildContents = """
3940
plugins {
4041
id 'org.openapi.generator'
4142
}
4243
openApiGenerate {
4344
generatorName = "kotlin"
44-
remoteInputSpec = "$specUrl"
45+
remoteInputSpec = "$specUrl$urlParams"
4546
outputDir = file("build/kotlin").absolutePath
4647
apiPackage = "org.openapitools.example.api"
4748
invokerPackage = "org.openapitools.example.invoker"

0 commit comments

Comments
 (0)