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

@@ -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));
});
});