Skip to content

Commit

Permalink
feat: [M3-6468] generate mocked keys from utility
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly-akamai committed May 10, 2023
1 parent 53b9662 commit 59ec810
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
mockGetAccessKeys,
} from 'support/intercepts/object-storage';
import { paginateResponse } from 'support/util/paginate';
import { randomLabel, randomNumber } from 'support/util/random';
import { randomLabel, randomNumber, randomString } from 'support/util/random';
import { ui } from 'support/ui';

describe('object storage access keys smoke tests', () => {
Expand All @@ -21,8 +21,9 @@ describe('object storage access keys smoke tests', () => {
*/
it('can create access key - smoke', () => {
const keyLabel = randomLabel();
const accessKey = '1Yx6kbVF35t15k2CmNQJ';
const secretKey = 'bN12cDCBbb90meUgwvb0Tu9KWmNyFqMl2MGK1Ol';
// Mocked key values
const accessKey = randomString(20);
const secretKey = randomString(39);

mockGetAccessKeys(paginateResponse([])).as('getKeys');

Expand Down Expand Up @@ -100,8 +101,9 @@ describe('object storage access keys smoke tests', () => {
it('can revoke access key - smoke', () => {
const keyId = randomNumber(1, 99999);
const keyLabel = randomLabel();
const accessKey = '1Yx6kbVF35t15k2CmNQJ';
const secretKey = 'bN12cDCBbb90meUgwvb0Tu9KWmNyFqMl2MGK1Ol';
// Mocked key values
const accessKey = randomString(20);
const secretKey = randomString(39);

// Mock initial GET request to include an access key.
mockGetAccessKeys(
Expand Down

0 comments on commit 59ec810

Please sign in to comment.