refactor: 💡sb dynamic credential type secret fields and how we serialize (#1907)

* refactor: 💡 secret fields and how we serialize
This commit is contained in:
Dharini Jeeva authored and GitHub committed 2023-09-20 14:55:05 -07:00
1 parent 1b84a70ca0
commit d0a505558b
10 files changed
+85 -36

No files matched your search

@@ -51,10 +51,12 @@ module('Unit | Model | storage bucket', function (hooks) {
const modelA = store.createRecord('storage-bucket', {
role_arn: 'test-role-arn',
access_key_id: null,
credentialType: TYPE_CREDENTIAL_DYNAMIC,
});
const modelB = store.createRecord('storage-bucket', {
role_arn: null,
access_key_id: 'test-access-key-id',
credentialType: TYPE_CREDENTIAL_STATIC,
});
assert.strictEqual(modelA.credentialType, TYPE_CREDENTIAL_DYNAMIC);
assert.strictEqual(modelB.credentialType, TYPE_CREDENTIAL_STATIC);