Skip to content

Commit

Permalink
Fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ashald committed May 21, 2019
1 parent 4a30e63 commit bf3a024
Showing 1 changed file with 32 additions and 7 deletions.
39 changes: 32 additions & 7 deletions consulacl/resource_consulacl_token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,20 @@ resource "consulacl_token" "token" {
token = "my-custom-token"
type = "client"
rule { scope="key" policy="write" prefix="foo/bar/baz" }
rule { scope="operator" policy="read" }
rule { scope="service" policy="read" prefix="" }
rule {
scope="key"
policy="write"
prefix="foo/bar/baz"
}
rule {
scope="operator"
policy="read"
}
rule {
scope="service"
policy="read"
prefix=""
}
}
`

Expand All @@ -28,9 +39,20 @@ resource "consulacl_token" "token" {
token = "my-custom-token"
type = "management"
rule { scope="key" policy="write" prefix="" }
rule { scope="keyring" policy="write" }
rule { scope="service" policy="read" prefix="some/path" }
rule {
scope="key"
policy="write"
prefix=""
}
rule {
scope="keyring"
policy="write"
}
rule {
scope="service"
policy="read"
prefix="some/path"
}
}
`

Expand Down Expand Up @@ -109,7 +131,10 @@ resource "consulacl_token" "imported" {
token = "my-imported-token"
type = "client"
rule { scope="operator" policy="read" }
rule {
scope="operator"
policy="read"
}
}
`

Expand Down

0 comments on commit bf3a024

Please sign in to comment.