Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests-bdd/cukes/steps_obligations.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const (
obligationTriggerResponseKey = "obligationTriggerResponse"
multiDecisionResponseKey = "multiDecisionResponse"
valuesKey = "values"
namespaceIDKey = "namespace_id"
)

// Step: I send a request to create an obligation with table
Expand All @@ -43,10 +44,10 @@ func (s *ObligationsStepDefinitions) iSendARequestToCreateAnObligationWith(ctx c

for ci, c := range r.Cells {
switch cellIndexMap[ci] {
case "namespace_id":
case namespaceIDKey:
nsID, ok := scenarioContext.GetObject(strings.TrimSpace(c.Value)).(string)
if !ok {
return ctx, fmt.Errorf("namespace_id %s not found", c.Value)
return ctx, fmt.Errorf("%s %s not found", namespaceIDKey, c.Value)
}
req.NamespaceId = nsID
case "name":
Expand Down
Loading