From 62b21f903090893d3441fa59ae5136f7ba02f79a Mon Sep 17 00:00:00 2001 From: agaro Date: Thu, 23 Nov 2023 18:52:15 -0500 Subject: [PATCH 1/2] bug fix for kdt.KubeClientSet.ResourceShouldConvergeToSelector --- kubedog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubedog.go b/kubedog.go index e5c65aa..43c5e08 100644 --- a/kubedog.go +++ b/kubedog.go @@ -52,7 +52,7 @@ func (kdt *Test) SetScenario(scenario *godog.ScenarioContext) { kdt.scenario.Step(`^(?:I )?(create|submit|delete|update|upsert) (?:the )?resource (\S+), the operation should (succeed|fail)$`, kdt.KubeClientSet.ResourceOperationWithResult) kdt.scenario.Step(`^(?:I )?(create|submit|delete|update|upsert) (?:the )?resource (\S+) in (?:the )?([^"]*) namespace, the operation should (succeed|fail)$`, kdt.KubeClientSet.ResourceOperationWithResultInNamespace) kdt.scenario.Step(`^(?:the )?resource ([^"]*) should be (created|deleted)$`, kdt.KubeClientSet.ResourceShouldBe) - kdt.scenario.Step(`^(?:the )?resource ([^"]*) (?:should )?converge to selector (\S+)$`, kdt.KubeClientSet.ResourceShouldConvergeToSelector) + kdt.scenario.Step(`^(?:the )?resource (\S+) (?:should )?converge to selector (\S+)$`, kdt.KubeClientSet.ResourceShouldConvergeToSelector) kdt.scenario.Step(`^(?:the )?resource ([^"]*) condition ([^"]*) should be ([^"]*)$`, kdt.KubeClientSet.ResourceConditionShouldBe) kdt.scenario.Step(`^(?:I )?update (?:the )?resource ([^"]*) with ([^"]*) set to ([^"]*)$`, kdt.KubeClientSet.UpdateResourceWithField) kdt.scenario.Step(`^(?:I )?verify InstanceGroups (?:are )?in "ready" state$`, kdt.KubeClientSet.VerifyInstanceGroups) From 460a3dd0c20a53ada4a40a8e34e14363f847dbc4 Mon Sep 17 00:00:00 2001 From: agaro Date: Thu, 23 Nov 2023 19:12:09 -0500 Subject: [PATCH 2/2] updating syntax --- docs/syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/syntax.md b/docs/syntax.md index b9a034a..40457d6 100644 --- a/docs/syntax.md +++ b/docs/syntax.md @@ -19,7 +19,7 @@ Below you will find the step syntax next to the name of the method it utilizes. - ` [I] (create|submit|delete|update|upsert) [the] resource , the operation should (succeed|fail)` kdt.KubeClientSet.ResourceOperationWithResult - ` [I] (create|submit|delete|update|upsert) [the] resource in [the] namespace, the operation should (succeed|fail)` kdt.KubeClientSet.ResourceOperationWithResultInNamespace - ` [the] resource should be (created|deleted)` kdt.KubeClientSet.ResourceShouldBe -- ` [the] resource [should] converge to selector ` kdt.KubeClientSet.ResourceShouldConvergeToSelector +- ` [the] resource [should] converge to selector ` kdt.KubeClientSet.ResourceShouldConvergeToSelector - ` [the] resource condition should be ` kdt.KubeClientSet.ResourceConditionShouldBe - ` [I] update [the] resource with set to ` kdt.KubeClientSet.UpdateResourceWithField - ` [I] verify InstanceGroups [are] in "ready" state` kdt.KubeClientSet.VerifyInstanceGroups