From 2303dede01cb3e478b8222260e22abb6473ea661 Mon Sep 17 00:00:00 2001 From: Yading Fang Date: Sat, 7 Feb 2026 01:06:42 +0800 Subject: [PATCH 1/2] test: update click-to-dial feature files with resource URLs and x-correlator --- code/Test_definitions/click-to-dial-createCall.feature | 4 +++- code/Test_definitions/click-to-dial-getRecording.feature | 4 +++- code/Test_definitions/click-to-dial-terminateCall.feature | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/code/Test_definitions/click-to-dial-createCall.feature b/code/Test_definitions/click-to-dial-createCall.feature index 1cef225..72ba61b 100644 --- a/code/Test_definitions/click-to-dial-createCall.feature +++ b/code/Test_definitions/click-to-dial-createCall.feature @@ -7,9 +7,11 @@ Feature: CAMARA Click to Dial API, vwip - Operation createCall # References to OAS spec schemas refer to schemas specified in click-to-dial.yaml Background: Common createCall setup - Given an environment at "apiRoot" | + Given an environment at "apiRoot" + And the resource "/click-to-dial/v0.1rc1/calls" And the header "Content-Type" is set to "application/json" And the header "Authorization" is set to a valid access token + And the header "x-correlator" is set to a valid UUID # Properties not explicitly overwritten in the Scenarios can take any values compliant with the schema And the request body is set by default to a request body compliant with the schema at "/components/schemas/CreateCallRequest" diff --git a/code/Test_definitions/click-to-dial-getRecording.feature b/code/Test_definitions/click-to-dial-getRecording.feature index 79b2376..336c12a 100644 --- a/code/Test_definitions/click-to-dial-getRecording.feature +++ b/code/Test_definitions/click-to-dial-getRecording.feature @@ -7,9 +7,11 @@ Feature: CAMARA Click to Dial API, vwip - Operation getRecording # References to OAS spec schemas refer to schemas specified in click-to-dial.yaml Background: Common getRecording setup - Given an environment at "apiRoot" | + Given an environment at "apiRoot" + And the resource "/click-to-dial/v0.1rc1/calls/{callId}/recording" And the header "Content-Type" is set to "application/json" And the header "Authorization" is set to a valid access token + And the header "x-correlator" is set to a valid UUID # Path parameters not explicitly overwritten in the Scenarios can take any values compliant with the schema # Success scenarios diff --git a/code/Test_definitions/click-to-dial-terminateCall.feature b/code/Test_definitions/click-to-dial-terminateCall.feature index 9b9e19e..3bb0b97 100644 --- a/code/Test_definitions/click-to-dial-terminateCall.feature +++ b/code/Test_definitions/click-to-dial-terminateCall.feature @@ -7,9 +7,11 @@ Feature: CAMARA Click to Dial API, vwip - Operation terminateCall # References to OAS spec schemas refer to schemas specified in click-to-dial.yaml Background: Common terminateCall setup - Given an environment at "apiRoot" | + Given an environment at "apiRoot" + And the resource "/click-to-dial/v0.1rc1/calls/{callId}" And the header "Content-Type" is set to "application/json" And the header "Authorization" is set to a valid access token + And the header "x-correlator" is set to a valid UUID # Path parameters not explicitly overwritten in the Scenarios can take any values compliant with the schema # Success scenarios From 6a4fed88fea7091f50b6f015793dcad2214a80f8 Mon Sep 17 00:00:00 2001 From: Yading Fang Date: Tue, 10 Feb 2026 09:23:47 +0800 Subject: [PATCH 2/2] tests: reference XCorrelator schema in .feature backgrounds --- code/Test_definitions/click-to-dial-createCall.feature | 3 ++- code/Test_definitions/click-to-dial-getRecording.feature | 3 ++- code/Test_definitions/click-to-dial-terminateCall.feature | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/code/Test_definitions/click-to-dial-createCall.feature b/code/Test_definitions/click-to-dial-createCall.feature index 72ba61b..f13b55f 100644 --- a/code/Test_definitions/click-to-dial-createCall.feature +++ b/code/Test_definitions/click-to-dial-createCall.feature @@ -12,7 +12,8 @@ Feature: CAMARA Click to Dial API, vwip - Operation createCall And the header "Content-Type" is set to "application/json" And the header "Authorization" is set to a valid access token And the header "x-correlator" is set to a valid UUID - # Properties not explicitly overwritten in the Scenarios can take any values compliant with the schema + And the header "x-correlator" complies with the schema at "#/components/schemas/XCorrelator" + # Properties not explicitly overwritten in the Scenarios can take any values compliant with the schema And the request body is set by default to a request body compliant with the schema at "/components/schemas/CreateCallRequest" # Success scenarios diff --git a/code/Test_definitions/click-to-dial-getRecording.feature b/code/Test_definitions/click-to-dial-getRecording.feature index 336c12a..ad37101 100644 --- a/code/Test_definitions/click-to-dial-getRecording.feature +++ b/code/Test_definitions/click-to-dial-getRecording.feature @@ -12,7 +12,8 @@ Feature: CAMARA Click to Dial API, vwip - Operation getRecording And the header "Content-Type" is set to "application/json" And the header "Authorization" is set to a valid access token And the header "x-correlator" is set to a valid UUID - # Path parameters not explicitly overwritten in the Scenarios can take any values compliant with the schema + And the header "x-correlator" complies with the schema at "#/components/schemas/XCorrelator" + # Path parameters not explicitly overwritten in the Scenarios can take any values compliant with the schema # Success scenarios @getrecording_success diff --git a/code/Test_definitions/click-to-dial-terminateCall.feature b/code/Test_definitions/click-to-dial-terminateCall.feature index 3bb0b97..d758e75 100644 --- a/code/Test_definitions/click-to-dial-terminateCall.feature +++ b/code/Test_definitions/click-to-dial-terminateCall.feature @@ -12,7 +12,8 @@ Feature: CAMARA Click to Dial API, vwip - Operation terminateCall And the header "Content-Type" is set to "application/json" And the header "Authorization" is set to a valid access token And the header "x-correlator" is set to a valid UUID - # Path parameters not explicitly overwritten in the Scenarios can take any values compliant with the schema + And the header "x-correlator" complies with the schema at "#/components/schemas/XCorrelator" + # Path parameters not explicitly overwritten in the Scenarios can take any values compliant with the schema # Success scenarios @terminatecall_success