Skip to content

Commit

Permalink
add test for spaces and strings
Browse files Browse the repository at this point in the history
  • Loading branch information
meirish committed May 17, 2019
1 parent 9c99fe7 commit 056ace2
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions ui/tests/unit/lib/console-helpers-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down

0 comments on commit 056ace2

Please sign in to comment.