FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
kfutil/cli_tests.yaml at main · Keyfactor/kfutil · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
Keyfactor
/
kfutil
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
6
Pull requests
16
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
kfutil
/
cli_tests.yaml
Copy path
More file actions
More file actions
Latest commit
History
History
History
159 lines (159 loc) · 5.04 KB
Breadcrumbs
kfutil
/
cli_tests.yaml
Copy path
File metadata and controls
159 lines (159 loc) · 5.04 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
---
-
sub_cli_name
:
login
tests
:
-
name
:
LOGIN - Prompted
description
:
Login to the CLI prompted.
script
:
-
kfutil logout || true
#
ignore error and ensure all config files are removed
-
kfutil login
expected
:
-
exit_code
:
0
contains
:
-
"
Please enter your username:
"
-
"
Please enter your password:
"
-
"
Login successful
"
-
name
:
LOGIN - Prompted user implied domain
description
:
Login to the CLI prompted but don't specify domain in the username.
script
:
-
kfutil logout || true
#
ignore error and ensure all config files are removed
-
kfutil login
expected
:
-
exit_code
:
0
contains
:
-
"
Please enter your username:
"
-
"
Please enter your password:
"
-
"
Login successful
"
-
name
:
LOGIN - Prompted w/ valid config file
description
:
Login to the CLI prompted w/ valid condif file.
script
:
-
test -f ~/.keyfactor/command_config.json
-
kfutil login
expected
:
-
exit_code
:
0
contains
:
-
"
Please enter your username:
"
-
"
Please enter your password:
"
-
"
Login successful
"
-
name
:
LOGIN - Environment Variables
description
:
Login to the CLI with environmental variables
script
:
-
kfutil logout || true
#
ignore error and ensure all config files are removed
-
source .env
-
kfutil login --no-prompt
expected
:
-
exit_code
:
0
contains
:
-
"
Login successful
"
-
name
:
LOGIN - No Prompt w/ valid config file
description
:
Login to the CLI with no prompt w/ valid config file.
script
:
-
test -f ~/.keyfactor/command_config.json
-
kfutil login --no-prompt
expected
:
-
exit_code
:
0
contains
:
-
"
Login successful
"
-
sub_cli_name
:
store-types
tests
:
-
name
:
STORE-TYPES - create interactive
description
:
Creates a store type interactively.
script
:
-
kfutil login --no-prompt
-
kfutil store-types create
expected
:
-
exit_code
:
0
contains
:
-
"
Choose an option:
"
-
"
created with ID:
"
-
name
:
STORE-TYPES - create using name param
description
:
Creates a store type using the name parameter.
variable
:
-
STORE_TYPE_NAME
:
"
AWS
"
script
:
-
kfutil login --no-prompt
-
kfutil store-types create --name "$STORE_TYPE_NAME"
expected
:
-
exit_code
:
0
contains
:
-
name
:
STORE-TYPES - delete interactive
description
:
Deletes a store type interactively.
script
:
-
kfutil login --no-prompt
-
kfutil store-types delete
expected
:
-
exit_code
:
0
contains
:
-
"
Choose an option:
"
-
"
deleted
"
-
name
:
STORE-TYPES - delete using name param
description
:
Creates a store type using the name parameter.
variable
:
-
STORE_TYPE_NAME
:
"
AWS
"
script
:
-
kfutil login --no-prompt
-
kfutil store-types create --name "$STORE_TYPE_NAME"
expected
:
-
exit_code
:
0
contains
:
-
"
Choose an option:
"
-
"
created with ID:
"
-
name
:
STORE-TYPES - get interactive
description
:
Gets a store type interactively.
script
:
-
kfutil login --no-prompt
-
kfutil store-types get
expected
:
-
exit_code
:
0
contains
:
-
"
Choose an option:
"
-
"
Name
"
-
"
ShortName
"
-
"
Capability
"
-
name
:
STORE-TYPES - get using name param
description
:
Gets a store type using the name parameter.
variable
:
-
STORE_TYPE_NAME
:
"
AWS
"
script
:
-
kfutil login --no-prompt
-
kfutil store-types get --name "$STORE_TYPE_NAME" | jq -r .
expected
:
-
exit_code
:
0
contains
:
-
"
Name
"
-
"
ShortName
"
-
"
Capability
"
-
name
:
STORE-TYPES - get using id param
description
:
Gets a store type using the id parameter.
variable
:
-
STORE_TYPE_NAME
:
"
AWS
"
script
:
-
kfutil login --no-prompt
-
kfutil store-types get --name "$STORE_TYPE_NAME" | jq -r .
expected
:
-
exit_code
:
0
contains
:
-
"
Name
"
-
"
ShortName
"
-
"
Capability
"
-
name
:
STORE-TYPES - list
description
:
Lists all store types registered to Keyfactor Command.
script
:
-
kfutil login --no-prompt
-
kfutil store-types list | jq -r .
expected
:
-
exit_code
:
0
contains
:
-
"
Name
"
-
"
ShortName
"
-
"
Capability
"
-
name
:
STORE-TYPES - fetch GH templates
description
:
Fetches the latest templates from the Keyfactor kfutil GitHub repo.
script
:
-
kfutil login --no-prompt
-
kfutil store-types fetch-templates | jq -r .
expected
:
-
exit_code
:
0
contains
:
-
"
Name
"
-
"
ShortName
"
-
"
Capability
"
Back
|
FazBrowse Home
|
New Git URL