Pass encodeBase64 param to transit-key-actions (#19429)
* fix and test coverage * changelog
This commit is contained in:
parent
ac36b31846
commit
be2454ec1b
|
@ -0,0 +1,3 @@
|
||||||
|
```release-note:bug
|
||||||
|
ui: pass encodeBase64 param to HMAC transit-key-actions.
|
||||||
|
```
|
|
@ -1,4 +1,9 @@
|
||||||
<form onsubmit={{action @doSubmit (hash input=@input algorithm=@algorithm key_version=@key_version)}}>
|
<form
|
||||||
|
onsubmit={{action
|
||||||
|
@doSubmit
|
||||||
|
(hash input=@input algorithm=@algorithm key_version=@key_version encodedBase64=@encodedBase64)
|
||||||
|
}}
|
||||||
|
>
|
||||||
<div class="box is-sideless is-fullwidth is-marginless">
|
<div class="box is-sideless is-fullwidth is-marginless">
|
||||||
<NamespaceReminder @mode="perform" @noun="HMAC creation" />
|
<NamespaceReminder @mode="perform" @noun="HMAC creation" />
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|
|
@ -322,6 +322,8 @@ module('Integration | Component | transit key actions', function (hooks) {
|
||||||
`);
|
`);
|
||||||
await fillIn('#algorithm', 'sha2-384');
|
await fillIn('#algorithm', 'sha2-384');
|
||||||
await blur('#algorithm');
|
await blur('#algorithm');
|
||||||
|
await fillIn('[data-test-component="code-mirror-modifier"] textarea', 'plaintext');
|
||||||
|
await click('input[data-test-transit-input="encodedBase64"]');
|
||||||
await click('button[type="submit"]');
|
await click('button[type="submit"]');
|
||||||
assert.deepEqual(
|
assert.deepEqual(
|
||||||
this.storeService.callArgs,
|
this.storeService.callArgs,
|
||||||
|
@ -331,6 +333,7 @@ module('Integration | Component | transit key actions', function (hooks) {
|
||||||
id: 'akey',
|
id: 'akey',
|
||||||
payload: {
|
payload: {
|
||||||
algorithm: 'sha2-384',
|
algorithm: 'sha2-384',
|
||||||
|
input: 'plaintext',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'passes expected args to the adapter'
|
'passes expected args to the adapter'
|
||||||
|
|
Loading…
Reference in New Issue