diff --git a/ui/tests/unit/lib/console-helpers-test.js b/ui/tests/unit/lib/console-helpers-test.js index 53c2e8b595f9..3ba448fd2585 100644 --- a/ui/tests/unit/lib/console-helpers-test.js +++ b/ui/tests/unit/lib/console-helpers-test.js @@ -26,6 +26,33 @@ module('Unit | Lib | console helpers', function() { ], ], }, + { + name: 'write with space in a value', + command: `vault write \ + auth/ldap/config \ + url=ldap://ldap.example.com:3268 \ + binddn="CN=ServiceViewDev,OU=Service Accounts,DC=example,DC=com" \ + bindpass="xxxxxxxxxxxxxxxxxxxxxxxxxx" \ + userdn="DC=example,DC=com" \ + groupdn="DC=example,DC=com" \ + insecure_tls=true \ + starttls=false + `, + expected: [ + 'write', + [], + 'auth/ldap/config', + [ + 'url=ldap://ldap.example.com:3268', + 'binddn=CN=ServiceViewDev,OU=Service Accounts,DC=example,DC=com', + 'bindpass=xxxxxxxxxxxxxxxxxxxxxxxxxx', + 'userdn=DC=example,DC=com', + 'groupdn=DC=example,DC=com', + 'insecure_tls=true', + 'starttls=false', + ], + ], + }, { name: 'read with field', command: `vault read -field=access_key aws/creds/my-role`,