2023-06-19 16:23:53 +00:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
2024-05-31 11:29:24 -07:00
|
|
|
* SPDX-License-Identifier: BUSL-1.1
|
2023-06-19 16:23:53 +00:00
|
|
|
*/
|
|
|
|
|
|
2023-03-21 10:42:38 -07:00
|
|
|
import { module, test } from 'qunit';
|
2024-01-29 12:00:07 -08:00
|
|
|
import { visit, currentURL, click, fillIn, select } from '@ember/test-helpers';
|
2023-03-21 10:42:38 -07:00
|
|
|
import { setupApplicationTest } from 'admin/tests/helpers';
|
|
|
|
|
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
|
|
|
|
|
import { Response } from 'miragejs';
|
|
|
|
|
import { authenticateSession } from 'ember-simple-auth/test-support';
|
2024-05-31 11:02:55 -07:00
|
|
|
import * as selectors from './selectors';
|
2024-08-15 09:24:21 -05:00
|
|
|
import * as commonSelectors from 'admin/tests/helpers/selectors';
|
2023-03-21 10:42:38 -07:00
|
|
|
|
|
|
|
|
module('Acceptance | storage-buckets | create', function (hooks) {
|
|
|
|
|
setupApplicationTest(hooks);
|
|
|
|
|
setupMirage(hooks);
|
|
|
|
|
|
|
|
|
|
let features;
|
|
|
|
|
let getStorageBucketCount;
|
|
|
|
|
|
|
|
|
|
const instances = {
|
|
|
|
|
scopes: {
|
|
|
|
|
global: null,
|
|
|
|
|
org: null,
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const urls = {
|
|
|
|
|
globalScope: null,
|
|
|
|
|
storageBuckets: null,
|
|
|
|
|
newStorageBucket: null,
|
|
|
|
|
};
|
|
|
|
|
|
2024-12-03 10:27:27 -08:00
|
|
|
hooks.beforeEach(async function () {
|
2023-03-21 10:42:38 -07:00
|
|
|
instances.scopes.global = this.server.create('scope', { id: 'global' });
|
|
|
|
|
instances.scopes.org = this.server.create('scope', {
|
|
|
|
|
type: 'org',
|
|
|
|
|
scope: { id: 'global', type: 'global' },
|
|
|
|
|
});
|
|
|
|
|
urls.globalScope = `/scopes/global`;
|
|
|
|
|
urls.storageBuckets = `${urls.globalScope}/storage-buckets`;
|
|
|
|
|
urls.newStorageBucket = `${urls.storageBuckets}/new`;
|
|
|
|
|
getStorageBucketCount = () =>
|
|
|
|
|
this.server.schema.storageBuckets.all().models.length;
|
|
|
|
|
|
|
|
|
|
features = this.owner.lookup('service:features');
|
2023-05-22 08:49:30 -07:00
|
|
|
features.enable('ssh-session-recording');
|
2024-12-03 10:27:27 -08:00
|
|
|
await authenticateSession({ username: 'admin' });
|
2023-03-21 10:42:38 -07:00
|
|
|
});
|
|
|
|
|
|
2024-04-16 14:17:23 -07:00
|
|
|
test('users can create a new storage bucket aws plugin type with global scope', async function (assert) {
|
2023-03-21 10:42:38 -07:00
|
|
|
const storageBucketCount = getStorageBucketCount();
|
|
|
|
|
await visit(urls.storageBuckets);
|
|
|
|
|
|
|
|
|
|
await click(`[href="${urls.newStorageBucket}"]`);
|
2024-08-15 09:24:21 -05:00
|
|
|
await fillIn(commonSelectors.FIELD_NAME, commonSelectors.FIELD_NAME_VALUE);
|
2024-05-31 11:02:55 -07:00
|
|
|
await select(selectors.FIELD_SCOPE, 'global');
|
2023-05-25 14:43:20 -07:00
|
|
|
|
2024-12-11 14:00:27 -06:00
|
|
|
await fillIn(
|
|
|
|
|
selectors.EDITOR_WORKER_FILTER,
|
|
|
|
|
selectors.EDITOR_WORKER_FILTER_VALUE,
|
|
|
|
|
);
|
|
|
|
|
|
2024-05-31 11:02:55 -07:00
|
|
|
assert.dom(selectors.FIELD_BUCKET_NAME).isNotDisabled();
|
|
|
|
|
assert.dom(selectors.FIELD_BUCKET_PREFIX).isNotDisabled();
|
|
|
|
|
assert.dom(selectors.FIELD_BUCKET_NAME).doesNotHaveAttribute('readOnly');
|
|
|
|
|
assert.dom(selectors.FIELD_BUCKET_PREFIX).doesNotHaveAttribute('readOnly');
|
2023-05-25 14:43:20 -07:00
|
|
|
|
2024-08-15 09:24:21 -05:00
|
|
|
await click(commonSelectors.SAVE_BTN);
|
2023-03-21 10:42:38 -07:00
|
|
|
const storageBucket = this.server.schema.storageBuckets.findBy({
|
2024-08-15 09:24:21 -05:00
|
|
|
name: commonSelectors.FIELD_NAME_VALUE,
|
2023-03-21 10:42:38 -07:00
|
|
|
});
|
|
|
|
|
|
2024-08-15 09:24:21 -05:00
|
|
|
assert.strictEqual(storageBucket.name, commonSelectors.FIELD_NAME_VALUE);
|
2023-03-21 10:42:38 -07:00
|
|
|
assert.strictEqual(storageBucket.scopeId, 'global');
|
2024-12-11 14:00:27 -06:00
|
|
|
assert
|
|
|
|
|
.dom(selectors.READONLY_WORKER_FILTER)
|
|
|
|
|
.hasText(selectors.EDITOR_WORKER_FILTER_VALUE);
|
2023-03-21 10:42:38 -07:00
|
|
|
assert.strictEqual(getStorageBucketCount(), storageBucketCount + 1);
|
|
|
|
|
});
|
|
|
|
|
|
2024-04-16 14:17:23 -07:00
|
|
|
test('users can create a new storage bucket aws plugin type with org scope', async function (assert) {
|
2023-03-21 10:42:38 -07:00
|
|
|
const storageBucketCount = getStorageBucketCount();
|
|
|
|
|
await visit(urls.storageBuckets);
|
|
|
|
|
|
|
|
|
|
await click(`[href="${urls.newStorageBucket}"]`);
|
2024-08-15 09:24:21 -05:00
|
|
|
await fillIn(commonSelectors.FIELD_NAME, commonSelectors.FIELD_NAME_VALUE);
|
2024-05-31 11:02:55 -07:00
|
|
|
await select(selectors.FIELD_SCOPE, instances.scopes.org.id);
|
2023-05-25 14:43:20 -07:00
|
|
|
|
2024-12-11 14:00:27 -06:00
|
|
|
await fillIn(
|
|
|
|
|
selectors.EDITOR_WORKER_FILTER,
|
|
|
|
|
selectors.EDITOR_WORKER_FILTER_VALUE,
|
|
|
|
|
);
|
|
|
|
|
|
2024-05-31 11:02:55 -07:00
|
|
|
assert.dom(selectors.FIELD_BUCKET_NAME).isNotDisabled();
|
|
|
|
|
assert.dom(selectors.FIELD_BUCKET_PREFIX).isNotDisabled();
|
|
|
|
|
assert.dom(selectors.FIELD_BUCKET_NAME).doesNotHaveAttribute('readOnly');
|
|
|
|
|
assert.dom(selectors.FIELD_BUCKET_PREFIX).doesNotHaveAttribute('readOnly');
|
2023-05-25 14:43:20 -07:00
|
|
|
|
2024-08-15 09:24:21 -05:00
|
|
|
await click(commonSelectors.SAVE_BTN);
|
2023-03-21 10:42:38 -07:00
|
|
|
const storageBucket = this.server.schema.storageBuckets.findBy({
|
2024-08-15 09:24:21 -05:00
|
|
|
name: commonSelectors.FIELD_NAME_VALUE,
|
2023-03-21 10:42:38 -07:00
|
|
|
});
|
|
|
|
|
|
2024-11-19 15:18:18 -08:00
|
|
|
assert
|
|
|
|
|
.dom(commonSelectors.ALERT_TOAST_BODY)
|
|
|
|
|
.hasText(selectors.TOAST_SUCCESSFUL_VALUE);
|
2024-08-15 09:24:21 -05:00
|
|
|
assert.strictEqual(storageBucket.name, commonSelectors.FIELD_NAME_VALUE);
|
2024-01-29 12:00:07 -08:00
|
|
|
assert.strictEqual(storageBucket.scopeId, instances.scopes.org.id);
|
2023-03-21 10:42:38 -07:00
|
|
|
assert.strictEqual(getStorageBucketCount(), storageBucketCount + 1);
|
2024-05-14 13:39:23 -07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('users can create a new storage bucket minio plugin type with org scope', async function (assert) {
|
|
|
|
|
const storageBucketCount = getStorageBucketCount();
|
|
|
|
|
|
|
|
|
|
// Navigate to new storage bucket
|
|
|
|
|
await visit(urls.storageBuckets);
|
|
|
|
|
await click(`[href="${urls.newStorageBucket}"]`);
|
|
|
|
|
|
|
|
|
|
// Fill the form
|
2024-08-15 09:24:21 -05:00
|
|
|
await fillIn(commonSelectors.FIELD_NAME, commonSelectors.FIELD_NAME_VALUE);
|
2024-05-31 11:02:55 -07:00
|
|
|
await click(selectors.FIELD_PLUGIN_TYPE_MINIO);
|
|
|
|
|
await select(selectors.FIELD_SCOPE, instances.scopes.org.id);
|
|
|
|
|
await fillIn(
|
|
|
|
|
selectors.FIELD_ENDPOINT_URL,
|
|
|
|
|
selectors.FIELD_ENDPOINT_URL_VALUE,
|
|
|
|
|
);
|
|
|
|
|
await fillIn(
|
|
|
|
|
selectors.FIELD_BUCKET_NAME,
|
|
|
|
|
selectors.FIELD_BUCKET_NAME_VALUE,
|
|
|
|
|
);
|
|
|
|
|
await fillIn(selectors.FIELD_ACCESS_KEY, selectors.FIELD_ACCESS_KEY_VALUE);
|
|
|
|
|
await fillIn(selectors.FIELD_SECRET_KEY, selectors.FIELD_SECRET_KEY_VALUE);
|
2024-12-11 14:00:27 -06:00
|
|
|
await fillIn(
|
|
|
|
|
selectors.EDITOR_WORKER_FILTER,
|
|
|
|
|
selectors.EDITOR_WORKER_FILTER_VALUE,
|
|
|
|
|
);
|
|
|
|
|
|
2024-08-15 09:24:21 -05:00
|
|
|
await click(commonSelectors.SAVE_BTN);
|
2024-05-14 13:39:23 -07:00
|
|
|
|
|
|
|
|
// Assertions
|
|
|
|
|
const storageBucket = this.server.schema.storageBuckets.findBy({
|
2024-08-15 09:24:21 -05:00
|
|
|
name: commonSelectors.FIELD_NAME_VALUE,
|
2024-05-14 13:39:23 -07:00
|
|
|
});
|
2024-11-19 15:18:18 -08:00
|
|
|
assert
|
|
|
|
|
.dom(commonSelectors.ALERT_TOAST_BODY)
|
|
|
|
|
.hasText(selectors.TOAST_SUCCESSFUL_VALUE);
|
2024-08-15 09:24:21 -05:00
|
|
|
assert.strictEqual(storageBucket.name, commonSelectors.FIELD_NAME_VALUE);
|
2024-05-14 13:39:23 -07:00
|
|
|
assert.strictEqual(
|
|
|
|
|
storageBucket.attributes.endpoint_url,
|
2024-05-31 11:02:55 -07:00
|
|
|
selectors.FIELD_ENDPOINT_URL_VALUE,
|
2024-05-14 13:39:23 -07:00
|
|
|
);
|
|
|
|
|
assert.strictEqual(storageBucket.attributes.role_arn, null);
|
|
|
|
|
assert.strictEqual(storageBucket.plugin.name, 'minio');
|
|
|
|
|
assert.strictEqual(storageBucket.scopeId, instances.scopes.org.id);
|
|
|
|
|
assert.strictEqual(getStorageBucketCount(), storageBucketCount + 1);
|
2023-03-21 10:42:38 -07:00
|
|
|
});
|
|
|
|
|
|
2024-04-16 14:17:23 -07:00
|
|
|
test('users can create a new storage bucket aws plugin type with dynamic credentials', async function (assert) {
|
2023-09-18 13:26:38 -07:00
|
|
|
const storageBucketCount = getStorageBucketCount();
|
|
|
|
|
await visit(urls.storageBuckets);
|
|
|
|
|
|
|
|
|
|
await click(`[href="${urls.newStorageBucket}"]`);
|
2024-08-15 09:24:21 -05:00
|
|
|
await fillIn(commonSelectors.FIELD_NAME, commonSelectors.FIELD_NAME_VALUE);
|
2024-04-16 14:17:23 -07:00
|
|
|
|
|
|
|
|
// There are 2 credential types
|
2024-12-10 14:12:43 -06:00
|
|
|
assert.dom(selectors.GROUP_CREDENTIAL_TYPE).exists({ count: 2 });
|
2023-09-18 13:26:38 -07:00
|
|
|
|
2024-05-31 11:02:55 -07:00
|
|
|
await click(selectors.FIELD_DYNAMIC_CREDENTIAL);
|
|
|
|
|
await fillIn(selectors.FIELD_ROLE_ARN, selectors.FIELD_ROLE_ARN_VALUE);
|
2024-12-11 14:00:27 -06:00
|
|
|
await fillIn(
|
|
|
|
|
selectors.EDITOR_WORKER_FILTER,
|
|
|
|
|
selectors.EDITOR_WORKER_FILTER_VALUE,
|
|
|
|
|
);
|
2023-09-19 15:58:52 -07:00
|
|
|
|
2024-08-15 09:24:21 -05:00
|
|
|
await click(commonSelectors.SAVE_BTN);
|
2023-09-18 13:26:38 -07:00
|
|
|
const storageBucket = this.server.schema.storageBuckets.findBy({
|
2024-08-15 09:24:21 -05:00
|
|
|
name: commonSelectors.FIELD_NAME_VALUE,
|
2023-09-18 13:26:38 -07:00
|
|
|
});
|
2023-09-19 15:58:52 -07:00
|
|
|
|
2024-08-15 09:24:21 -05:00
|
|
|
assert.strictEqual(storageBucket.name, commonSelectors.FIELD_NAME_VALUE);
|
2023-09-19 15:58:52 -07:00
|
|
|
//for dynamic credentials, there should be no secret field
|
|
|
|
|
assert.notOk(storageBucket.secret);
|
2023-09-18 13:26:38 -07:00
|
|
|
assert.strictEqual(getStorageBucketCount(), storageBucketCount + 1);
|
|
|
|
|
});
|
|
|
|
|
|
2024-04-16 14:17:23 -07:00
|
|
|
test('users can create a new storage bucket aws plugin type with static credentials', async function (assert) {
|
2023-09-18 13:26:38 -07:00
|
|
|
const storageBucketCount = getStorageBucketCount();
|
|
|
|
|
await visit(urls.storageBuckets);
|
|
|
|
|
|
|
|
|
|
await click(`[href="${urls.newStorageBucket}"]`);
|
2024-08-15 09:24:21 -05:00
|
|
|
await fillIn(commonSelectors.FIELD_NAME, commonSelectors.FIELD_NAME_VALUE);
|
2024-12-10 14:12:43 -06:00
|
|
|
assert.dom(selectors.GROUP_CREDENTIAL_TYPE).exists({ count: 2 });
|
2023-09-18 13:26:38 -07:00
|
|
|
|
2024-05-31 11:02:55 -07:00
|
|
|
await click(selectors.FIELD_STATIC_CREDENTIAL);
|
|
|
|
|
await fillIn(selectors.FIELD_ACCESS_KEY, selectors.FIELD_ACCESS_KEY_VALUE);
|
|
|
|
|
await fillIn(selectors.FIELD_SECRET_KEY, selectors.FIELD_SECRET_KEY_VALUE);
|
2024-12-11 14:00:27 -06:00
|
|
|
await fillIn(
|
|
|
|
|
selectors.EDITOR_WORKER_FILTER,
|
|
|
|
|
selectors.EDITOR_WORKER_FILTER_VALUE,
|
|
|
|
|
);
|
2023-09-19 15:58:52 -07:00
|
|
|
|
2024-08-15 09:24:21 -05:00
|
|
|
await click(commonSelectors.SAVE_BTN);
|
2023-09-18 13:26:38 -07:00
|
|
|
|
|
|
|
|
const storageBucket = this.server.schema.storageBuckets.findBy({
|
2024-08-15 09:24:21 -05:00
|
|
|
name: commonSelectors.FIELD_NAME_VALUE,
|
2023-09-18 13:26:38 -07:00
|
|
|
});
|
2023-09-19 15:58:52 -07:00
|
|
|
|
2024-08-15 09:24:21 -05:00
|
|
|
assert.strictEqual(storageBucket.name, commonSelectors.FIELD_NAME_VALUE);
|
2023-09-19 15:58:52 -07:00
|
|
|
//for static credentials, role_arn should be null
|
|
|
|
|
assert.strictEqual(storageBucket.attributes.role_arn, null);
|
2023-09-18 13:26:38 -07:00
|
|
|
assert.strictEqual(getStorageBucketCount(), storageBucketCount + 1);
|
|
|
|
|
});
|
|
|
|
|
|
2024-04-16 14:17:23 -07:00
|
|
|
test('users can create a new storage bucket minio plugin type', async function (assert) {
|
|
|
|
|
const storageBucketCount = getStorageBucketCount();
|
|
|
|
|
|
|
|
|
|
// Navigate to new storage bucket
|
|
|
|
|
await visit(urls.storageBuckets);
|
|
|
|
|
await click(`[href="${urls.newStorageBucket}"]`);
|
|
|
|
|
|
|
|
|
|
// Fill the form
|
2024-08-15 09:24:21 -05:00
|
|
|
await fillIn(commonSelectors.FIELD_NAME, commonSelectors.FIELD_NAME_VALUE);
|
2024-05-31 11:02:55 -07:00
|
|
|
await click(selectors.FIELD_PLUGIN_TYPE_MINIO);
|
|
|
|
|
await fillIn(
|
|
|
|
|
selectors.FIELD_ENDPOINT_URL,
|
|
|
|
|
selectors.FIELD_ENDPOINT_URL_VALUE,
|
|
|
|
|
);
|
|
|
|
|
await fillIn(
|
|
|
|
|
selectors.FIELD_BUCKET_NAME,
|
|
|
|
|
selectors.FIELD_BUCKET_NAME_VALUE,
|
|
|
|
|
);
|
|
|
|
|
await fillIn(selectors.FIELD_ACCESS_KEY, selectors.FIELD_ACCESS_KEY_VALUE);
|
|
|
|
|
await fillIn(selectors.FIELD_SECRET_KEY, selectors.FIELD_SECRET_KEY_VALUE);
|
2024-12-11 14:00:27 -06:00
|
|
|
await fillIn(
|
|
|
|
|
selectors.EDITOR_WORKER_FILTER,
|
|
|
|
|
selectors.EDITOR_WORKER_FILTER_VALUE,
|
|
|
|
|
);
|
2024-04-16 14:17:23 -07:00
|
|
|
|
2024-08-15 09:24:21 -05:00
|
|
|
await click(commonSelectors.SAVE_BTN);
|
2024-04-16 14:17:23 -07:00
|
|
|
|
|
|
|
|
// Retrieve recently created SB
|
|
|
|
|
const storageBucket = await this.server.schema.storageBuckets.findBy({
|
2024-08-15 09:24:21 -05:00
|
|
|
name: commonSelectors.FIELD_NAME_VALUE,
|
2024-04-16 14:17:23 -07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Assertions
|
2024-08-15 09:24:21 -05:00
|
|
|
assert.strictEqual(storageBucket.name, commonSelectors.FIELD_NAME_VALUE);
|
2024-04-16 14:17:23 -07:00
|
|
|
assert.strictEqual(
|
|
|
|
|
storageBucket.attributes.endpoint_url,
|
2024-05-31 11:02:55 -07:00
|
|
|
selectors.FIELD_ENDPOINT_URL_VALUE,
|
2024-04-16 14:17:23 -07:00
|
|
|
);
|
|
|
|
|
assert.strictEqual(storageBucket.attributes.role_arn, null);
|
|
|
|
|
assert.strictEqual(storageBucket.plugin.name, 'minio');
|
|
|
|
|
assert.strictEqual(storageBucket.type, 'plugin');
|
|
|
|
|
assert.strictEqual(getStorageBucketCount(), storageBucketCount + 1);
|
|
|
|
|
});
|
|
|
|
|
|
2023-03-21 10:42:38 -07:00
|
|
|
test('user can cancel new storage bucket creation', async function (assert) {
|
|
|
|
|
const storageBucketCount = getStorageBucketCount();
|
|
|
|
|
await visit(urls.storageBuckets);
|
|
|
|
|
|
|
|
|
|
await click(`[href="${urls.newStorageBucket}"]`);
|
2024-08-15 09:24:21 -05:00
|
|
|
await fillIn(commonSelectors.FIELD_NAME, commonSelectors.FIELD_NAME_VALUE);
|
2024-05-31 11:02:55 -07:00
|
|
|
|
2024-08-15 09:24:21 -05:00
|
|
|
await click(commonSelectors.CANCEL_BTN);
|
2023-03-21 10:42:38 -07:00
|
|
|
|
|
|
|
|
assert.strictEqual(currentURL(), urls.storageBuckets);
|
|
|
|
|
assert.strictEqual(getStorageBucketCount(), storageBucketCount);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('saving a new storage bucket with invalid fields displays error messages', async function (assert) {
|
|
|
|
|
this.server.post('/storage-buckets', () => {
|
|
|
|
|
return new Response(
|
|
|
|
|
400,
|
|
|
|
|
{},
|
|
|
|
|
{
|
|
|
|
|
status: 400,
|
|
|
|
|
code: 'invalid_argument',
|
|
|
|
|
message: 'The request was invalid.',
|
|
|
|
|
details: {
|
|
|
|
|
request_fields: [
|
|
|
|
|
{
|
2024-05-31 11:02:55 -07:00
|
|
|
name: 'bucket_name',
|
|
|
|
|
description: 'This is a required field.',
|
2023-03-21 10:42:38 -07:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2023-11-22 14:07:41 -05:00
|
|
|
},
|
2023-03-21 10:42:38 -07:00
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
await visit(urls.storageBuckets);
|
|
|
|
|
|
|
|
|
|
await click(`[href="${urls.newStorageBucket}"]`);
|
2024-12-11 14:00:27 -06:00
|
|
|
await fillIn(
|
|
|
|
|
selectors.EDITOR_WORKER_FILTER,
|
|
|
|
|
selectors.EDITOR_WORKER_FILTER_VALUE,
|
|
|
|
|
);
|
2024-08-15 09:24:21 -05:00
|
|
|
await click(commonSelectors.SAVE_BTN);
|
2023-03-21 10:42:38 -07:00
|
|
|
|
2024-11-19 15:18:18 -08:00
|
|
|
assert
|
|
|
|
|
.dom(commonSelectors.ALERT_TOAST_BODY)
|
|
|
|
|
.hasText('The request was invalid.');
|
2024-05-31 11:02:55 -07:00
|
|
|
assert
|
|
|
|
|
.dom(selectors.FIELD_BUCKET_NAME_ERROR)
|
|
|
|
|
.hasText('This is a required field.');
|
2023-03-21 10:42:38 -07:00
|
|
|
});
|
2023-11-02 16:08:25 -07:00
|
|
|
|
|
|
|
|
test('users cannot directly navigate to new storage bucket route without proper authorization', async function (assert) {
|
|
|
|
|
instances.scopes.global.authorized_collection_actions['storage-buckets'] =
|
|
|
|
|
instances.scopes.global.authorized_collection_actions[
|
|
|
|
|
'storage-buckets'
|
|
|
|
|
].filter((item) => item !== 'create');
|
|
|
|
|
|
|
|
|
|
await visit(urls.newStorageBucket);
|
|
|
|
|
|
|
|
|
|
assert.false(
|
|
|
|
|
instances.scopes.global.authorized_collection_actions[
|
|
|
|
|
'storage-buckets'
|
2023-11-22 14:07:41 -05:00
|
|
|
].includes('create'),
|
2023-11-02 16:08:25 -07:00
|
|
|
);
|
|
|
|
|
assert.strictEqual(currentURL(), urls.storageBuckets);
|
|
|
|
|
});
|
2023-03-21 10:42:38 -07:00
|
|
|
});
|