From f48069beffa1adead798fc4fafdf370503d206b7 Mon Sep 17 00:00:00 2001 From: Ram Reddy Amanaganti Date: Tue, 21 Sep 2021 08:11:37 +0000 Subject: [PATCH] Updating the statements in tests Signed-off-by: Ram Reddy Amanaganti --- features/deployment.feature | 14 +++++++------- features/namespace.feature | 2 +- features/steps/deployment.py | 10 +++++----- features/steps/namespace.py | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/features/deployment.feature b/features/deployment.feature index f700b1b..fe1d18f 100644 --- a/features/deployment.feature +++ b/features/deployment.feature @@ -1,17 +1,17 @@ Feature: Manage deployments Scenario: Try retrieve a deployment that does not exist - Given A deployment called fog does not exist - When The user attempts to retrieve the deployment fog - Then None is returned for the deployment + Given a deployment called fog does not exist + When the user attempts to retrieve the deployment fog + Then None is returned instead of the deployment Scenario: Create a deployment and wait for it to become ready - Given A deployment called whilrwind does not exist - When The deployment called whilrwind is created + Given a deployment called whilrwind does not exist + When the deployment called whilrwind is created Then a valid deployment called whilrwind can be found Scenario: Retrieve a deployment that exists - Given The deployment called fire exists - When The user attempts to retrieve the deployment fire + Given the deployment called fire exists + When the user attempts to retrieve the deployment fire Then Results for the deployment fire are returned diff --git a/features/namespace.feature b/features/namespace.feature index bd750a0..163c6e6 100644 --- a/features/namespace.feature +++ b/features/namespace.feature @@ -3,7 +3,7 @@ Feature: Interact with the Namespace API Scenario: Try retrieve a namespace that does not exist Given a namespace called rain does not exist When the user attempts to retrieve the namespace rain - Then None is returned for the namespace + Then None is returned instead of the namespace Scenario: Create a namespace and check it exists Given a namespace called washington does not exist diff --git a/features/steps/deployment.py b/features/steps/deployment.py index 31d060b..4ddd0fd 100644 --- a/features/steps/deployment.py +++ b/features/steps/deployment.py @@ -5,22 +5,22 @@ from jinja2 import Environment, FileSystemLoader -@given(u"A deployment called {deployment_name} does not exist") +@given(u"a deployment called {deployment_name} does not exist") def step_impl(context, deployment_name): deployment.delete(context.k8s_v1_apps_client, deployment_name) -@when(u"The user attempts to retrieve the deployment {deployment_name}") +@when(u"the user attempts to retrieve the deployment {deployment_name}") def step_impl(context, deployment_name): context.get_resp = deployment.get(context.k8s_v1_apps_client, deployment_name) -@then(u"None is returned for the deployment") +@then(u"None is returned instead of the deployment") def step_impl(context): assert context.get_resp is None, "Did not return None" -@when(u"The deployment called {deployment_name} is created") +@when(u"the deployment called {deployment_name} is created") def step_impl(context, deployment_name): env = Environment( loader=FileSystemLoader("./templates"), trim_blocks=True, lstrip_blocks=True @@ -40,7 +40,7 @@ def step_impl(context): ) -@given(u"The deployment called {deployment_name} exists") +@given(u"the deployment called {deployment_name} exists") def step_impl(context, deployment_name): env = Environment( loader=FileSystemLoader("./templates"), trim_blocks=True, lstrip_blocks=True diff --git a/features/steps/namespace.py b/features/steps/namespace.py index e17e28e..4a29a90 100644 --- a/features/steps/namespace.py +++ b/features/steps/namespace.py @@ -14,7 +14,7 @@ def step_impl(context): context.get_rain_resp = namespace.get(context.k8s_v1_core_client, "rain") -@then(u"None is returned for the namespace") +@then(u"None is returned instead of the namespace") def step_impl(context): assert context.get_rain_resp is None, "Did not return None"