Skip to content
Merged
Changes from 1 commit
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 @@
obligationTriggerResponseKey = "obligationTriggerResponse"
multiDecisionResponseKey = "multiDecisionResponse"
valuesKey = "values"
namespaceID = "namespace_id"

Check failure on line 24 in tests-bdd/cukes/steps_obligations.go

View workflow job for this annotation

GitHub Actions / go (tests-bdd)

File is not properly formatted (gofumpt)
Comment thread
alkalescent marked this conversation as resolved.
Resolved
)

// Step: I send a request to create an obligation with table
Expand All @@ -43,10 +44,10 @@

for ci, c := range r.Cells {
switch cellIndexMap[ci] {
case "namespace_id":
case namespaceID:
Comment thread
alkalescent marked this conversation as resolved.
Resolved
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", namespaceID, c.Value)
Comment thread
alkalescent marked this conversation as resolved.
Resolved
}
req.NamespaceId = nsID
case "name":
Expand Down
Loading