Skip to content

Commit f19b76e

Browse files
Laure-dijremy42
andcommitted
fix(test): manage error getOffer tests
chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> feat(audit_trail): add account user and organization resources (#4717) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Laure-di <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jonathan R. <[email protected]> chore: bump sdk (#4751) Co-authored-by: Rémy Léone <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> fix golangci linter chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore: bump sdk (#4751) Co-authored-by: Rémy Léone <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore: bump sdk (#4751) Co-authored-by: Rémy Léone <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore: bump sdk (#4751) Co-authored-by: Rémy Léone <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]>
1 parent a38ba4a commit f19b76e

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

internal/namespaces/baremetal/v1/custom_server_create_test.go

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,16 @@ func Test_CreateServer(t *testing.T) {
2525
Commands: baremetal.GetCommands(),
2626
BeforeFunc: func(ctx *core.BeforeFuncCtx) error {
2727
api := baremetalSDK.NewAPI(ctx.Client)
28-
server, _ := api.GetOfferByName(&baremetalSDK.GetOfferByNameRequest{
28+
29+
offer, err := api.GetOfferByName(&baremetalSDK.GetOfferByNameRequest{
2930
OfferName: offerNameNVME,
3031
Zone: scw.Zone(zone),
3132
})
32-
if server.Stock != baremetalSDK.OfferStockAvailable {
33+
if err != nil {
34+
return err
35+
}
36+
37+
if offer.Stock != baremetalSDK.OfferStockAvailable {
3338
return errors.New("offer out of stock")
3439
}
3540

@@ -41,7 +46,7 @@ func Test_CreateServer(t *testing.T) {
4146
core.TestCheckExitCode(0),
4247
),
4348
AfterFunc: core.ExecAfterCmd(
44-
"scw baremetal server delete {{ .CmdResult.ID }} zone=" + zone,
49+
"scw baremetal server delete {{ .CmdResult.ID }} zone=" + zone + " -w",
4550
),
4651
},
4752
))
@@ -50,11 +55,16 @@ func Test_CreateServer(t *testing.T) {
5055
Commands: baremetal.GetCommands(),
5156
BeforeFunc: func(ctx *core.BeforeFuncCtx) error {
5257
api := baremetalSDK.NewAPI(ctx.Client)
53-
server, _ := api.GetOfferByName(&baremetalSDK.GetOfferByNameRequest{
58+
59+
offer, err := api.GetOfferByName(&baremetalSDK.GetOfferByNameRequest{
5460
OfferName: offerNameNVME,
5561
Zone: scw.Zone(zone),
5662
})
57-
if server.Stock != baremetalSDK.OfferStockAvailable {
63+
if err != nil {
64+
return err
65+
}
66+
67+
if offer.Stock != baremetalSDK.OfferStockAvailable {
5868
return errors.New("offer out of stock")
5969
}
6070

@@ -73,19 +83,24 @@ func Test_CreateServer(t *testing.T) {
7383
core.TestCheckExitCode(0),
7484
),
7585
AfterFunc: core.ExecAfterCmd(
76-
"scw baremetal server delete {{ .CmdResult.ID }} zone=" + zone,
86+
"scw baremetal server delete {{ .CmdResult.ID }} zone=" + zone + " -w",
7787
),
7888
}))
7989

8090
t.Run("Tags", core.Test(&core.TestConfig{
8191
Commands: baremetal.GetCommands(),
8292
BeforeFunc: func(ctx *core.BeforeFuncCtx) error {
8393
api := baremetalSDK.NewAPI(ctx.Client)
84-
server, _ := api.GetOfferByName(&baremetalSDK.GetOfferByNameRequest{
94+
95+
offer, err := api.GetOfferByName(&baremetalSDK.GetOfferByNameRequest{
8596
OfferName: offerNameNVME,
8697
Zone: scw.Zone(zone),
8798
})
88-
if server.Stock != baremetalSDK.OfferStockAvailable {
99+
if err != nil {
100+
return err
101+
}
102+
103+
if offer.Stock != baremetalSDK.OfferStockAvailable {
89104
return errors.New("offer out of stock")
90105
}
91106

@@ -101,7 +116,7 @@ func Test_CreateServer(t *testing.T) {
101116
core.TestCheckExitCode(0),
102117
),
103118
AfterFunc: core.ExecAfterCmd(
104-
"scw baremetal server delete {{ .CmdResult.ID }} zone=" + zone,
119+
"scw baremetal server delete {{ .CmdResult.ID }} zone=" + zone + " -w",
105120
),
106121
}))
107122
})

0 commit comments

Comments
 (0)