Skip to content

Commit d9598aa

Browse files
committed
chore(cts): reuse method template
1 parent 2800371 commit d9598aa

File tree

32 files changed

+79
-117
lines changed

32 files changed

+79
-117
lines changed

generators/src/main/java/com/algolia/codegen/cts/tests/ClientTestData.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ public class ClientTestData {
1313
class Step {
1414

1515
public String type;
16-
public String object;
17-
public String path;
16+
public String method;
1817
public Map<String, Object> parameters;
1918
public Map<String, Object> requestOptions;
2019
public Expected expected;

generators/src/main/java/com/algolia/codegen/cts/tests/TestsClient.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ public void run(Map<String, CodegenModel> models, Map<String, CodegenOperation>
8888
}
8989
stepOut.put("gzipEncoding", gzipEncoding);
9090
} else if (step.type.equals("method")) {
91-
ope = operations.get(step.path);
91+
ope = operations.get(step.method);
9292
if (ope == null) {
93-
throw new CTSException("Cannot find operation for method: " + step.path, test.testName);
93+
throw new CTSException("Cannot find operation for method: " + step.method, test.testName);
9494
}
9595
stepOut.put("stepTemplate", "tests/client/method.mustache");
9696
stepOut.put("isMethod", true); // TODO: remove once kotlin is converted
@@ -101,16 +101,15 @@ public void run(Map<String, CodegenModel> models, Map<String, CodegenOperation>
101101
testOut.put("isAsync", (boolean) ope.vendorExtensions.getOrDefault("x-asynchronous-helper", true)); // default to true because most api calls are asynchronous
102102
}
103103

104-
stepOut.put("object", step.object);
105-
stepOut.put("path", step.path);
104+
stepOut.put("method", step.method);
106105

107106
if (step.requestOptions != null) {
108107
Map<String, Object> requestOptions = new HashMap<>();
109108
paramsType.enhanceParameters(step.requestOptions, requestOptions);
110109
stepOut.put("requestOptions", requestOptions);
111110
}
112111

113-
if (step.path != null && CUSTOM_METHODS.contains(step.path)) {
112+
if (step.method != null && CUSTOM_METHODS.contains(step.method)) {
114113
stepOut.put("isCustom", true);
115114
}
116115
paramsType.enhanceParameters(step.parameters, stepOut, ope);
@@ -152,9 +151,9 @@ public void run(Map<String, CodegenModel> models, Map<String, CodegenOperation>
152151
if (step.expected.error != null) {
153152
stepOut.put("isError", true);
154153
stepOut.put("expectedError", step.expected.error);
155-
if (language.equals("go") && step.path != null) {
154+
if (language.equals("go") && step.method != null) {
156155
// hack for go that use PascalCase, but just in the operationID
157-
stepOut.put("expectedError", step.expected.error.replace(step.path, Helpers.toPascalCase(step.path)));
156+
stepOut.put("expectedError", step.expected.error.replace(step.method, Helpers.toPascalCase(step.method)));
158157
}
159158
} else if (step.expected.match != null) {
160159
Map<String, Object> matchMap = new HashMap<>();

scripts/cts/runCts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ async function runCtsOne(
115115
break;
116116
case 'swift':
117117
await run(
118-
`swift test -Xswiftc -suppress-warnings -v --parallel ${filter((f) => `--filter ${f}.*`)}`,
118+
`swift test -Xswiftc -suppress-warnings --parallel ${filter((f) => `--filter ${f}.*`)}`,
119119
{
120120
cwd,
121121
language,

scripts/cts/testServer/timeout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function assertValidTimeouts(expectedCount: number): void {
2929
expect(state.duration[0] * 2).to.be.closeTo(state.duration[1], 200);
3030
break;
3131
case 'Swift':
32-
expect(state.duration[0]).to.be.closeTo(state.duration[1], 500);
32+
expect(state.duration[0]).to.be.closeTo(state.duration[1], 800);
3333
break;
3434
default:
3535
// the delay should be the same, because the `retryCount` is per host instead of global

templates/csharp/tests/client/method.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{^useEchoRequester}}var res = {{/useEchoRequester}}{{#isAsync}}await {{/isAsync}}client.{{#lambda.pascalcase}}{{#path}}.{{.}}{{/path}}{{/lambda.pascalcase}}{{#isAsync}}Async{{/isAsync}}{{#isGeneric}}<Object>{{/isGeneric}}({{#parametersWithDataType}}{{> tests/generateParams}}{{^-last}},{{/-last}}{{/parametersWithDataType}}{{#hasRequestOptions}}, new RequestOptions(){
1+
{{^useEchoRequester}}var res = {{/useEchoRequester}}{{#isAsync}}await {{/isAsync}}client.{{#lambda.pascalcase}}{{method}}{{/lambda.pascalcase}}{{#isAsync}}Async{{/isAsync}}{{#isGeneric}}<Object>{{/isGeneric}}({{#parametersWithDataType}}{{> tests/generateParams}}{{^-last}},{{/-last}}{{/parametersWithDataType}}{{#hasRequestOptions}}, new RequestOptions(){
22
{{#requestOptions.queryParameters}}
33
QueryParameters = new Dictionary<string, object>(){ {{#parametersWithDataType}} {"{{{key}}}", {{> tests/requests/requestOptionsParams}} } {{^-last}},{{/-last}}{{/parametersWithDataType}} },
44
{{/requestOptions.queryParameters}}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{{#isAsync}}await {{/isAsync}}client.{{#lambda.pascalcase}}{{method}}{{/lambda.pascalcase}}{{#isAsync}}Async{{/isAsync}}{{#isGeneric}}<Object>{{/isGeneric}}({{#parametersWithDataType}}{{> tests/generateParams}}{{^-last}},{{/-last}}{{/parametersWithDataType}}{{#hasRequestOptions}}, new RequestOptions(){
2+
{{#requestOptions.queryParameters}}
3+
QueryParameters = new Dictionary<string, object>(){ {{#parametersWithDataType}} {"{{{key}}}", {{> tests/requests/requestOptionsParams}} } {{^-last}},{{/-last}}{{/parametersWithDataType}} },
4+
{{/requestOptions.queryParameters}}
5+
{{#requestOptions.headers}}
6+
Headers = new Dictionary<string, string>(){ {{#parametersWithDataType}} {"{{{key}}}", "{{{value}}}" } {{^-last}},{{/-last}}{{/parametersWithDataType}} },
7+
{{/requestOptions.headers}}
8+
}{{/hasRequestOptions}});
9+
{{#useEchoRequester}}EchoResponse result = _echo.LastResponse;{{/useEchoRequester}}

templates/dart/tests/client/method.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
try {
2-
final res = await client.{{path}}(
2+
final res = await client.{{method}}(
33
{{#parametersWithDataType}}
44
{{> tests/request_param}}
55
{{/parametersWithDataType}}
@@ -16,4 +16,4 @@ try {
1616
{{/match}}
1717
} on InterceptionException catch (_) {
1818
// Ignore InterceptionException
19-
}
19+
}

templates/go/snippets/method.mustache

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ func SnippetFor{{#lambda.titlecase}}{{method}}{{/lambda.titlecase}}Of{{#lambda.p
2424
}
2525

2626
// Call the API
27-
{{#hasResponsePayload}}response, err :={{/hasResponsePayload}}{{^hasResponsePayload}}err ={{/hasResponsePayload}} client.{{#lambda.titlecase}}{{method}}{{/lambda.titlecase}}({{#hasOperationParams}}client.NewApi{{#lambda.titlecase}}{{method}}{{/lambda.titlecase}}Request(
28-
{{#parametersWithDataType}}{{#required}}{{> tests/generateParams}},{{/required}}{{/parametersWithDataType}}
29-
){{#parametersWithDataType}}{{^required}}.With{{#lambda.pascalcase}}{{{key}}}{{/lambda.pascalcase}}({{> tests/generateParams}}){{/required}}{{/parametersWithDataType}}{{/hasOperationParams}}{{#requestOptions}}{{#hasOperationParams}},{{/hasOperationParams}}
30-
{{#queryParameters.parametersWithDataType}}{{clientPrefix}}.WithQueryParam("{{{key}}}", {{> tests/generateInnerParams}}),{{/queryParameters.parametersWithDataType}}{{#headers.parametersWithDataType}}{{clientPrefix}}.WithHeaderParam("{{{key}}}", {{> tests/generateInnerParams}}),{{/headers.parametersWithDataType}}
31-
{{/requestOptions}})
27+
{{#hasResponsePayload}}response, err :={{/hasResponsePayload}}{{^hasResponsePayload}}err ={{/hasResponsePayload}} {{> tests/method}}
3228
if err != nil {
3329
// handle the eventual error
3430
panic(err)
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
{{^useEchoRequester}}res, err := {{/useEchoRequester}}{{#useEchoRequester}}_, err = {{/useEchoRequester}}client.{{#lambda.titlecase}}{{path}}{{/lambda.titlecase}}({{^isHelper}}client.NewApi{{#lambda.titlecase}}{{path}}{{/lambda.titlecase}}Request({{/isHelper}}
2-
{{#parametersWithDataType}}{{#required}}{{> tests/generateParams}},{{/required}}{{/parametersWithDataType}}
3-
{{^isHelper}}){{#parametersWithDataType}}{{^required}}.With{{#lambda.pascalcase}}{{{key}}}{{/lambda.pascalcase}}({{> tests/generateParams}}){{/required}}{{/parametersWithDataType}}{{/isHelper}}{{#isHelper}}{{#parametersWithDataType}}{{^required}}{{> tests/generateParams}},{{/required}}{{/parametersWithDataType}}{{/isHelper}}{{#requestOptions}}{{#hasOperationParams}},{{/hasOperationParams}}
4-
{{#queryParameters.parametersWithDataType}}{{clientPrefix}}.WithQueryParam("{{{key}}}", {{> tests/generateInnerParams}}),{{/queryParameters.parametersWithDataType}}{{#headers.parametersWithDataType}}{{clientPrefix}}.WithHeaderParam("{{{key}}}", {{> tests/generateInnerParams}}),{{/headers.parametersWithDataType}}
5-
{{/requestOptions}})
1+
{{^useEchoRequester}}res, err := {{/useEchoRequester}}{{#useEchoRequester}}_, err = {{/useEchoRequester}}{{> tests/method}}

templates/go/tests/e2e/e2e.mustache

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ func Test{{#lambda.titlecase}}{{clientPrefix}}{{/lambda.titlecase}}E2E_{{#lambda
3333
{{#tests}}
3434
t.Run("{{{testName}}}", func(t *testing.T) {
3535
client := createE2E{{#lambda.titlecase}}{{clientPrefix}}{{/lambda.titlecase}}Client(t)
36-
res, err := client.{{#lambda.titlecase}}{{method}}{{/lambda.titlecase}}({{#hasOperationParams}}client.NewApi{{#lambda.titlecase}}{{method}}{{/lambda.titlecase}}Request(
37-
{{#parametersWithDataType}}{{#required}}{{> tests/generateParams}},{{/required}}{{/parametersWithDataType}}
38-
){{#parametersWithDataType}}{{^required}}.With{{#lambda.pascalcase}}{{{key}}}{{/lambda.pascalcase}}({{> tests/generateParams}}){{/required}}{{/parametersWithDataType}}{{/hasOperationParams}}{{#requestOptions}}{{#hasOperationParams}},{{/hasOperationParams}}
39-
{{#queryParameters.parametersWithDataType}}{{clientPrefix}}.WithQueryParam("{{{key}}}", {{> tests/generateInnerParams}}),{{/queryParameters.parametersWithDataType}}{{#headers.parametersWithDataType}}{{clientPrefix}}.WithHeaderParam("{{{key}}}", {{> tests/generateInnerParams}}),{{/headers.parametersWithDataType}}
40-
{{/requestOptions}})
36+
res, err := {{> tests/method}}
4137
require.NoError(t, err)
4238
_ = res
4339

templates/go/tests/method.mustache

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
client.{{#lambda.titlecase}}{{method}}{{/lambda.titlecase}}({{#hasOperationParams}}{{^isHelper}}client.NewApi{{#lambda.titlecase}}{{method}}{{/lambda.titlecase}}Request({{/isHelper}}
2+
{{#parametersWithDataType}}{{#required}}{{> tests/generateParams}},{{/required}}{{/parametersWithDataType}}
3+
{{^isHelper}}){{#parametersWithDataType}}{{^required}}.With{{#lambda.pascalcase}}{{{key}}}{{/lambda.pascalcase}}({{> tests/generateParams}}){{/required}}{{/parametersWithDataType}}{{/isHelper}}{{#isHelper}}{{#parametersWithDataType}}{{^required}}{{> tests/generateParams}},{{/required}}{{/parametersWithDataType}}{{/isHelper}}{{/hasOperationParams}}{{#requestOptions}}{{#hasOperationParams}},{{/hasOperationParams}}
4+
{{#queryParameters.parametersWithDataType}}{{clientPrefix}}.WithQueryParam("{{{key}}}", {{> tests/generateInnerParams}}),{{/queryParameters.parametersWithDataType}}{{#headers.parametersWithDataType}}{{clientPrefix}}.WithHeaderParam("{{{key}}}", {{> tests/generateInnerParams}}),{{/headers.parametersWithDataType}}
5+
{{/requestOptions}})

templates/go/tests/requests/requests.mustache

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ func Test{{#lambda.titlecase}}{{clientPrefix}}{{/lambda.titlecase}}_{{#lambda.ti
4040

4141
{{#tests}}
4242
t.Run("{{{testName}}}", func(t *testing.T) {
43-
{{#hasResponsePayload}}_, {{/hasResponsePayload}}err := client.{{#lambda.titlecase}}{{method}}{{/lambda.titlecase}}({{#hasOperationParams}}client.NewApi{{#lambda.titlecase}}{{method}}{{/lambda.titlecase}}Request(
44-
{{#parametersWithDataType}}{{#required}}{{> tests/generateParams}},{{/required}}{{/parametersWithDataType}}
45-
){{#parametersWithDataType}}{{^required}}.With{{#lambda.pascalcase}}{{{key}}}{{/lambda.pascalcase}}({{> tests/generateParams}}){{/required}}{{/parametersWithDataType}}{{/hasOperationParams}}{{#requestOptions}}{{#hasOperationParams}},{{/hasOperationParams}}
46-
{{#queryParameters.parametersWithDataType}}{{clientPrefix}}.WithQueryParam("{{{key}}}", {{> tests/generateInnerParams}}),{{/queryParameters.parametersWithDataType}}{{#headers.parametersWithDataType}}{{clientPrefix}}.WithHeaderParam("{{{key}}}", {{> tests/generateInnerParams}}),{{/headers.parametersWithDataType}}
47-
{{/requestOptions}})
43+
{{#hasResponsePayload}}_, {{/hasResponsePayload}}err := {{> tests/method}}
4844
require.NoError(t, err)
4945

5046
{{#request}}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
{{^useEchoRequester}}var res = {{/useEchoRequester}}client{{#path}}.{{.}}{{/path}}({{#parametersWithDataType}}{{> tests/generateParams}}{{^-last}},{{/-last}}{{/parametersWithDataType}});
2-
{{#useEchoRequester}}EchoResponse result = echo.getLastResponse();{{/useEchoRequester}}
1+
{{^useEchoRequester}}var res = {{/useEchoRequester}}client{{#method}}.{{.}}{{/method}}({{#parametersWithDataType}}{{> tests/generateParams}}{{^-last}},{{/-last}}{{/parametersWithDataType}});
2+
{{#useEchoRequester}}EchoResponse result = echo.getLastResponse();{{/useEchoRequester}}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
const result = {{#isAsync}}await {{/isAsync}}({{object}}{{#path}}.{{.}}{{/path}}({{{parameters}}})){{#useEchoRequester}} as unknown as EchoResponse{{/useEchoRequester}};
1+
const result = {{#isAsync}}await {{/isAsync}}client{{#method}}.{{.}}{{/method}}({{{parameters}}})){{#useEchoRequester}} as unknown as EchoResponse{{/useEchoRequester}};
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
client.{{path}}(
1+
client.{{method}}(
22
{{#parametersWithDataType}}
33
{{> tests/request_param}}
44
{{/parametersWithDataType}}
5-
)
5+
)

templates/kotlin/tests/client/suite.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class {{clientPrefix}}Test {
3535
{{#isMethod}}
3636
client.runTest(
3737
call = {
38-
{{path}}(
38+
{{method}}(
3939
{{#parametersWithDataType}}
4040
{{> tests/request_param}}
4141
{{/parametersWithDataType}}
@@ -86,4 +86,4 @@ class {{clientPrefix}}Test {
8686
}
8787
{{/tests}}
8888
{{/blocksClient}}
89-
}
89+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
{{^useEchoRequester}}$res = {{/useEchoRequester}}$client->{{{path}}}{{^parametersWithDataType}}();{{/parametersWithDataType}}({{#parametersWithDataType}}
1+
{{^useEchoRequester}}$res = {{/useEchoRequester}}$client->{{{method}}}{{^parametersWithDataType}}();{{/parametersWithDataType}}({{#parametersWithDataType}}
22
{{> tests/generateParams}}
3-
{{/parametersWithDataType}});
3+
{{/parametersWithDataType}});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{^isError}}_req = {{/isError}}{{#isAsync}}await {{/isAsync}}self._client.{{#lambda.snakecase}}{{{path}}}{{/lambda.snakecase}}{{#useEchoRequester}}_with_http_info{{/useEchoRequester}}({{#parametersWithDataType}}{{> tests/requests/generateParams}}{{/parametersWithDataType}}{{#hasRequestOptions}} request_options={ {{#requestOptions.headers.parameters}}"headers":loads("""{{{.}}}"""),{{/requestOptions.headers.parameters}}{{#requestOptions.queryParameters.parameters}}"query_parameters":loads("""{{{.}}}"""),{{/requestOptions.queryParameters.parameters}} }{{/hasRequestOptions}})
1+
{{^isError}}_req = {{/isError}}{{#isAsync}}await {{/isAsync}}self._client.{{#lambda.snakecase}}{{{method}}}{{/lambda.snakecase}}{{#useEchoRequester}}_with_http_info{{/useEchoRequester}}({{#parametersWithDataType}}{{> tests/requests/generateParams}}{{/parametersWithDataType}}{{#hasRequestOptions}} request_options={ {{#requestOptions.headers.parameters}}"headers":loads("""{{{.}}}"""),{{/requestOptions.headers.parameters}}{{#requestOptions.queryParameters.parameters}}"query_parameters":loads("""{{{.}}}"""),{{/requestOptions.queryParameters.parameters}} }{{/hasRequestOptions}})
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{^isError}}req = {{/isError}}client.{{#lambda.snakecase}}{{path}}{{/lambda.snakecase}}{{#useEchoRequester}}_with_http_info{{/useEchoRequester}}({{#parametersWithDataType}}{{> tests/generateParams}}{{/parametersWithDataType}}{{#hasRequestOptions}}{ {{#requestOptions.headers.parameters}}:header_params => JSON.parse('{{{.}}}', :symbolize_names => true),{{/requestOptions.headers.parameters}}{{#requestOptions.queryParameters.parameters}}:query_params => JSON.parse('{{{.}}}', :symbolize_names => true){{/requestOptions.queryParameters.parameters}} }{{/hasRequestOptions}})
1+
{{^isError}}req = {{/isError}}client.{{#lambda.snakecase}}{{method}}{{/lambda.snakecase}}{{#useEchoRequester}}_with_http_info{{/useEchoRequester}}({{#parametersWithDataType}}{{> tests/generateParams}}{{/parametersWithDataType}}{{#hasRequestOptions}}{ {{#requestOptions.headers.parameters}}:header_params => JSON.parse('{{{.}}}', :symbolize_names => true),{{/requestOptions.headers.parameters}}{{#requestOptions.queryParameters.parameters}}:query_params => JSON.parse('{{{.}}}', :symbolize_names => true){{/requestOptions.queryParameters.parameters}} }{{/hasRequestOptions}})
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{{^useEchoRequester}}var res = Await.result{{/useEchoRequester}}{{#useEchoRequester}}Await.ready{{/useEchoRequester}}(
2-
client.{{path}}{{#isCustom}}[Any]{{/isCustom}}(
2+
client.{{method}}{{#isCustom}}[Any]{{/isCustom}}(
33
{{#parametersWithDataType}}
44
{{> tests/request_param}}{{^-last}},{{/-last}}
55
{{/parametersWithDataType}}
66
),
77
Duration.Inf
8-
)
8+
)

templates/swift/tests/client/method.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let response = try {{#isAsync}}await {{/isAsync}}client{{#path}}.{{.}}{{^isHelper}}WithHTTPInfo{{/isHelper}}{{/path}}(
1+
let response = try {{#isAsync}}await {{/isAsync}}client{{#method}}.{{.}}{{^isHelper}}WithHTTPInfo{{/isHelper}}{{/method}}(
22
{{#parametersWithDataType}}{{> tests/generateParams }}{{^-last}},{{/-last}}
33
{{/parametersWithDataType}}{{#requestOptions.parametersWithDataType}}{{#-first}}, requestOptions: RequestOptions({{/-first}}
44
{{> tests/generateParams }}{{^-last}},{{/-last}}
@@ -11,4 +11,4 @@ let echoResponse = try CodableHelper.jsonDecoder.decode(EchoResponse.self, from:
1111
{{^useEchoRequester}}
1212
let responseBodyJSON = try XCTUnwrap(responseBodyData.jsonString)
1313
{{/useEchoRequester}}
14-
{{/isHelper}}
14+
{{/isHelper}}

tests/CTS/client/abtesting/parameters.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
},
1313
{
1414
"type": "method",
15-
"object": "$client",
16-
"path": "getABTest",
15+
"method": "getABTest",
1716
"parameters": {
1817
"id": 123
1918
},
@@ -38,8 +37,7 @@
3837
},
3938
{
4039
"type": "method",
41-
"object": "$client",
42-
"path": "getABTest",
40+
"method": "getABTest",
4341
"parameters": {
4442
"id": 123
4543
},

tests/CTS/client/analytics/parameters.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
},
1313
{
1414
"type": "method",
15-
"object": "$client",
16-
"path": "getAverageClickPosition",
15+
"method": "getAverageClickPosition",
1716
"parameters": {
1817
"index": "my-index"
1918
},
@@ -38,8 +37,7 @@
3837
},
3938
{
4039
"type": "method",
41-
"object": "$client",
42-
"path": "customPost",
40+
"method": "customPost",
4341
"parameters": {
4442
"path": "test"
4543
},
@@ -72,8 +70,7 @@
7270
"steps": [
7371
{
7472
"type": "method",
75-
"object": "$client",
76-
"path": "getClickPositions",
73+
"method": "getClickPositions",
7774
"parameters": {
7875
"index": null
7976
},

tests/CTS/client/common/commonApi.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"steps": [
55
{
66
"type": "method",
7-
"object": "$client",
8-
"path": "customPost",
7+
"method": "customPost",
98
"parameters": {
109
"path": "1/test"
1110
},
@@ -21,8 +20,7 @@
2120
"steps": [
2221
{
2322
"type": "method",
24-
"object": "$client",
25-
"path": "customGet",
23+
"method": "customGet",
2624
"parameters": {
2725
"path": "1/test"
2826
},
@@ -41,8 +39,7 @@
4139
"steps": [
4240
{
4341
"type": "method",
44-
"object": "$client",
45-
"path": "customPost",
42+
"method": "customPost",
4643
"parameters": {
4744
"path": "1/test"
4845
},

tests/CTS/client/ingestion/parameters.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
},
1414
{
1515
"type": "method",
16-
"object": "$client",
17-
"path": "getSource",
16+
"method": "getSource",
1817
"parameters": {
1918
"sourceID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f"
2019
},

0 commit comments

Comments
 (0)