chore: 🤖 remove rose radiocard and styles (#1521)
chore: 🤖 remove rose radio card and styles
This commit is contained in:
1 parent
ed9e674823
commit
92db4d4947
11 files changed
+46
-544
No files matched your search
@@ -6,7 +6,8 @@ export default class OverrideCredentialAbility extends CredentialAbility {
|
||||
@service features;
|
||||
|
||||
get canRead() {
|
||||
return (this.features.isEnabled('json-credentials') || this.model.type !== 'json')
|
||||
return this.features.isEnabled('json-credentials') ||
|
||||
this.model.type !== 'json'
|
||||
? super.canRead
|
||||
: false;
|
||||
}
|
||||
|
||||
@@ -112,7 +112,9 @@ ${listenerText}
|
||||
return `wget -q https://releases.hashicorp.com/boundary-worker/0.11.2+hcp/boundary-worker_0.11.2+hcp_linux_amd64.zip ;\\
|
||||
sudo apt-get update && sudo apt-get install unzip ;\\
|
||||
unzip *.zip ;\\
|
||||
./boundary-worker server -config="${this.configFilePath || '<path>'}/pki-worker.hcl"`;
|
||||
./boundary-worker server -config="${
|
||||
this.configFilePath || '<path>'
|
||||
}/pki-worker.hcl"`;
|
||||
}
|
||||
return `curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - ;\\
|
||||
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" ;\\
|
||||
|
||||
@@ -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));
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user