specmatic 1.0.0 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/.babelrc +8 -12
  2. package/.github/dependabot.yml +18 -0
  3. package/.github/workflows/publish.yml +22 -0
  4. package/.github/workflows/test.yml +21 -0
  5. package/CONTRIBUTING.MD +17 -41
  6. package/README.md +152 -22
  7. package/dist/app.d.js +2 -1
  8. package/dist/bin/command.line.d.ts +2 -0
  9. package/dist/bin/command.line.js +36 -0
  10. package/dist/bin/index.d.ts +2 -0
  11. package/dist/bin/index.js +4 -5
  12. package/dist/common/logger.d.ts +3 -0
  13. package/dist/common/logger.js +62 -0
  14. package/dist/common/runner.d.ts +4 -0
  15. package/dist/common/runner.js +53 -0
  16. package/dist/config.d.ts +2 -0
  17. package/dist/config.js +6 -7
  18. package/dist/core/index.d.ts +24 -0
  19. package/dist/core/index.js +297 -0
  20. package/dist/core/shutdownUtils.d.ts +2 -0
  21. package/dist/core/shutdownUtils.js +42 -0
  22. package/dist/index.d.ts +2 -0
  23. package/dist/index.js +100 -9
  24. package/dist/kafka/index.d.ts +14 -0
  25. package/dist/kafka/index.js +158 -0
  26. package/global.d.ts +1 -0
  27. package/jest.config.json +5 -0
  28. package/package.json +50 -23
  29. package/specmatic.jar +0 -0
  30. package/src/app.d.ts +1 -1
  31. package/src/bin/__tests__/command.line.ts +40 -0
  32. package/src/bin/command.line.ts +35 -0
  33. package/src/bin/index.ts +2 -2
  34. package/src/common/__tests__/logger.ts +85 -0
  35. package/src/common/logger.ts +49 -0
  36. package/src/common/runner.ts +44 -0
  37. package/src/config.ts +2 -3
  38. package/src/core/__tests__/end.points.api.ts +103 -0
  39. package/src/core/__tests__/print.jar.version.ts +28 -0
  40. package/src/core/__tests__/set.expectation.ts +54 -0
  41. package/src/core/__tests__/set.test.results.ts +62 -0
  42. package/src/core/__tests__/stub.ts +136 -0
  43. package/src/core/__tests__/test.ts +176 -0
  44. package/src/core/index.ts +261 -0
  45. package/src/core/shutdownUtils.ts +21 -0
  46. package/src/downloadSpecmaticJar.js +30 -0
  47. package/src/index.ts +19 -2
  48. package/src/kafka/index.ts +140 -0
  49. package/test-resources/sample-junit-result-corrupt.xml +175 -0
  50. package/test-resources/sample-junit-result-generative.xml +389 -0
  51. package/test-resources/sample-junit-result-multiple.xml +304 -0
  52. package/test-resources/sample-junit-result-no-testname.xml +179 -0
  53. package/test-resources/sample-junit-result-single.xml +92 -0
  54. package/test-resources/sample-junit-result-skipped.xml +198 -0
  55. package/tsconfig.json +106 -20
  56. package/.github/workflows/npm-publish.yml +0 -25
  57. package/.vscode/settings.json +0 -7
  58. package/dist/bin/core.js +0 -30
  59. package/dist/lib/index.js +0 -107
  60. package/src/bin/__tests__/core.ts +0 -13
  61. package/src/bin/core.ts +0 -22
  62. package/src/lib/__tests__/index.ts +0 -122
  63. package/src/lib/index.ts +0 -84
  64. /package/{mockStub.json → test-resources/sample-mock-stub.json} +0 -0
  65. /package/{specmatic.json → test-resources/sample-specmatic.json} +0 -0
