Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
d5748ec0
Commit
d5748ec0
authored
7 years ago
by
Chelsea Holland Komlo
Browse files
Options
Download
Email Patches
Plain Diff
fix up test data
parent
82463a32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
command/acl_token_delete_test.go
+3
-3
command/acl_token_delete_test.go
with
3 additions
and
3 deletions
+3
-3
command/acl_token_delete_test.go
+
3
-
3
View file @
d5748ec0
...
@@ -34,9 +34,9 @@ func TestACLTokenDeleteCommand_ViaEnvVariable(t *testing.T) {
...
@@ -34,9 +34,9 @@ func TestACLTokenDeleteCommand_ViaEnvVariable(t *testing.T) {
// Create a valid token
// Create a valid token
mockToken
:=
mock
.
ACLToken
()
mockToken
:=
mock
.
ACLToken
()
t
oken
.
Policies
=
[]
string
{
acl
.
PolicyWrite
}
mockT
oken
.
Policies
=
[]
string
{
acl
.
PolicyWrite
}
t
oken
.
SetHash
()
mockT
oken
.
SetHash
()
assert
.
Nil
(
state
.
UpsertACLTokens
(
1000
,
[]
*
structs
.
ACLToken
{
t
oken
}))
assert
.
Nil
(
state
.
UpsertACLTokens
(
1000
,
[]
*
structs
.
ACLToken
{
mockT
oken
}))
// Attempt to delete a token without providing a valid token with delete
// Attempt to delete a token without providing a valid token with delete
// permissions
// permissions
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help