Skip to content

Commit

Permalink
refactor: Remove tests for /metrics endpoint
Browse files Browse the repository at this point in the history
This enpoint is being removed in edgexfoundry/edgex-go#4311 and future PRs for App and Device SDKs

Signed-off-by: Leonard Goodell <[email protected]>
  • Loading branch information
Leonard Goodell authored and cherrycl committed Jan 31, 2023
1 parent 13fc738 commit 5a52662
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 56 deletions.
6 changes: 0 additions & 6 deletions TAF/testCaseModules/keywords/common/commonKeywords.robot
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,6 @@ Query Version
${resp}= GET On Session Version api/${API_VERSION}/version headers=${headers} expected_status=200
Set Response to Test Variables ${resp}

Query Metrics
${headers}= Create Dictionary Authorization=Bearer ${jwt_token}
Create Session Metrics url=${url} disable_warnings=true
${resp}= GET On Session Metrics api/${API_VERSION}/metrics headers=${headers} expected_status=200
Set Response to Test Variables ${resp}

Update Service Configuration On Consul
[Arguments] ${path} ${value}
${consul_token} Run Keyword If $SECURITY_SERVICE_NEEDED == 'true' Get Consul Token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@ InfoGET002 - Query version
And apiVersion Should be ${API_VERSION}
And Response Time Should Be Less Than "${default_response_time_threshold}"ms

InfoGET003 - Query metrics
When Query Metrics
Then Should Return Status Code "200" And metrics
And apiVersion Should be ${API_VERSION}
And Response Time Should Be Less Than "${default_response_time_threshold}"ms

InfoGET004 - Query config
InfoGET003 - Query config
When Query Config
Then Should Return Status Code "200" And config
And apiVersion Should be ${API_VERSION}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@ InfoGET002 - Query version
And apiVersion Should be ${API_VERSION}
And Response Time Should Be Less Than "${default_response_time_threshold}"ms

InfoGET003 - Query metrics
When Query Metrics
Then Should Return Status Code "200" And metrics
And apiVersion Should be ${API_VERSION}
And Response Time Should Be Less Than "${default_response_time_threshold}"ms

InfoGET004 - Query config
InfoGET003 - Query config
When Query Config
Then Should Return Status Code "200" And config
And apiVersion Should be ${API_VERSION}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@ InfoGET002 - Query version
And apiVersion Should be ${API_VERSION}
And Response Time Should Be Less Than "${default_response_time_threshold}"ms

InfoGET003 - Query metrics
When Query Metrics
Then Should Return Status Code "200" And metrics
And apiVersion Should be ${API_VERSION}
And Response Time Should Be Less Than "${default_response_time_threshold}"ms

InfoGET004 - Query config
InfoGET003 - Query config
When Query Config
Then Should Return Status Code "200" And config
And apiVersion Should be ${API_VERSION}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,13 @@ InfoGET002 - Query version
And apiVersion Should be ${API_VERSION}
And Response Time Should Be Less Than "${default_response_time_threshold}"ms

InfoGET003 - Query metrics
When Query Metrics
Then Should Return Status Code "200" And metrics
And apiVersion Should be ${API_VERSION}
And Response Time Should Be Less Than "${default_response_time_threshold}"ms

InfoGET004 - Query config
InfoGET003 - Query config
When Query Config
Then Should Return Status Code "200" And config
And apiVersion Should be ${API_VERSION}
And Response Time Should Be Less Than "${default_response_time_threshold}"ms

InfoGET005 - Query UoM
InfoGET004 - Query UoM
When Query UoM
Then Should Return Status Code "200" And uom
And apiVersion Should be ${API_VERSION}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@ InfoGET002 - Query version
And apiVersion Should be ${API_VERSION}
And Response Time Should Be Less Than "${default_response_time_threshold}"ms

InfoGET003 - Query metrics
When Query Metrics
Then Should Return Status Code "200" And metrics
And apiVersion Should be ${API_VERSION}
And Response Time Should Be Less Than "${default_response_time_threshold}"ms

InfoGET004 - Query config
InfoGET003 - Query config
When Query Config
Then Should Return Status Code "200" And config
And apiVersion Should be ${API_VERSION}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@ InfoGET002 - Query version
And apiVersion Should be ${API_VERSION}
And Response Time Should Be Less Than "${default_response_time_threshold}"ms

InfoGET003 - Query metrics
When Query Metrics
Then Should Return Status Code "200" And metrics
And apiVersion Should be ${API_VERSION}
And Response Time Should Be Less Than "${default_response_time_threshold}"ms

InfoGET004 - Query config
InfoGET003 - Query config
When Query Config
Then Should Return Status Code "200" And config
And apiVersion Should be ${API_VERSION}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,7 @@ InfoGET002 - Query version
And apiVersion Should be ${API_VERSION}
And Response Time Should Be Less Than "${default_response_time_threshold}"ms

InfoGET003 - Query metrics
When Query Metrics
Then Should Return Status Code "200" And metrics
And apiVersion Should be ${API_VERSION}
And Response Time Should Be Less Than "${default_response_time_threshold}"ms

InfoGET004 - Query config
InfoGET003 - Query config
When Query Config
Then Should Return Status Code "200" And config
And apiVersion Should be ${API_VERSION}
Expand Down

0 comments on commit 5a52662

Please sign in to comment.