From 5299707a3e47f81b97177b67745b9ec613bd4fd7 Mon Sep 17 00:00:00 2001 From: Angel Garbarino Date: Mon, 6 Mar 2023 11:28:49 -0700 Subject: [PATCH] Pass encodeBase64 param to transit-key-actions (#19429) * fix and test coverage * changelog --- changelog/19429.txt | 3 +++ ui/app/templates/components/transit-key-action/hmac.hbs | 7 ++++++- .../integration/components/transit-key-actions-test.js | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 changelog/19429.txt diff --git a/changelog/19429.txt b/changelog/19429.txt new file mode 100644 index 000000000000..341fbf5a7347 --- /dev/null +++ b/changelog/19429.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: pass encodeBase64 param to HMAC transit-key-actions. +``` diff --git a/ui/app/templates/components/transit-key-action/hmac.hbs b/ui/app/templates/components/transit-key-action/hmac.hbs index e739201e9071..5c45924c5e64 100644 --- a/ui/app/templates/components/transit-key-action/hmac.hbs +++ b/ui/app/templates/components/transit-key-action/hmac.hbs @@ -1,4 +1,9 @@ -
+
diff --git a/ui/tests/integration/components/transit-key-actions-test.js b/ui/tests/integration/components/transit-key-actions-test.js index 3d6c5ca474b9..6a3926e2dfda 100644 --- a/ui/tests/integration/components/transit-key-actions-test.js +++ b/ui/tests/integration/components/transit-key-actions-test.js @@ -322,6 +322,8 @@ module('Integration | Component | transit key actions', function (hooks) { `); await fillIn('#algorithm', 'sha2-384'); 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"]'); assert.deepEqual( this.storeService.callArgs, @@ -331,6 +333,7 @@ module('Integration | Component | transit key actions', function (hooks) { id: 'akey', payload: { algorithm: 'sha2-384', + input: 'plaintext', }, }, 'passes expected args to the adapter'