Skip to content

Commit 780ce4f

Browse files
committed
fix: add docker-java.properties so that generated test code works with the recent version of Docker
1 parent 81349db commit 780ce4f

6 files changed

Lines changed: 19 additions & 6 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
"required": false
120120
}
121121
},
122-
"generator": ">=1.8.27 <2.0.0",
122+
"generator": ">=1.8.27",
123123
"filters": [
124124
"@asyncapi/generator-filters"
125125
],
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
api.version=1.44

tests/__snapshots__/kafka.test.js.snap

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,11 @@ public class TestcontainerKafkaTest {
476476
`;
477477
478478
exports[`template integration tests for generated files using the generator and kafka example should generate proper config, services and DTOs files for provided kafka 7`] = `
479+
"api.version=1.44
480+
"
481+
`;
482+
483+
exports[`template integration tests for generated files using the generator and kafka example should generate proper config, services and DTOs files for provided kafka 8`] = `
479484
"plugins {
480485
id 'org.springframework.boot' version "$springBootVersion"
481486
id 'io.spring.dependency-management' version "$springDependencyManager"
@@ -505,12 +510,12 @@ dependencies {
505510
"
506511
`;
507512
508-
exports[`template integration tests for generated files using the generator and kafka example should generate proper config, services and DTOs files for provided kafka 8`] = `
513+
exports[`template integration tests for generated files using the generator and kafka example should generate proper config, services and DTOs files for provided kafka 9`] = `
509514
"springBootVersion=3.1.3
510515
springDependencyManager=1.1.3"
511516
`;
512517
513-
exports[`template integration tests for generated files using the generator and kafka example should generate proper config, services and DTOs files for provided kafka 9`] = `
518+
exports[`template integration tests for generated files using the generator and kafka example should generate proper config, services and DTOs files for provided kafka 10`] = `
514519
"package com.asyncapi.service;
515520
516521
import org.springframework.beans.factory.annotation.Autowired;

tests/__snapshots__/mqtt.test.js.snap

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,11 @@ public class TestcontainerMqttTest {
914914
`;
915915
916916
exports[`template integration tests for generated files using the generator and mqtt example should generate proper config, services and DTOs files for basic example 11`] = `
917+
"api.version=1.44
918+
"
919+
`;
920+
921+
exports[`template integration tests for generated files using the generator and mqtt example should generate proper config, services and DTOs files for basic example 12`] = `
917922
"plugins {
918923
id 'org.springframework.boot' version "$springBootVersion"
919924
id 'io.spring.dependency-management' version "$springDependencyManager"
@@ -940,12 +945,12 @@ dependencies {
940945
"
941946
`;
942947
943-
exports[`template integration tests for generated files using the generator and mqtt example should generate proper config, services and DTOs files for basic example 12`] = `
948+
exports[`template integration tests for generated files using the generator and mqtt example should generate proper config, services and DTOs files for basic example 13`] = `
944949
"springBootVersion=3.1.3
945950
springDependencyManager=1.1.3"
946951
`;
947952
948-
exports[`template integration tests for generated files using the generator and mqtt example should generate proper config, services and DTOs files for basic example 13`] = `
953+
exports[`template integration tests for generated files using the generator and mqtt example should generate proper config, services and DTOs files for basic example 14`] = `
949954
"package com.asyncapi.service;
950955
951956

tests/kafka.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ describe('template integration tests for generated files using the generator and
2828
'/src/main/java/com/asyncapi/model/LightMeasuredPayload.java',
2929
'/src/main/java/com/asyncapi/model/LightMeasured.java',
3030
'/src/test/java/com/asyncapi/TestcontainerKafkaTest.java',
31+
'/src/test/resources/docker-java.properties',
3132
'/build.gradle',
3233
'/gradle.properties',
3334
'/src/main/java/com/asyncapi/service/PublisherServiceImpl.java'
@@ -62,4 +63,4 @@ describe('template integration tests for generated files using the generator and
6263
expect(fileWithAnyDate).toMatchSnapshot();
6364
}
6465
});
65-
});
66+
});

tests/mqtt.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ describe('template integration tests for generated files using the generator and
3434
'/src/main/java/com/asyncapi/model/LightMeasured.java',
3535
'/src/main/java/com/asyncapi/model/TurnOnOff.java',
3636
'/src/test/java/com/asyncapi/TestcontainerMqttTest.java',
37+
'/src/test/resources/docker-java.properties',
3738
'/build.gradle',
3839
'/gradle.properties',
3940
'/src/main/java/com/asyncapi/service/PublisherServiceImpl.java'

0 commit comments

Comments
 (0)