@@ -0,0 +1,304 @@
1
+ <testsuite errors="0" failures="0" hostname="Popeye.local" name="Contract Tests" skipped="0"
2
+ tests="1" time="0.42" timestamp="2023-05-19T23:32:29">
3
+ <properties>
4
+ <property name="awt.toolkit" value="sun.lwawt.macosx.LWCToolkit" />
5
+ <property name="commit" value="false" />
6
+ <property name="contractPaths"
7
+ value=".specmatic/repos/specmatic-order-contracts/in/specmatic/examples/store/product-search-bff-api.yaml" />
8
+ <property name="environment" value="" />
9
+ <property name="file.encoding" value="UTF-8" />
10
+ <property name="file.separator" value="/" />
11
+ <property name="ftp.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16" />
12
+ <property name="gopherProxySet" value="false" />
13
+ <property name="host" value="localhost" />
14
+ <property name="http.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16" />
15
+ <property name="java.awt.graphicsenv" value="sun.awt.CGraphicsEnvironment" />
16
+ <property name="java.awt.headless" value="true" />
17
+ <property name="java.awt.printerjob" value="sun.lwawt.macosx.CPrinterJob" />
18
+ <property name="java.class.path"
19
+ value="/Users/vikram/Documents/Code/specmatic/specmatic-order-bff-nodejs/node_modules/specmatic/specmatic.jar" />
20
+ <property name="java.class.version" value="55.0" />
21
+ <property name="java.home"
22
+ value="/opt/homebrew/Cellar/openjdk@11/11.0.15/libexec/openjdk.jdk/Contents/Home" />
23
+ <property name="java.io.tmpdir" value="/var/folders/hs/7tg_9vqj6cn09cp7l8jc7t6h0000gn/T/" />
24
+ <property name="java.library.path"
25
+ value="/Users/vikram/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:." />
26
+ <property name="java.runtime.name" value="OpenJDK Runtime Environment" />
27
+ <property name="java.runtime.version" value="11.0.15+0" />
28
+ <property name="java.specification.name" value="Java Platform API Specification" />
29
+ <property name="java.specification.vendor" value="Oracle Corporation" />
30
+ <property name="java.specification.version" value="11" />
31
+ <property name="java.vendor" value="Homebrew" />
32
+ <property name="java.vendor.url" value="https://github.com/Homebrew/homebrew-core/issues" />
33
+ <property name="java.vendor.url.bug"
34
+ value="https://github.com/Homebrew/homebrew-core/issues" />
35
+ <property name="java.vendor.version" value="Homebrew" />
36
+ <property name="java.version" value="11.0.15" />
37
+ <property name="java.version.date" value="2022-04-19" />
38
+ <property name="java.vm.compressedOopsMode" value="Zero based" />
39
+ <property name="java.vm.info" value="mixed mode" />
40
+ <property name="java.vm.name" value="OpenJDK 64-Bit Server VM" />
41
+ <property name="java.vm.specification.name" value="Java Virtual Machine Specification" />
42
+ <property name="java.vm.specification.vendor" value="Oracle Corporation" />
43
+ <property name="java.vm.specification.version" value="11" />
44
+ <property name="java.vm.vendor" value="Homebrew" />
45
+ <property name="java.vm.version" value="11.0.15+0" />
46
+ <property name="jdk.debug" value="release" />
47
+ <property name="kafkaBootstrapServers" value="" />
48
+ <property name="kafkaHost" value="localhost" />
49
+ <property name="kafkaPort" value="9093" />
50
+ <property name="line.separator" value=" " />
51
+ <property name="os.arch" value="aarch64" />
52
+ <property name="os.name" value="Mac OS X" />
53
+ <property name="os.version" value="13.3.1" />
54
+ <property name="path.separator" value=":" />
55
+ <property name="port" value="8080" />
56
+ <property name="protocol" value="http" />
57
+ <property name="socksNonProxyHosts" value="local|*.local|169.254/16|*.169.254/16" />
58
+ <property name="spring.beaninfo.ignore" value="true" />
59
+ <property name="suggestions" value="" />
60
+ <property name="suggestionsPath" value="" />
61
+ <property name="sun.arch.data.model" value="64" />
62
+ <property name="sun.boot.library.path"
63
+ value="/opt/homebrew/Cellar/openjdk@11/11.0.15/libexec/openjdk.jdk/Contents/Home/lib" />
64
+ <property name="sun.cpu.endian" value="little" />
65
+ <property name="sun.cpu.isalist" value="" />
66
+ <property name="sun.io.unicode.encoding" value="UnicodeBig" />
67
+ <property name="sun.java.command"
68
+ value="/Users/vikram/Documents/Code/specmatic/specmatic-order-bff-nodejs/node_modules/specmatic/specmatic.jar test --junitReportDir=dist/test-report --host=localhost --port=8080" />
69
+ <property name="sun.java.launcher" value="SUN_STANDARD" />
70
+ <property name="sun.jnu.encoding" value="UTF-8" />
71
+ <property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers" />
72
+ <property name="sun.os.patch.level" value="unknown" />
73
+ <property name="timeout" value="60" />
74
+ <property name="user.country" value="IN" />
75
+ <property name="user.dir"
76
+ value="/Users/vikram/Documents/Code/specmatic/specmatic-order-bff-nodejs" />
77
+ <property name="user.home" value="/Users/vikram" />
78
+ <property name="user.language" value="en" />
79
+ <property name="user.name" value="vikram" />
80
+ <property name="user.timezone" value="Asia/Kolkata" />
81
+ </properties>
82
+ <testcase classname="in.specmatic.test.SpecmaticJUnitSupport" name="" time="0.23">
83
+ <system-out><![CDATA[
84
+ unique-id: [engine:junit-jupiter]/[class:in.specmatic.test.SpecmaticJUnitSupport]/[test-factory:contractTest()]/[dynamic-test:#1]
85
+ display-name: Scenario: GET /products -> 200 | GET_ALL_PRODUCTS
86
+ ]]></system-out>
87
+ </testcase>
88
+ <testcase classname="in.specmatic.test.SpecmaticJUnitSupport" name="" time="0.23">
89
+ <system-out><![CDATA[
90
+ unique-id: [engine:junit-jupiter]/[class:in.specmatic.test.SpecmaticJUnitSupport]/[test-factory:contractTest()]/[dynamic-test:#1]
91
+ display-name: Scenario: POST /products -> 200 | ADD_PRODUCT
92
+ ]]></system-out>
93
+ </testcase>
94
+ <testcase classname="in.specmatic.test.SpecmaticJUnitSupport" name="" time="0.23">
95
+ <system-out><![CDATA[
96
+ unique-id: [engine:junit-jupiter]/[class:in.specmatic.test.SpecmaticJUnitSupport]/[test-factory:contractTest()]/[dynamic-test:#1]
97
+ display-name: Scenario: GET /product/1 -> 200 | GET_PRODUCT
98
+ ]]></system-out>
99
+ </testcase>
100
+ <testcase classname="in.specmatic.test.SpecmaticJUnitSupport" name="" time="0.23">
101
+ <failure
102
+ message="Testing scenario &quot;Fetch product details. Response: OK&quot; API: GET /findAvailableProducts -&gt; 200 Connection refused"
103
+ type="java.lang.AssertionError"><![CDATA[java.lang.AssertionError: Testing scenario "Fetch product details. Response: OK"
104
+ API: GET /findAvailableProducts -> 200
105
+
106
+ Connection refused
107
+ at in.specmatic.test.SpecmaticJUnitSupport.contractTest$lambda$5$lambda$4(SpecmaticJUnitSupport.kt:328)
108
+ at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.lambda$execute$0(DynamicTestTestDescriptor.java:53)
109
+ at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
110
+ at org.junit.jupiter.api.extension.InvocationInterceptor.interceptDynamicTest(InvocationInterceptor.java:167)
111
+ at org.junit.jupiter.api.extension.InvocationInterceptor.interceptDynamicTest(InvocationInterceptor.java:184)
112
+ at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.lambda$execute$1(DynamicTestTestDescriptor.java:61)
113
+ at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptorCall.lambda$ofVoid$0(InvocationInterceptorChain.java:78)
114
+ at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
115
+ at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
116
+ at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
117
+ at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
118
+ at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.execute(DynamicTestTestDescriptor.java:60)
119
+ at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.execute(DynamicTestTestDescriptor.java:32)
120
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
121
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
122
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
123
+ at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
124
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
125
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
126
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
127
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
128
+ at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
129
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask$DefaultDynamicTestExecutor.execute(NodeTestTask.java:226)
130
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask$DefaultDynamicTestExecutor.execute(NodeTestTask.java:204)
131
+ at java.base/java.util.Optional.ifPresent(Optional.java:183)
132
+ at org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor.lambda$invokeTestMethod$1(TestFactoryTestDescriptor.java:108)
133
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
134
+ at org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor.invokeTestMethod(TestFactoryTestDescriptor.java:95)
135
+ at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
136
+ at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
137
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
138
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
139
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
140
+ at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
141
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
142
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
143
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
144
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
145
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
146
+ at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
147
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
148
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
149
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
150
+ at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
151
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
152
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
153
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
154
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
155
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
156
+ at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
157
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
158
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
159
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
160
+ at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
161
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
162
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
163
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
164
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
165
+ at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
166
+ at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
167
+ at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
168
+ at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:147)
169
+ at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:127)
170
+ at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:90)
171
+ at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:55)
172
+ at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:102)
173
+ at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:54)
174
+ at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
175
+ at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
176
+ at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
177
+ at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53)
178
+ at application.TestCommand.call(TestCommand.kt:218)
179
+ at application.TestCommand.call(TestCommand.kt:46)
180
+ at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
181
+ at picocli.CommandLine.access$1500(CommandLine.java:148)
182
+ at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
183
+ at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
184
+ at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
185
+ at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
186
+ at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
187
+ at picocli.CommandLine.execute(CommandLine.java:2170)
188
+ at application.QontractApplicationRunner.run(QontractApplicationRunner.kt:16)
189
+ at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:771)
190
+ at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:755)
191
+ at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
192
+ at application.SpecmaticApplication$Companion.main(SpecmaticApplication.kt:29)
193
+ at application.SpecmaticApplication.main(SpecmaticApplication.kt)
194
+ ]]></failure>
195
+ <system-out><![CDATA[
196
+ unique-id: [engine:junit-jupiter]/[class:in.specmatic.test.SpecmaticJUnitSupport]/[test-factory:contractTest()]/[dynamic-test:#1]
197
+ display-name: Scenario: POST /product/1 -> 200 | UPDATE_PRODUCT
198
+ ]]></system-out>
199
+ </testcase>
200
+ <testcase classname="in.specmatic.test.SpecmaticJUnitSupport" name="" time="0.23">
201
+ <failure
202
+ message="Testing scenario &quot;Fetch product details. Response: OK&quot; API: GET /findAvailableProducts -&gt; 200 Connection refused"
203
+ type="java.lang.AssertionError"><![CDATA[java.lang.AssertionError: Testing scenario "Fetch product details. Response: OK"
204
+ API: GET /findAvailableProducts -> 200
205
+
206
+ Connection refused
207
+ at in.specmatic.test.SpecmaticJUnitSupport.contractTest$lambda$5$lambda$4(SpecmaticJUnitSupport.kt:328)
208
+ at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.lambda$execute$0(DynamicTestTestDescriptor.java:53)
209
+ at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
210
+ at org.junit.jupiter.api.extension.InvocationInterceptor.interceptDynamicTest(InvocationInterceptor.java:167)
211
+ at org.junit.jupiter.api.extension.InvocationInterceptor.interceptDynamicTest(InvocationInterceptor.java:184)
212
+ at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.lambda$execute$1(DynamicTestTestDescriptor.java:61)
213
+ at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptorCall.lambda$ofVoid$0(InvocationInterceptorChain.java:78)
214
+ at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
215
+ at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
216
+ at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
217
+ at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
218
+ at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.execute(DynamicTestTestDescriptor.java:60)
219
+ at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.execute(DynamicTestTestDescriptor.java:32)
220
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
221
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
222
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
223
+ at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
224
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
225
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
226
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
227
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
228
+ at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
229
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask$DefaultDynamicTestExecutor.execute(NodeTestTask.java:226)
230
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask$DefaultDynamicTestExecutor.execute(NodeTestTask.java:204)
231
+ at java.base/java.util.Optional.ifPresent(Optional.java:183)
232
+ at org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor.lambda$invokeTestMethod$1(TestFactoryTestDescriptor.java:108)
233
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
234
+ at org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor.invokeTestMethod(TestFactoryTestDescriptor.java:95)
235
+ at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
236
+ at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
237
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
238
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
239
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
240
+ at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
241
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
242
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
243
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
244
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
245
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
246
+ at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
247
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
248
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
249
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
250
+ at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
251
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
252
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
253
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
254
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
255
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
256
+ at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
257
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
258
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
259
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
260
+ at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
261
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
262
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
263
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
264
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
265
+ at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
266
+ at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
267
+ at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
268
+ at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:147)
269
+ at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:127)
270
+ at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:90)
271
+ at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:55)
272
+ at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:102)
273
+ at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:54)
274
+ at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
275
+ at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
276
+ at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
277
+ at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53)
278
+ at application.TestCommand.call(TestCommand.kt:218)
279
+ at application.TestCommand.call(TestCommand.kt:46)
280
+ at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
281
+ at picocli.CommandLine.access$1500(CommandLine.java:148)
282
+ at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
283
+ at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
284
+ at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
285
+ at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
286
+ at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
287
+ at picocli.CommandLine.execute(CommandLine.java:2170)
288
+ at application.QontractApplicationRunner.run(QontractApplicationRunner.kt:16)
289
+ at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:771)
290
+ at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:755)
291
+ at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
292
+ at application.SpecmaticApplication$Companion.main(SpecmaticApplication.kt:29)
293
+ at application.SpecmaticApplication.main(SpecmaticApplication.kt)
294
+ ]]></failure>
295
+ <system-out><![CDATA[
296
+ unique-id: [engine:junit-jupiter]/[class:in.specmatic.test.SpecmaticJUnitSupport]/[test-factory:contractTest()]/[dynamic-test:#1]
297
+ display-name: Scenario: DELETE /product/1 -> 200 | DELETE_PRODUCT
298
+ ]]></system-out>
299
+ </testcase>
300
+ <system-out><![CDATA[
301
+ unique-id: [engine:junit-jupiter]
302
+ display-name: Contract Tests
303
+ ]]></system-out>
304
+ </testsuite>
@@ -0,0 +1,179 @@
1
+ <testsuite errors="0" failures="3" hostname="LM0005304" name="Contract Tests" skipped="0" tests="4"
2
+ time="0.479" timestamp="2023-06-06T23:47:50">
3
+ <properties>
4
+ <property name="commit" value="false" />
5
+ <property name="contractPaths"
6
+ value="/Users/rahul2.shekhawat/Desktop/merchant-onboarding/contracts/test-contracts/userExists.yaml" />
7
+ <property name="environment" value="" />
8
+ <property name="file.encoding" value="UTF-8" />
9
+ <property name="file.separator" value="/" />
10
+ <property name="host" value="localhost" />
11
+ <property name="java.awt.headless" value="true" />
12
+ <property name="java.class.path"
13
+ value="/Users/rahul2.shekhawat/Desktop/merchant-onboarding/node_modules/specmatic/specmatic.jar" />
14
+ <property name="java.class.version" value="61.0" />
15
+ <property name="java.home"
16
+ value="/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home" />
17
+ <property name="java.io.tmpdir" value="/var/folders/7l/jrlflnzj6z10kpstv5cm5748yf72dt/T/" />
18
+ <property name="java.library.path"
19
+ value="/Users/rahul2.shekhawat/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:." />
20
+ <property name="java.runtime.name" value="OpenJDK Runtime Environment" />
21
+ <property name="java.runtime.version" value="17.0.6+10" />
22
+ <property name="java.specification.name" value="Java Platform API Specification" />
23
+ <property name="java.specification.vendor" value="Oracle Corporation" />
24
+ <property name="java.specification.version" value="17" />
25
+ <property name="java.vendor" value="Eclipse Adoptium" />
26
+ <property name="java.vendor.url" value="https://adoptium.net/" />
27
+ <property name="java.vendor.url.bug"
28
+ value="https://github.com/adoptium/adoptium-support/issues" />
29
+ <property name="java.vendor.version" value="Temurin-17.0.6+10" />
30
+ <property name="java.version" value="17.0.6" />
31
+ <property name="java.version.date" value="2023-01-17" />
32
+ <property name="java.vm.compressedOopsMode" value="Zero based" />
33
+ <property name="java.vm.info" value="mixed mode" />
34
+ <property name="java.vm.name" value="OpenJDK 64-Bit Server VM" />
35
+ <property name="java.vm.specification.name" value="Java Virtual Machine Specification" />
36
+ <property name="java.vm.specification.vendor" value="Oracle Corporation" />
37
+ <property name="java.vm.specification.version" value="17" />
38
+ <property name="java.vm.vendor" value="Eclipse Adoptium" />
39
+ <property name="java.vm.version" value="17.0.6+10" />
40
+ <property name="jdk.debug" value="release" />
41
+ <property name="kafkaBootstrapServers" value="" />
42
+ <property name="kafkaHost" value="localhost" />
43
+ <property name="kafkaPort" value="9093" />
44
+ <property name="line.separator" value=" " />
45
+ <property name="native.encoding" value="UTF-8" />
46
+ <property name="os.arch" value="aarch64" />
47
+ <property name="os.name" value="Mac OS X" />
48
+ <property name="os.version" value="12.6.5" />
49
+ <property name="path.separator" value=":" />
50
+ <property name="port" value="3000" />
51
+ <property name="protocol" value="http" />
52
+ <property name="spring.beaninfo.ignore" value="true" />
53
+ <property name="suggestions" value="" />
54
+ <property name="suggestionsPath" value="" />
55
+ <property name="sun.arch.data.model" value="64" />
56
+ <property name="sun.boot.library.path"
57
+ value="/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/lib" />
58
+ <property name="sun.cpu.endian" value="little" />
59
+ <property name="sun.io.unicode.encoding" value="UnicodeBig" />
60
+ <property name="sun.java.command"
61
+ value="/Users/rahul2.shekhawat/Desktop/merchant-onboarding/node_modules/specmatic/specmatic.jar test --junitReportDir=dist/test-report --host=localhost --port=3000" />
62
+ <property name="sun.java.launcher" value="SUN_STANDARD" />
63
+ <property name="sun.jnu.encoding" value="UTF-8" />
64
+ <property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers" />
65
+ <property name="timeout" value="60" />
66
+ <property name="user.country" value="IN" />
67
+ <property name="user.dir" value="/Users/rahul2.shekhawat/Desktop/merchant-onboarding" />
68
+ <property name="user.home" value="/Users/rahul2.shekhawat" />
69
+ <property name="user.language" value="en" />
70
+ <property name="user.name" value="rahul2.shekhawat" />
71
+ <property name="user.timezone" value="Asia/Kolkata" />
72
+ </properties>
73
+ <testcase classname="in.specmatic.test.SpecmaticJUnitSupport" name="" time="0.007">
74
+ <failure
75
+ message="Testing scenario &quot;Use Exists. Response: Bad Request&quot; API: GET /proxy/v1/user/exists -&gt; 400 &gt;&gt; RESPONSE.STATUS Expected status 400, actual was status 417"
76
+ type="java.lang.AssertionError"><![CDATA[java.lang.AssertionError: Testing scenario "Use Exists. Response: Bad Request"
77
+ API: GET /proxy/v1/user/exists -> 400
78
+
79
+ >> RESPONSE.STATUS
80
+
81
+ Expected status 400, actual was status 417
82
+ at in.specmatic.test.SpecmaticJUnitSupport.contractTest$lambda$5$lambda$4(SpecmaticJUnitSupport.kt:328)
83
+ at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.lambda$execute$0(DynamicTestTestDescriptor.java:53)
84
+ at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
85
+ at org.junit.jupiter.api.extension.InvocationInterceptor.interceptDynamicTest(InvocationInterceptor.java:167)
86
+ at org.junit.jupiter.api.extension.InvocationInterceptor.interceptDynamicTest(InvocationInterceptor.java:184)
87
+ at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.lambda$execute$1(DynamicTestTestDescriptor.java:61)
88
+ at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptorCall.lambda$ofVoid$0(InvocationInterceptorChain.java:78)
89
+ at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
90
+ at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
91
+ at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
92
+ at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
93
+ at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.execute(DynamicTestTestDescriptor.java:60)
94
+ at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.execute(DynamicTestTestDescriptor.java:32)
95
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
96
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
97
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
98
+ at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
99
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
100
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
101
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
102
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
103
+ at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
104
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask$DefaultDynamicTestExecutor.execute(NodeTestTask.java:226)
105
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask$DefaultDynamicTestExecutor.execute(NodeTestTask.java:204)
106
+ at java.base/java.util.Optional.ifPresent(Optional.java:178)
107
+ at org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor.lambda$invokeTestMethod$1(TestFactoryTestDescriptor.java:108)
108
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
109
+ at org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor.invokeTestMethod(TestFactoryTestDescriptor.java:95)
110
+ at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
111
+ at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
112
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
113
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
114
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
115
+ at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
116
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
117
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
118
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
119
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
120
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
121
+ at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
122
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
123
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
124
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
125
+ at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
126
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
127
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
128
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
129
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
130
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
131
+ at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
132
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
133
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
134
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
135
+ at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
136
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
137
+ at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
138
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
139
+ at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
140
+ at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
141
+ at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
142
+ at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
143
+ at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:147)
144
+ at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:127)
145
+ at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:90)
146
+ at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:55)
147
+ at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:102)
148
+ at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:54)
149
+ at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
150
+ at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
151
+ at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
152
+ at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53)
153
+ at application.TestCommand.call(TestCommand.kt:218)
154
+ at application.TestCommand.call(TestCommand.kt:46)
155
+ at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
156
+ at picocli.CommandLine.access$1500(CommandLine.java:148)
157
+ at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
158
+ at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
159
+ at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
160
+ at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
161
+ at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
162
+ at picocli.CommandLine.execute(CommandLine.java:2170)
163
+ at application.QontractApplicationRunner.run(QontractApplicationRunner.kt:16)
164
+ at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:771)
165
+ at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:755)
166
+ at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
167
+ at application.SpecmaticApplication$Companion.main(SpecmaticApplication.kt:29)
168
+ at application.SpecmaticApplication.main(SpecmaticApplication.kt)
169
+ ]]></failure>
170
+ <system-out><![CDATA[
171
+ unique-id: [engine:junit-jupiter]/[class:in.specmatic.test.SpecmaticJUnitSupport]/[test-factory:contractTest()]/[dynamic-test:#4]
172
+ display-name: GET /proxy/v1/user/exists -> 400 | IS_USER_EXIST_BAD_REQUEST_INVALID_MOBILE_NUMBER
173
+ ]]></system-out>
174
+ </testcase>
175
+ <system-out><![CDATA[
176
+ unique-id: [engine:junit-jupiter]
177
+ display-name: Contract Tests
178
+ ]]></system-out>
179
+ </testsuite>
@@ -0,0 +1,92 @@
1
+ <testsuite errors="0" failures="0" hostname="Popeye.local" name="Contract Tests" skipped="0"
2
+ tests="1" time="0.42" timestamp="2023-05-19T23:32:29">
3
+ <properties>
4
+ <property name="awt.toolkit" value="sun.lwawt.macosx.LWCToolkit" />
5
+ <property name="commit" value="false" />
6
+ <property name="contractPaths"
7
+ value=".specmatic/repos/specmatic-order-contracts/in/specmatic/examples/store/product-search-bff-api.yaml" />
8
+ <property name="environment" value="" />
9
+ <property name="file.encoding" value="UTF-8" />
10
+ <property name="file.separator" value="/" />
11
+ <property name="ftp.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16" />
12
+ <property name="gopherProxySet" value="false" />
13
+ <property name="host" value="localhost" />
14
+ <property name="http.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16" />
15
+ <property name="java.awt.graphicsenv" value="sun.awt.CGraphicsEnvironment" />
16
+ <property name="java.awt.headless" value="true" />
17
+ <property name="java.awt.printerjob" value="sun.lwawt.macosx.CPrinterJob" />
18
+ <property name="java.class.path"
19
+ value="/Users/vikram/Documents/Code/specmatic/specmatic-order-bff-nodejs/node_modules/specmatic/specmatic.jar" />
20
+ <property name="java.class.version" value="55.0" />
21
+ <property name="java.home"
22
+ value="/opt/homebrew/Cellar/openjdk@11/11.0.15/libexec/openjdk.jdk/Contents/Home" />
23
+ <property name="java.io.tmpdir" value="/var/folders/hs/7tg_9vqj6cn09cp7l8jc7t6h0000gn/T/" />
24
+ <property name="java.library.path"
25
+ value="/Users/vikram/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:." />
26
+ <property name="java.runtime.name" value="OpenJDK Runtime Environment" />
27
+ <property name="java.runtime.version" value="11.0.15+0" />
28
+ <property name="java.specification.name" value="Java Platform API Specification" />
29
+ <property name="java.specification.vendor" value="Oracle Corporation" />
30
+ <property name="java.specification.version" value="11" />
31
+ <property name="java.vendor" value="Homebrew" />
32
+ <property name="java.vendor.url" value="https://github.com/Homebrew/homebrew-core/issues" />
33
+ <property name="java.vendor.url.bug"
34
+ value="https://github.com/Homebrew/homebrew-core/issues" />
35
+ <property name="java.vendor.version" value="Homebrew" />
36
+ <property name="java.version" value="11.0.15" />
37
+ <property name="java.version.date" value="2022-04-19" />
38
+ <property name="java.vm.compressedOopsMode" value="Zero based" />
39
+ <property name="java.vm.info" value="mixed mode" />
40
+ <property name="java.vm.name" value="OpenJDK 64-Bit Server VM" />
41
+ <property name="java.vm.specification.name" value="Java Virtual Machine Specification" />
42
+ <property name="java.vm.specification.vendor" value="Oracle Corporation" />
43
+ <property name="java.vm.specification.version" value="11" />
44
+ <property name="java.vm.vendor" value="Homebrew" />
45
+ <property name="java.vm.version" value="11.0.15+0" />
46
+ <property name="jdk.debug" value="release" />
47
+ <property name="kafkaBootstrapServers" value="" />
48
+ <property name="kafkaHost" value="localhost" />
49
+ <property name="kafkaPort" value="9093" />
50
+ <property name="line.separator" value=" " />
51
+ <property name="os.arch" value="aarch64" />
52
+ <property name="os.name" value="Mac OS X" />
53
+ <property name="os.version" value="13.3.1" />
54
+ <property name="path.separator" value=":" />
55
+ <property name="port" value="8080" />
56
+ <property name="protocol" value="http" />
57
+ <property name="socksNonProxyHosts" value="local|*.local|169.254/16|*.169.254/16" />
58
+ <property name="spring.beaninfo.ignore" value="true" />
59
+ <property name="suggestions" value="" />
60
+ <property name="suggestionsPath" value="" />
61
+ <property name="sun.arch.data.model" value="64" />
62
+ <property name="sun.boot.library.path"
63
+ value="/opt/homebrew/Cellar/openjdk@11/11.0.15/libexec/openjdk.jdk/Contents/Home/lib" />
64
+ <property name="sun.cpu.endian" value="little" />
65
+ <property name="sun.cpu.isalist" value="" />
66
+ <property name="sun.io.unicode.encoding" value="UnicodeBig" />
67
+ <property name="sun.java.command"
68
+ value="/Users/vikram/Documents/Code/specmatic/specmatic-order-bff-nodejs/node_modules/specmatic/specmatic.jar test --junitReportDir=dist/test-report --host=localhost --port=8080" />
69
+ <property name="sun.java.launcher" value="SUN_STANDARD" />
70
+ <property name="sun.jnu.encoding" value="UTF-8" />
71
+ <property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers" />
72
+ <property name="sun.os.patch.level" value="unknown" />
73
+ <property name="timeout" value="60" />
74
+ <property name="user.country" value="IN" />
75
+ <property name="user.dir"
76
+ value="/Users/vikram/Documents/Code/specmatic/specmatic-order-bff-nodejs" />
77
+ <property name="user.home" value="/Users/vikram" />
78
+ <property name="user.language" value="en" />
79
+ <property name="user.name" value="vikram" />
80
+ <property name="user.timezone" value="Asia/Kolkata" />
81
+ </properties>
82
+ <testcase classname="in.specmatic.test.SpecmaticJUnitSupport" name="" time="0.23">
83
+ <system-out><![CDATA[
84
+ unique-id: [engine:junit-jupiter]/[class:in.specmatic.test.SpecmaticJUnitSupport]/[test-factory:contractTest()]/[dynamic-test:#1]
85
+ display-name: Scenario: GET /products -> 200 | GET_ALL_PRODUCTS
86
+ ]]></system-out>
87
+ </testcase>
88
+ <system-out><![CDATA[
89
+ unique-id: [engine:junit-jupiter]
90
+ display-name: Contract Tests
91
+ ]]></system-out>
92
+ </testsuite>