Skip to content

Commit

Permalink
🧪 Update expected status code to 204 in k6 scripts, for deleting tenants
Browse files Browse the repository at this point in the history
  • Loading branch information
ff137 committed Nov 20, 2024
1 parent a0a9301 commit a335f17
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions scripts/k6/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ export function teardown(data) {
for (const issuer of issuers) {
const deleteIssuerResponse = deleteTenant(bearerToken, issuer.walletId);
check(deleteIssuerResponse, {
"Delete Issuer Tenant Response status code is 200": (r) => {
if (r.status !== 200) {
"Delete Issuer Tenant Response status code is 204": (r) => {
if (r.status !== 204) {
console.error(
`Unexpected response status while deleting issuer tenant ${issuer.walletId}: ${r.status}`
);
Expand All @@ -319,8 +319,8 @@ export function teardown(data) {
const walletId = getWalletIdByWalletName(bearerToken, wallet.wallet_name);
const deleteHolderResponse = deleteTenant(bearerToken, walletId);
check(deleteHolderResponse, {
"Delete Holder Tenant Response status code is 200": (r) => {
if (r.status !== 200) {
"Delete Holder Tenant Response status code is 204": (r) => {
if (r.status !== 204) {
console.error(
`Unexpected response status while deleting holder tenant ${walletId}: ${r.status}`
);
Expand Down
4 changes: 2 additions & 2 deletions scripts/k6/scenarios/delete-holders.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ export default function (data) {
const walletId = getWalletIdByWalletName(bearerToken, wallet.wallet_name);
const deleteHolderResponse = deleteTenant(bearerToken, walletId);
check(deleteHolderResponse, {
"Delete Holder Tenant Response status code is 200": (r) => {
if (r.status !== 200) {
"Delete Holder Tenant Response status code is 204": (r) => {
if (r.status !== 204) {
console.error(
`Unexpected response status while deleting holder tenant ${walletId}: ${r.status}`
);
Expand Down
4 changes: 2 additions & 2 deletions scripts/k6/scenarios/delete-issuers.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export default function (data) {
const walletId = getWalletIdByWalletName(bearerToken, wallet.wallet_name);
const deleteHolderResponse = deleteTenant(bearerToken, walletId);
check(deleteHolderResponse, {
"Delete Issuer Tenant Response status code is 200": (r) => {
if (r.status !== 200) {
"Delete Issuer Tenant Response status code is 204": (r) => {
if (r.status !== 204) {
console.error(
`Unexpected response status while deleting issuer tenant ${walletId}: ${r.status}`
);
Expand Down

0 comments on commit a335f17

Please sign in to comment.