Skip to content

Instantly share code, notes, and snippets.

# This was the basis of the individual examples that were written.
Feature: Monopoly Game
Scenario: Player Movement
Given player "A" on "The Angel Islington"
When the player rolls a 2 and 1
Then they land on "Pentonville Road"
Scenario: Passing through GO!
Given: player "B" on "Park Lane"

SaaS Advice

  1. Logs
    1. Logging Decisions
    2. Logging Stories
    3. Logging Negatives - hard to know if you're not finding it, or if the log entry doesn't exist
    4. Logging Storage
    5. Structured Logging
  2. Include a human readable "msg" which helps reading the flow of events - tells the story
diff --git a/pkg/client/typed_client.go b/pkg/client/typed_client.go
index 92afd9a9..f721e1ed 100644
--- a/pkg/client/typed_client.go
+++ b/pkg/client/typed_client.go
@@ -85,7 +85,7 @@ func (c *typedClient) Delete(ctx context.Context, obj Object, opts ...DeleteOpti
Name(o.GetName()).
Body(deleteOpts.AsDeleteOptions()).
Do(ctx).
- Error()
+ Into(obj)