Skip to content

Commit

Permalink
Update EDS_API_Test.feature
Browse files Browse the repository at this point in the history
Align with #127 and fix comment from initial review (404 instead of 500 for 'invalid device identifier')
  • Loading branch information
Kevsy authored Aug 17, 2023
1 parent de99264 commit 3119d5f
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions code/cucumber/src/test/resources/feature/EDS_API_Test.feature
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,34 @@
@EDS
Feature: EDS API test

Background:
Given Use the EDS MOCK URL

@EDSGetClosestMECPlatform
Scenario: API Client requests name of closest MEC platform to a target UE
Given the target UE is attached to the operator network
Given Use the EDS MOCK URL
When API Client makes a valid GET request
Then Response code is 200 OK
And the response includes the name of the closest MEC platform
Then Response code is 200
And The response includes the name of the closest MEC platform
And The response includes the name of the MEC platform provider

@EDSNoFilterParameter
Scenario: API Client omits filter parameter
Given Use the EDS MOCK URL
When The filter parameter is omitted
Then Response code is 400

@EDSIncorrectFilterParameterValue
Scenario: API Client provides incorrect filter value
Given Use the EDS MOCK URL
When The filter parameter is omitted
Then Response code is 400

@EDSInvalidUEIdentity
Scenario: API Client passes an invalid UE identity
Given the target UE identity is invalid
When API Client makes a GET request with invalid UE identity
Then Response code is 500 Internal Server Error


Scenario: the user device cannot be identified from the provided parameters
Given Use the EDS MOCK URL
When API is requested with invalid user device identity
Then Response code is 404

@EDSInternalServerError
Scenario: Operator unable to resolve closest MEC platform
Given the target UE is attached to the operator network
When API Client makes a valid GET request
But the operator network is unable to resolve the closest MEC platform
Then Response code is 500 Internal Server Error
Given Use the EDS MOCK URL
When The operator is unable to resolve the closest MEC platform
Then Response code is 500

0 comments on commit 3119d5f

Please sign in to comment.