Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Commit de1f30c

Browse files
committed
fix
1 parent 6e32a89 commit de1f30c

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/testInt/kotlin/io/openapiprocessor/core/ProcessorEndToEndRemoteSpec.kt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,16 @@ class ProcessorEndToEndRemoteSpec: StringSpec({
2828

2929
"processes remote openapi with ref's" {
3030
forAll(
31-
row("SWAGGER", "ref-into-another-file"),
32-
row("OPENAPI4J", "ref-into-another-file"),
33-
row("INTERNAL", "ref-into-another-file"),
34-
) { parser, source ->
31+
row("INTERNAL", "ref-into-another-file", "openapi30.yaml"),
32+
row("INTERNAL", "ref-into-another-file", "openapi31.yaml"),
33+
row("SWAGGER", "ref-into-another-file", "openapi30.yaml"),
34+
row("OPENAPI4J", "ref-into-another-file", "openapi30.yaml")
35+
) { parser, source, api ->
3536
val folder = tempdir()
3637

3738
val processor = TestProcessor()
3839
processor.run(mutableMapOf(
39-
"apiPath" to "$repo/src/testInt/resources/tests/$source/inputs/openapi.yaml",
40+
"apiPath" to "$repo/src/testInt/resources/tests/$source/inputs/$api",
4041
"targetDir" to folder.canonicalPath,
4142
"parser" to parser,
4243
"mapping" to mapping
@@ -57,7 +58,9 @@ class ProcessorEndToEndRemoteSpec: StringSpec({
5758
val expected = "$expectedPath/$it"
5859
val generated = generatedPath.resolve (it)
5960

60-
success = success && !files.printUnifiedDiff (expected, generated)
61+
val hasDiff = !files.printUnifiedDiff (expected, generated)
62+
63+
success = success && hasDiff
6164
}
6265

6366
success.shouldBeTrue()

0 commit comments

Comments
 (0)