From 263e362e41cb6ccdbc3c35e3d1d2ee4652949042 Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Fri, 9 Feb 2024 16:35:20 +0000 Subject: [PATCH 1/2] Added Simplle Edge Discovery Gherkin .feature --- .../Simple_Edge_discovery_Test.feature | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 code/Test_definitions/Simple_Edge_discovery_Test.feature diff --git a/code/Test_definitions/Simple_Edge_discovery_Test.feature b/code/Test_definitions/Simple_Edge_discovery_Test.feature new file mode 100644 index 00000000..19c3fcb8 --- /dev/null +++ b/code/Test_definitions/Simple_Edge_discovery_Test.feature @@ -0,0 +1,55 @@ +#/*- ---license-start +#* CAMARA Project +#* --- +#* Copyright (C) 2022 - 2023 Contributors | Deutsche Telekom AG to CAMARA a Series of LF Projects, LLC +#* The contributor of this file confirms his sign-off for the +#* Developer Certificate of Origin (http://developercertificate.org). +#* --- +#* Licensed under the Apache License, Version 2.0 (the "License"); +#* you may not use this file except in compliance with the License. +#* You may obtain a copy of the License at +#* +#* http://www.apache.org/licenses/LICENSE-2.0 +#* +#* Unless required by applicable law or agreed to in writing, software +#* distributed under the License is distributed on an "AS IS" BASIS, +#* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +#* See the License for the specific language governing permissions and +#* limitations under the License. +#* ---license-end +#*/ + +@EDS +Feature: EDS API test + + @EDSGetClosestMECPlatform + Scenario: API Client requests name of closest MEC platform to a target UE + Given Use the EDS MOCK URL + When API Client makes a valid GET request + 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 value is not 'closest' + Then Response code is 400 + + @EDSInvalidUEIdentity + 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 Use the EDS MOCK URL + When The operator is unable to resolve the closest MEC platform + Then Response code is 500 From b8c216d0dc1b4b15e9d387a68d802f08548b9fe2 Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Fri, 9 Feb 2024 16:42:39 +0000 Subject: [PATCH 2/2] Rename Simple_Edge_Discovery_Test.feature to Simple_Edge_Discovery_Test.feature --- ..._discovery_Test.feature => Simple_Edge_Discovery_Test.feature} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename code/Test_definitions/{Simple_Edge_discovery_Test.feature => Simple_Edge_Discovery_Test.feature} (100%) diff --git a/code/Test_definitions/Simple_Edge_discovery_Test.feature b/code/Test_definitions/Simple_Edge_Discovery_Test.feature similarity index 100% rename from code/Test_definitions/Simple_Edge_discovery_Test.feature rename to code/Test_definitions/Simple_Edge_Discovery_Test.feature