Skip to content

Commit 1a5a8be

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 1a5a8be

File tree

5 files changed

+42
-140
lines changed

5 files changed

+42
-140
lines changed

internal/namespaces/baremetal/v1/custom_server_create_test.go

Lines changed: 12 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
package baremetal_test
22

33
import (
4-
"errors"
54
"testing"
65

76
"github.com/scaleway/scaleway-cli/v2/core"
87
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/baremetal/v1"
98
baremetalSDK "github.com/scaleway/scaleway-sdk-go/api/baremetal/v1"
10-
"github.com/scaleway/scaleway-sdk-go/scw"
119
"github.com/stretchr/testify/assert"
1210
)
1311

@@ -22,45 +20,23 @@ func Test_CreateServer(t *testing.T) {
2220
// Simple use cases
2321
t.Run("Simple", func(t *testing.T) {
2422
t.Run("Default", core.Test(&core.TestConfig{
25-
Commands: baremetal.GetCommands(),
26-
BeforeFunc: func(ctx *core.BeforeFuncCtx) error {
27-
api := baremetalSDK.NewAPI(ctx.Client)
28-
server, _ := api.GetOfferByName(&baremetalSDK.GetOfferByNameRequest{
29-
OfferName: offerNameNVME,
30-
Zone: scw.Zone(zone),
31-
})
32-
if server.Stock != baremetalSDK.OfferStockAvailable {
33-
return errors.New("offer out of stock")
34-
}
35-
36-
return nil
37-
},
38-
Cmd: "scw baremetal server create zone=" + zone + " type=" + offerNameNVME + " -w",
23+
Commands: baremetal.GetCommands(),
24+
BeforeFunc: checkStockOffer(),
25+
Cmd: "scw baremetal server create zone=" + zone + " type=" + offerNameNVME + " -w",
3926
Check: core.TestCheckCombine(
4027
core.TestCheckGolden(),
4128
core.TestCheckExitCode(0),
4229
),
4330
AfterFunc: core.ExecAfterCmd(
44-
"scw baremetal server delete {{ .CmdResult.ID }} zone=" + zone,
31+
"scw baremetal server delete {{ .CmdResult.ID }} zone=" + zone + " -w",
4532
),
4633
},
4734
))
4835

4936
t.Run("With name", core.Test(&core.TestConfig{
50-
Commands: baremetal.GetCommands(),
51-
BeforeFunc: func(ctx *core.BeforeFuncCtx) error {
52-
api := baremetalSDK.NewAPI(ctx.Client)
53-
server, _ := api.GetOfferByName(&baremetalSDK.GetOfferByNameRequest{
54-
OfferName: offerNameNVME,
55-
Zone: scw.Zone(zone),
56-
})
57-
if server.Stock != baremetalSDK.OfferStockAvailable {
58-
return errors.New("offer out of stock")
59-
}
60-
61-
return nil
62-
},
63-
Cmd: "scw baremetal server create name=test-create-server-with-name zone=" + zone + " type=" + offerNameNVME + " -w",
37+
Commands: baremetal.GetCommands(),
38+
BeforeFunc: checkStockOffer(),
39+
Cmd: "scw baremetal server create name=test-create-server-with-name zone=" + zone + " type=" + offerNameNVME + " -w",
6440
Check: core.TestCheckCombine(
6541
func(t *testing.T, ctx *core.CheckFuncCtx) {
6642
t.Helper()
@@ -73,25 +49,14 @@ func Test_CreateServer(t *testing.T) {
7349
core.TestCheckExitCode(0),
7450
),
7551
AfterFunc: core.ExecAfterCmd(
76-
"scw baremetal server delete {{ .CmdResult.ID }} zone=" + zone,
52+
"scw baremetal server delete {{ .CmdResult.ID }} zone=" + zone + " -w",
7753
),
7854
}))
7955

8056
t.Run("Tags", core.Test(&core.TestConfig{
81-
Commands: baremetal.GetCommands(),
82-
BeforeFunc: func(ctx *core.BeforeFuncCtx) error {
83-
api := baremetalSDK.NewAPI(ctx.Client)
84-
server, _ := api.GetOfferByName(&baremetalSDK.GetOfferByNameRequest{
85-
OfferName: offerNameNVME,
86-
Zone: scw.Zone(zone),
87-
})
88-
if server.Stock != baremetalSDK.OfferStockAvailable {
89-
return errors.New("offer out of stock")
90-
}
91-
92-
return nil
93-
},
94-
Cmd: "scw baremetal server create tags.0=prod tags.1=blue zone=" + zone + " type=" + offerNameNVME + " -w",
57+
Commands: baremetal.GetCommands(),
58+
BeforeFunc: checkStockOffer(),
59+
Cmd: "scw baremetal server create tags.0=prod tags.1=blue zone=" + zone + " type=" + offerNameNVME + " -w",
9560
Check: core.TestCheckCombine(
9661
func(t *testing.T, ctx *core.CheckFuncCtx) {
9762
t.Helper()
@@ -101,7 +66,7 @@ func Test_CreateServer(t *testing.T) {
10166
core.TestCheckExitCode(0),
10267
),
10368
AfterFunc: core.ExecAfterCmd(
104-
"scw baremetal server delete {{ .CmdResult.ID }} zone=" + zone,
69+
"scw baremetal server delete {{ .CmdResult.ID }} zone=" + zone + " -w",
10570
),
10671
}))
10772
})

internal/namespaces/baremetal/v1/custom_server_fip_test.go

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
package baremetal_test
22

33
import (
4-
"errors"
54
"testing"
65

76
"github.com/scaleway/scaleway-cli/v2/core"
87
"github.com/scaleway/scaleway-cli/v2/internal/interactive"
98
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/baremetal/v1"
109
flexibleip "github.com/scaleway/scaleway-cli/v2/internal/namespaces/flexibleip/v1alpha1"
11-
baremetalSDK "github.com/scaleway/scaleway-sdk-go/api/baremetal/v1"
12-
"github.com/scaleway/scaleway-sdk-go/scw"
1310
)
1411

1512
func Test_CreateFlexibleIPInteractive(t *testing.T) {
@@ -22,18 +19,7 @@ func Test_CreateFlexibleIPInteractive(t *testing.T) {
2219
t.Run("Simple Interactive", core.Test(&core.TestConfig{
2320
Commands: cmds,
2421
BeforeFunc: core.BeforeFuncCombine(
25-
func(ctx *core.BeforeFuncCtx) error {
26-
api := baremetalSDK.NewAPI(ctx.Client)
27-
server, _ := api.GetOfferByName(&baremetalSDK.GetOfferByNameRequest{
28-
OfferName: offerNameNVME,
29-
Zone: scw.Zone(zone),
30-
})
31-
if server.Stock != baremetalSDK.OfferStockAvailable {
32-
return errors.New("offer out of stock")
33-
}
34-
35-
return nil
36-
},
22+
checkStockOffer(),
3723
createServerAndWait(),
3824
),
3925
Cmd: "scw baremetal server add-flexible-ip {{ .Server.ID }} zone=" + zone,
@@ -55,18 +41,7 @@ func Test_CreateFlexibleIP(t *testing.T) {
5541
t.Run("Simple", core.Test(&core.TestConfig{
5642
Commands: cmds,
5743
BeforeFunc: core.BeforeFuncCombine(
58-
func(ctx *core.BeforeFuncCtx) error {
59-
api := baremetalSDK.NewAPI(ctx.Client)
60-
server, _ := api.GetOfferByName(&baremetalSDK.GetOfferByNameRequest{
61-
OfferName: offerNameNVME,
62-
Zone: scw.Zone(zone),
63-
})
64-
if server.Stock != baremetalSDK.OfferStockAvailable {
65-
return errors.New("offer out of stock")
66-
}
67-
68-
return nil
69-
},
44+
checkStockOffer(),
7045
createServerAndWait(),
7146
),
7247
Cmd: "scw baremetal server add-flexible-ip {{ .Server.ID }} ip-type=IPv4 zone=" + zone,

internal/namespaces/baremetal/v1/custom_server_install_test.go

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
package baremetal_test
22

33
import (
4-
"errors"
54
"testing"
65

76
"github.com/scaleway/scaleway-cli/v2/core"
87
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/baremetal/v1"
98
iam "github.com/scaleway/scaleway-cli/v2/internal/namespaces/iam/v1alpha1"
10-
baremetalSDK "github.com/scaleway/scaleway-sdk-go/api/baremetal/v1"
11-
"github.com/scaleway/scaleway-sdk-go/scw"
129
)
1310

1411
func Test_InstallServer(t *testing.T) {
@@ -22,20 +19,7 @@ func Test_InstallServer(t *testing.T) {
2219

2320
t.Run("With ID", core.Test(&core.TestConfig{
2421
BeforeFunc: core.BeforeFuncCombine(
25-
func(ctx *core.BeforeFuncCtx) error {
26-
api := baremetalSDK.NewAPI(ctx.Client)
27-
server, _ := api.GetOfferByName(&baremetalSDK.GetOfferByNameRequest{
28-
OfferName: offerNameNVME,
29-
Zone: scw.Zone(zone),
30-
})
31-
if server.Stock != baremetalSDK.OfferStockAvailable {
32-
err := errors.New("offer out of stock")
33-
34-
return err
35-
}
36-
37-
return nil
38-
},
22+
checkStockOffer(),
3923
addSSH("key", sshKey),
4024
createServerAndWait(),
4125
),
@@ -54,18 +38,7 @@ func Test_InstallServer(t *testing.T) {
5438
t.Run("All SSH keys", core.Test(&core.TestConfig{
5539
Commands: cmds,
5640
BeforeFunc: core.BeforeFuncCombine(
57-
func(ctx *core.BeforeFuncCtx) error {
58-
api := baremetalSDK.NewAPI(ctx.Client)
59-
server, _ := api.GetOfferByName(&baremetalSDK.GetOfferByNameRequest{
60-
OfferName: offerNameNVME,
61-
Zone: scw.Zone(zone),
62-
})
63-
if server.Stock != baremetalSDK.OfferStockAvailable {
64-
return errors.New("offer out of stock")
65-
}
66-
67-
return nil
68-
},
41+
checkStockOffer(),
6942
addSSH("key", sshKey),
7043
createServerAndWait(),
7144
),

internal/namespaces/baremetal/v1/custom_server_test.go

Lines changed: 3 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package baremetal_test
22

33
import (
4-
"errors"
54
"testing"
65

76
"github.com/scaleway/scaleway-cli/v2/core"
@@ -13,18 +12,7 @@ import (
1312
func Test_StartServerErrors(t *testing.T) {
1413
t.Run("Error: cannot be started while not delivered", core.Test(&core.TestConfig{
1514
BeforeFunc: core.BeforeFuncCombine(
16-
func(ctx *core.BeforeFuncCtx) error {
17-
api := baremetalSDK.NewAPI(ctx.Client)
18-
server, _ := api.GetOfferByName(&baremetalSDK.GetOfferByNameRequest{
19-
OfferName: offerNameSATA,
20-
Zone: scw.Zone(zone),
21-
})
22-
if server.Stock != baremetalSDK.OfferStockAvailable {
23-
return errors.New("offer out of stock")
24-
}
25-
26-
return nil
27-
},
15+
checkStockOffer(),
2816
createServer("Server", offerNameSATA),
2917
),
3018
Commands: baremetal.GetCommands(),
@@ -54,18 +42,7 @@ func Test_StartServerErrors(t *testing.T) {
5442
func Test_StopServerErrors(t *testing.T) {
5543
t.Run("Error: cannot be stopped while not delivered", core.Test(&core.TestConfig{
5644
BeforeFunc: core.BeforeFuncCombine(
57-
func(ctx *core.BeforeFuncCtx) error {
58-
api := baremetalSDK.NewAPI(ctx.Client)
59-
server, _ := api.GetOfferByName(&baremetalSDK.GetOfferByNameRequest{
60-
OfferName: offerNameSATA,
61-
Zone: scw.Zone(zone),
62-
})
63-
if server.Stock != baremetalSDK.OfferStockAvailable {
64-
return errors.New("offer out of stock")
65-
}
66-
67-
return nil
68-
},
45+
checkStockOffer(),
6946
createServer("Server", offerNameSATA),
7047
),
7148
Commands: baremetal.GetCommands(),
@@ -95,18 +72,7 @@ func Test_StopServerErrors(t *testing.T) {
9572
func Test_RebootServerErrors(t *testing.T) {
9673
t.Run("Error: cannot be rebooted while not delivered", core.Test(&core.TestConfig{
9774
BeforeFunc: core.BeforeFuncCombine(
98-
func(ctx *core.BeforeFuncCtx) error {
99-
api := baremetalSDK.NewAPI(ctx.Client)
100-
server, _ := api.GetOfferByName(&baremetalSDK.GetOfferByNameRequest{
101-
OfferName: offerNameSATA,
102-
Zone: scw.Zone(zone),
103-
})
104-
if server.Stock != baremetalSDK.OfferStockAvailable {
105-
return errors.New("offer out of stock")
106-
}
107-
108-
return nil
109-
},
75+
checkStockOffer(),
11076
createServer("Server", offerNameSATA),
11177
),
11278
Commands: baremetal.GetCommands(),

internal/namespaces/baremetal/v1/helpers_test.go

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
package baremetal_test
22

33
import (
4+
"errors"
45
"fmt"
56
"os"
67

78
"github.com/scaleway/scaleway-cli/v2/core"
9+
"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1"
10+
"github.com/scaleway/scaleway-sdk-go/scw"
811
)
912

1013
func getenv(key, fallback string) string {
@@ -54,3 +57,23 @@ func addSSH(metaKey string, key string) core.BeforeFunc {
5457
func deleteSSH(metaKey string) core.AfterFunc {
5558
return core.ExecAfterCmd(fmt.Sprintf("scw iam ssh-key delete {{ .%s.ID }}", metaKey))
5659
}
60+
61+
func checkStockOffer() func(ctx *core.BeforeFuncCtx) error {
62+
return func(ctx *core.BeforeFuncCtx) error {
63+
api := baremetal.NewAPI(ctx.Client)
64+
65+
offer, err := api.GetOfferByName(&baremetal.GetOfferByNameRequest{
66+
OfferName: offerNameNVME,
67+
Zone: scw.Zone(zone),
68+
})
69+
if err != nil {
70+
return err
71+
}
72+
73+
if offer.Stock != baremetal.OfferStockAvailable {
74+
return errors.New("offer out of stock")
75+
}
76+
77+
return nil
78+
}
79+
}

0 commit comments

Comments
 (0)