Skip to content

feat(rabbitmq): Add wait handlers for v2 package#7949

Open
SerseusWasTaken wants to merge 3 commits into
mainfrom
feat/rabbitmq/wait-handlers-v2
Open

feat(rabbitmq): Add wait handlers for v2 package#7949
SerseusWasTaken wants to merge 3 commits into
mainfrom
feat/rabbitmq/wait-handlers-v2

Conversation

@SerseusWasTaken

@SerseusWasTaken SerseusWasTaken commented Jun 19, 2026

Copy link
Copy Markdown

Relates to STACKITSDK-465

Description

relates to #STACKITSDK-465

Checklist

  • Issue was linked above
  • No generated code was adjusted manually (check comments in file header)
  • Changelogs
    • Changelog in the root directory was adjusted (see here)
    • Changelog(s) of the service(s) were adjusted (see e.g. here)
  • VERSION file(s) of the service(s) were adjusted
  • Code format was applied: make fmt
  • Examples were added / adjusted (see examples/ directory)
  • Unit tests got implemented or updated
  • Unit tests are passing: make test (will be checked by CI)
  • No linter issues: make lint (will be checked by CI)

Comment thread services/rabbitmq/v2api/wait/wait.go Outdated
Comment thread services/rabbitmq/v2api/wait/wait.go Outdated
Comment thread services/rabbitmq/v2api/wait/wait.go Outdated
Comment thread services/rabbitmq/v2api/wait/wait.go Outdated
Comment thread CHANGELOG.md Outdated
Comment thread services/rabbitmq/CHANGELOG.md Outdated
Comment thread examples/rabbitmq/rabbitmq.go
@SerseusWasTaken SerseusWasTaken force-pushed the feat/rabbitmq/wait-handlers-v2 branch from ee12d18 to 01646b4 Compare June 19, 2026 12:38
region := "eu01"
planId := "PLAN_ID"

// Create a new API client, that uses default authentication and configuration

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't comment the correct line, but with the change from v1 to v2, the configuration of the client should be without the region, because they will be configured on endpoint level.
Can you remove config.WithRegion("eu01") of the client configuration?

Comment on lines 30 to 31
fmt.Fprintf(os.Stderr, "Error when calling `GetInstances`: %v\n", err)
} else {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add an os.Exit(1) in the error case?

Comment on lines 38 to 39
fmt.Fprintf(os.Stderr, "Error when calling `GetOfferings`: %v\n", err)
} else {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Comment on lines 51 to 52
fmt.Fprintf(os.Stderr, "Error when calling `CreateInstance`: %v\n", err)
} else {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here. otherwise it will fail in the call of waithandler with a nil pointer exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants