specmatic 0.68.2 → 0.68.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.
- package/dist/lib/index.js +5 -1
- package/package.json +1 -1
- package/src/lib/__tests__/index.ts +23 -0
- package/src/lib/index.ts +8 -1
- package/test-resources/sample-junit-result-corrupt.xml +175 -0
- package/test-resources/sample-junit-result-generative.xml +389 -0
- package/test-resources/sample-junit-result-no-testname.xml +179 -0
package/dist/lib/index.js
CHANGED
|
@@ -88,7 +88,11 @@ exports.test = test;
|
|
|
88
88
|
var showTestResults = testFn => {
|
|
89
89
|
var testCases = parseJunitXML();
|
|
90
90
|
testCases.map(function (testcase) {
|
|
91
|
-
var name =
|
|
91
|
+
var name = 'No Name';
|
|
92
|
+
if (testcase['system-out']) {
|
|
93
|
+
var nameTempArr = testcase['system-out'].trim().replace(/\n/g, '').split(/display-name:.*Scenario: /);
|
|
94
|
+
if (nameTempArr.length > 1) name = nameTempArr[1].trim();
|
|
95
|
+
}
|
|
92
96
|
testFn(name, () => {
|
|
93
97
|
if (testcase.failure) throw new Error('Did not pass');
|
|
94
98
|
});
|
package/package.json
CHANGED
|
@@ -229,6 +229,29 @@ test('setTestResults invokes the test function', () => {
|
|
|
229
229
|
expect(cb).toHaveBeenCalledTimes(5);
|
|
230
230
|
});
|
|
231
231
|
|
|
232
|
+
test('setTestResults works with junit report with generative tests mode', () => {
|
|
233
|
+
const cb = jest.fn();
|
|
234
|
+
copyReportFileWithName('sample-junit-result-generative.xml');
|
|
235
|
+
specmatic.showTestResults(cb);
|
|
236
|
+
expect(cb).toHaveBeenCalledTimes(4);
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
test('setTestResults says "No Name" with junit report where test name cannot be found within system-out tag', () => {
|
|
240
|
+
const cb = jest.fn();
|
|
241
|
+
copyReportFileWithName('sample-junit-result-no-testname.xml');
|
|
242
|
+
specmatic.showTestResults(cb);
|
|
243
|
+
expect(cb).toHaveBeenCalledTimes(1);
|
|
244
|
+
expect(cb).toHaveBeenCalledWith('No Name', expect.any(Function));
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
test('setTestResults says "No Name" with junit report where system-out tag does not exist', () => {
|
|
248
|
+
const cb = jest.fn();
|
|
249
|
+
copyReportFileWithName('sample-junit-result-corrupt.xml');
|
|
250
|
+
specmatic.showTestResults(cb);
|
|
251
|
+
expect(cb).toHaveBeenCalledTimes(1);
|
|
252
|
+
expect(cb).toHaveBeenCalledWith('No Name', expect.any(Function));
|
|
253
|
+
});
|
|
254
|
+
|
|
232
255
|
function copyReportFile() {
|
|
233
256
|
copyReportFileWithName('sample-junit-result-multiple.xml');
|
|
234
257
|
}
|
package/src/lib/index.ts
CHANGED
|
@@ -90,7 +90,14 @@ const test = (host?: string, port?: string, specs?: string): Promise<{ [k: strin
|
|
|
90
90
|
const showTestResults = (testFn: (name: string, cb: () => void) => void) => {
|
|
91
91
|
var testCases = parseJunitXML();
|
|
92
92
|
testCases.map(function (testcase: { [id: string]: any }) {
|
|
93
|
-
var name =
|
|
93
|
+
var name = 'No Name';
|
|
94
|
+
if (testcase['system-out']) {
|
|
95
|
+
const nameTempArr = testcase['system-out']
|
|
96
|
+
.trim()
|
|
97
|
+
.replace(/\n/g, '')
|
|
98
|
+
.split(/display-name:.*Scenario: /);
|
|
99
|
+
if (nameTempArr.length > 1) name = nameTempArr[1].trim();
|
|
100
|
+
}
|
|
94
101
|
testFn(name, () => {
|
|
95
102
|
if (testcase.failure) throw new Error('Did not pass');
|
|
96
103
|
});
|
|
@@ -0,0 +1,175 @@
|
|
|
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.026">
|
|
74
|
+
<failure
|
|
75
|
+
message="Testing scenario "Use Exists. Response: Bad Request" API: GET /proxy/v1/user/exists -> 400 >> RESPONSE.STATUS Expected status 400, actual was status 500"
|
|
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 500
|
|
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
|
+
</testcase>
|
|
171
|
+
<system-out><![CDATA[
|
|
172
|
+
unique-id: [engine:junit-jupiter]
|
|
173
|
+
display-name: Contract Tests
|
|
174
|
+
]]></system-out>
|
|
175
|
+
</testsuite>
|
|
@@ -0,0 +1,389 @@
|
|
|
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 "Use Exists. Response: Bad Request" API: GET /proxy/v1/user/exists -> 400 >> 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: +ve Scenario: GET /proxy/v1/user/exists -> 400 | IS_USER_EXIST_BAD_REQUEST_INVALID_MOBILE_NUMBER
|
|
173
|
+
]]></system-out>
|
|
174
|
+
</testcase>
|
|
175
|
+
<testcase classname="in.specmatic.test.SpecmaticJUnitSupport" name="" time="0.026">
|
|
176
|
+
<failure
|
|
177
|
+
message="Testing scenario "Use Exists. Response: Bad Request" API: GET /proxy/v1/user/exists -> 400 >> RESPONSE.STATUS Expected status 400, actual was status 500"
|
|
178
|
+
type="java.lang.AssertionError"><![CDATA[java.lang.AssertionError: Testing scenario "Use Exists. Response: Bad Request"
|
|
179
|
+
API: GET /proxy/v1/user/exists -> 400
|
|
180
|
+
|
|
181
|
+
>> RESPONSE.STATUS
|
|
182
|
+
|
|
183
|
+
Expected status 400, actual was status 500
|
|
184
|
+
at in.specmatic.test.SpecmaticJUnitSupport.contractTest$lambda$5$lambda$4(SpecmaticJUnitSupport.kt:328)
|
|
185
|
+
at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.lambda$execute$0(DynamicTestTestDescriptor.java:53)
|
|
186
|
+
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
|
|
187
|
+
at org.junit.jupiter.api.extension.InvocationInterceptor.interceptDynamicTest(InvocationInterceptor.java:167)
|
|
188
|
+
at org.junit.jupiter.api.extension.InvocationInterceptor.interceptDynamicTest(InvocationInterceptor.java:184)
|
|
189
|
+
at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.lambda$execute$1(DynamicTestTestDescriptor.java:61)
|
|
190
|
+
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptorCall.lambda$ofVoid$0(InvocationInterceptorChain.java:78)
|
|
191
|
+
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
|
|
192
|
+
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
|
|
193
|
+
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
|
|
194
|
+
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
|
|
195
|
+
at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.execute(DynamicTestTestDescriptor.java:60)
|
|
196
|
+
at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.execute(DynamicTestTestDescriptor.java:32)
|
|
197
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
|
|
198
|
+
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
|
199
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
|
|
200
|
+
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
|
|
201
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
|
|
202
|
+
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
|
203
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
|
|
204
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
|
|
205
|
+
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
|
|
206
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask$DefaultDynamicTestExecutor.execute(NodeTestTask.java:226)
|
|
207
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask$DefaultDynamicTestExecutor.execute(NodeTestTask.java:204)
|
|
208
|
+
at java.base/java.util.Optional.ifPresent(Optional.java:178)
|
|
209
|
+
at org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor.lambda$invokeTestMethod$1(TestFactoryTestDescriptor.java:108)
|
|
210
|
+
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
|
211
|
+
at org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor.invokeTestMethod(TestFactoryTestDescriptor.java:95)
|
|
212
|
+
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
|
|
213
|
+
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
|
|
214
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
|
|
215
|
+
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
|
216
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
|
|
217
|
+
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
|
|
218
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
|
|
219
|
+
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
|
220
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
|
|
221
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
|
|
222
|
+
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
|
|
223
|
+
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
|
|
224
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
|
|
225
|
+
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
|
226
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
|
|
227
|
+
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
|
|
228
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
|
|
229
|
+
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
|
230
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
|
|
231
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
|
|
232
|
+
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
|
|
233
|
+
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
|
|
234
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
|
|
235
|
+
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
|
236
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
|
|
237
|
+
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
|
|
238
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
|
|
239
|
+
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
|
240
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
|
|
241
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
|
|
242
|
+
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
|
|
243
|
+
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
|
|
244
|
+
at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
|
|
245
|
+
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:147)
|
|
246
|
+
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:127)
|
|
247
|
+
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:90)
|
|
248
|
+
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:55)
|
|
249
|
+
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:102)
|
|
250
|
+
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:54)
|
|
251
|
+
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
|
|
252
|
+
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
|
|
253
|
+
at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
|
|
254
|
+
at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53)
|
|
255
|
+
at application.TestCommand.call(TestCommand.kt:218)
|
|
256
|
+
at application.TestCommand.call(TestCommand.kt:46)
|
|
257
|
+
at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
|
|
258
|
+
at picocli.CommandLine.access$1500(CommandLine.java:148)
|
|
259
|
+
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
|
|
260
|
+
at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
|
|
261
|
+
at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
|
|
262
|
+
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
|
|
263
|
+
at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
|
|
264
|
+
at picocli.CommandLine.execute(CommandLine.java:2170)
|
|
265
|
+
at application.QontractApplicationRunner.run(QontractApplicationRunner.kt:16)
|
|
266
|
+
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:771)
|
|
267
|
+
at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:755)
|
|
268
|
+
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
|
|
269
|
+
at application.SpecmaticApplication$Companion.main(SpecmaticApplication.kt:29)
|
|
270
|
+
at application.SpecmaticApplication.main(SpecmaticApplication.kt)
|
|
271
|
+
]]></failure>
|
|
272
|
+
<system-out><![CDATA[
|
|
273
|
+
unique-id: [engine:junit-jupiter]/[class:in.specmatic.test.SpecmaticJUnitSupport]/[test-factory:contractTest()]/[dynamic-test:#2]
|
|
274
|
+
display-name: +ve Scenario: GET /proxy/v1/user/exists -> 400 | IS_USER_EXIST_DEPENDENCY_ERROR
|
|
275
|
+
]]></system-out>
|
|
276
|
+
</testcase>
|
|
277
|
+
<testcase classname="in.specmatic.test.SpecmaticJUnitSupport" name="" time="0.015">
|
|
278
|
+
<failure
|
|
279
|
+
message="Testing scenario "Use Exists. Response: Bad Request" API: GET /proxy/v1/user/exists -> 400 >> RESPONSE.STATUS Expected status 400, actual was status 500"
|
|
280
|
+
type="java.lang.AssertionError"><![CDATA[java.lang.AssertionError: Testing scenario "Use Exists. Response: Bad Request"
|
|
281
|
+
API: GET /proxy/v1/user/exists -> 400
|
|
282
|
+
|
|
283
|
+
>> RESPONSE.STATUS
|
|
284
|
+
|
|
285
|
+
Expected status 400, actual was status 500
|
|
286
|
+
at in.specmatic.test.SpecmaticJUnitSupport.contractTest$lambda$5$lambda$4(SpecmaticJUnitSupport.kt:328)
|
|
287
|
+
at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.lambda$execute$0(DynamicTestTestDescriptor.java:53)
|
|
288
|
+
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
|
|
289
|
+
at org.junit.jupiter.api.extension.InvocationInterceptor.interceptDynamicTest(InvocationInterceptor.java:167)
|
|
290
|
+
at org.junit.jupiter.api.extension.InvocationInterceptor.interceptDynamicTest(InvocationInterceptor.java:184)
|
|
291
|
+
at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.lambda$execute$1(DynamicTestTestDescriptor.java:61)
|
|
292
|
+
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptorCall.lambda$ofVoid$0(InvocationInterceptorChain.java:78)
|
|
293
|
+
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
|
|
294
|
+
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
|
|
295
|
+
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
|
|
296
|
+
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
|
|
297
|
+
at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.execute(DynamicTestTestDescriptor.java:60)
|
|
298
|
+
at org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor.execute(DynamicTestTestDescriptor.java:32)
|
|
299
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
|
|
300
|
+
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
|
301
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
|
|
302
|
+
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
|
|
303
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
|
|
304
|
+
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
|
305
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
|
|
306
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
|
|
307
|
+
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
|
|
308
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask$DefaultDynamicTestExecutor.execute(NodeTestTask.java:226)
|
|
309
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask$DefaultDynamicTestExecutor.execute(NodeTestTask.java:204)
|
|
310
|
+
at java.base/java.util.Optional.ifPresent(Optional.java:178)
|
|
311
|
+
at org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor.lambda$invokeTestMethod$1(TestFactoryTestDescriptor.java:108)
|
|
312
|
+
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
|
313
|
+
at org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor.invokeTestMethod(TestFactoryTestDescriptor.java:95)
|
|
314
|
+
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
|
|
315
|
+
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
|
|
316
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
|
|
317
|
+
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
|
318
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
|
|
319
|
+
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
|
|
320
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
|
|
321
|
+
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
|
322
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
|
|
323
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
|
|
324
|
+
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
|
|
325
|
+
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
|
|
326
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
|
|
327
|
+
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
|
328
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
|
|
329
|
+
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
|
|
330
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
|
|
331
|
+
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
|
332
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
|
|
333
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
|
|
334
|
+
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
|
|
335
|
+
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
|
|
336
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
|
|
337
|
+
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
|
338
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
|
|
339
|
+
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
|
|
340
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
|
|
341
|
+
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
|
342
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
|
|
343
|
+
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
|
|
344
|
+
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
|
|
345
|
+
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
|
|
346
|
+
at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
|
|
347
|
+
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:147)
|
|
348
|
+
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:127)
|
|
349
|
+
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:90)
|
|
350
|
+
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:55)
|
|
351
|
+
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:102)
|
|
352
|
+
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:54)
|
|
353
|
+
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
|
|
354
|
+
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
|
|
355
|
+
at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
|
|
356
|
+
at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53)
|
|
357
|
+
at application.TestCommand.call(TestCommand.kt:218)
|
|
358
|
+
at application.TestCommand.call(TestCommand.kt:46)
|
|
359
|
+
at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
|
|
360
|
+
at picocli.CommandLine.access$1500(CommandLine.java:148)
|
|
361
|
+
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
|
|
362
|
+
at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
|
|
363
|
+
at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
|
|
364
|
+
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
|
|
365
|
+
at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
|
|
366
|
+
at picocli.CommandLine.execute(CommandLine.java:2170)
|
|
367
|
+
at application.QontractApplicationRunner.run(QontractApplicationRunner.kt:16)
|
|
368
|
+
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:771)
|
|
369
|
+
at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:755)
|
|
370
|
+
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
|
|
371
|
+
at application.SpecmaticApplication$Companion.main(SpecmaticApplication.kt:29)
|
|
372
|
+
at application.SpecmaticApplication.main(SpecmaticApplication.kt)
|
|
373
|
+
]]></failure>
|
|
374
|
+
<system-out><![CDATA[
|
|
375
|
+
unique-id: [engine:junit-jupiter]/[class:in.specmatic.test.SpecmaticJUnitSupport]/[test-factory:contractTest()]/[dynamic-test:#3]
|
|
376
|
+
display-name: +ve Scenario: GET /proxy/v1/user/exists -> 400 | IS_USER_EXIST_BAD_REQUEST_INVALID_INSTITUTE
|
|
377
|
+
]]></system-out>
|
|
378
|
+
</testcase>
|
|
379
|
+
<testcase classname="in.specmatic.test.SpecmaticJUnitSupport" name="" time="0.247">
|
|
380
|
+
<system-out><![CDATA[
|
|
381
|
+
unique-id: [engine:junit-jupiter]/[class:in.specmatic.test.SpecmaticJUnitSupport]/[test-factory:contractTest()]/[dynamic-test:#1]
|
|
382
|
+
display-name: +ve Scenario: GET /proxy/v1/user/exists -> 200 | IS_USER_EXIST
|
|
383
|
+
]]></system-out>
|
|
384
|
+
</testcase>
|
|
385
|
+
<system-out><![CDATA[
|
|
386
|
+
unique-id: [engine:junit-jupiter]
|
|
387
|
+
display-name: Contract Tests
|
|
388
|
+
]]></system-out>
|
|
389
|
+
</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 "Use Exists. Response: Bad Request" API: GET /proxy/v1/user/exists -> 400 >> 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>
|