chore: 🤖 remove rose radiocard and styles (#1521)

chore: 🤖 remove rose radio card and styles
This commit is contained in:
Dharini Jeeva authored and GitHub committed 2022-12-15 09:11:01 -08:00
1 parent ed9e674823
commit 92db4d4947
11 files changed
+46 -544

No files matched your search

@@ -151,7 +151,9 @@ module('Acceptance | targets | brokered credential sources', function (hooks) {
});
await visit(urls.brokeredCredentialSources);
assert.dom('.rose-table-row:nth-child(3)').includesText(jsonCredential.name);
assert
.dom('.rose-table-row:nth-child(3)')
.includesText(jsonCredential.name);
assert.dom(`[href="${urls.jsonCredential}"]`).doesNotExist();
});
@@ -324,7 +326,10 @@ module('Acceptance | targets | brokered credential sources', function (hooks) {
await click('tbody tr .rose-dropdown-button-danger');
assert.strictEqual(findAll('tbody tr').length, credentialLibraryCount - 1);
await visit(urls.addBrokeredCredentialSources);
assert.strictEqual(findAll('tbody tr').length, availableCredentialsCount + 1);
assert.strictEqual(
findAll('tbody tr').length,
availableCredentialsCount + 1
);
});
test('can remove a username & password type credential', async function (assert) {
@@ -339,7 +344,10 @@ module('Acceptance | targets | brokered credential sources', function (hooks) {
await click('tbody tr .rose-dropdown-button-danger');
assert.strictEqual(findAll('tbody tr').length, credentialCount - 1);
await visit(urls.addBrokeredCredentialSources);
assert.strictEqual(findAll('tbody tr').length, availableCredentialsCount + 1);
assert.strictEqual(
findAll('tbody tr').length,
availableCredentialsCount + 1
);
});
test('cannot remove credential libraries without proper authorization', async function (assert) {
@@ -9,19 +9,13 @@ module('Unit | Abilities | credential', function (hooks) {
const service = this.owner.lookup('service:can');
const credential = {
authorized_actions: ['read'],
type: 'json'
type: 'json',
};
assert.ok(
service.can('read credential', credential)
);
credential.type = 'username_password'
assert.ok(
service.can('read credential', credential)
);
credential.type = 'ssh_private_key'
assert.ok(
service.can('read credential', credential)
);
assert.ok(service.can('read credential', credential));
credential.type = 'username_password';
assert.ok(service.can('read credential', credential));
credential.type = 'ssh_private_key';
assert.ok(service.can('read credential', credential));
});
test('cannot read without proper authorized actions', function (assert) {
@@ -29,19 +23,13 @@ module('Unit | Abilities | credential', function (hooks) {
const service = this.owner.lookup('service:can');
const credential = {
authorized_actions: [],
type: 'json'
type: 'json',
};
assert.notOk(
service.can('read credential', credential)
);
credential.type = 'username_password'
assert.notOk(
service.can('read credential', credential)
);
credential.type = 'ssh_private_key'
assert.notOk(
service.can('read credential', credential)
);
assert.notOk(service.can('read credential', credential));
credential.type = 'username_password';
assert.notOk(service.can('read credential', credential));
credential.type = 'ssh_private_key';
assert.notOk(service.can('read credential', credential));
});
test('cannot read without proper authorized actions and json-credentials disabled', function (assert) {
@@ -51,19 +39,13 @@ module('Unit | Abilities | credential', function (hooks) {
featuresService.disable('json-credentials');
const credential = {
authorized_actions: [],
type: 'json'
type: 'json',
};
assert.notOk(
service.can('read credential', credential)
);
credential.type = 'username_password'
assert.notOk(
service.can('read credential', credential)
);
credential.type = 'ssh_private_key'
assert.notOk(
service.can('read credential', credential)
);
assert.notOk(service.can('read credential', credential));
credential.type = 'username_password';
assert.notOk(service.can('read credential', credential));
credential.type = 'ssh_private_key';
assert.notOk(service.can('read credential', credential));
});
test('cannot read when json-credentials is disabled', function (assert) {
@@ -73,18 +55,12 @@ module('Unit | Abilities | credential', function (hooks) {
featuresService.disable('json-credentials');
const credential = {
authorized_actions: ['read'],
type: 'json'
type: 'json',
};
assert.notOk(
service.can('read credential', credential)
);
credential.type = 'username_password'
assert.ok(
service.can('read credential', credential)
);
credential.type = 'ssh_private_key'
assert.ok(
service.can('read credential', credential)
);
assert.notOk(service.can('read credential', credential));
credential.type = 'username_password';
assert.ok(service.can('read credential', credential));
credential.type = 'ssh_private_key';
assert.ok(service.can('read credential', credential));
});
});