mirror of
https://github.com/zhaofengli/attic.git
synced 2024-12-14 11:57:30 +00:00
integration-tests: Strip tokens return from atticadm
This commit is contained in:
parent
a71582a952
commit
b1fb790b5f
1 changed files with 2 additions and 2 deletions
|
@ -164,8 +164,8 @@ in {
|
|||
server.wait_for_unit('atticd.service')
|
||||
client.wait_until_succeeds("curl -sL http://server:8080", timeout=40)
|
||||
|
||||
root_token = server.succeed("${cmd.atticadm} make-token --sub 'e2e-root' --validity '1 month' --push '*' --pull '*' --delete '*' --create-cache '*' --destroy-cache '*' --configure-cache '*' --configure-cache-retention '*'")
|
||||
readonly_token = server.succeed("${cmd.atticadm} make-token --sub 'e2e-root' --validity '1 month' --pull 'test'")
|
||||
root_token = server.succeed("${cmd.atticadm} make-token --sub 'e2e-root' --validity '1 month' --push '*' --pull '*' --delete '*' --create-cache '*' --destroy-cache '*' --configure-cache '*' --configure-cache-retention '*'").strip()
|
||||
readonly_token = server.succeed("${cmd.atticadm} make-token --sub 'e2e-root' --validity '1 month' --pull 'test'").strip()
|
||||
|
||||
client.succeed(f"attic login --set-default root http://server:8080 {root_token}")
|
||||
client.succeed(f"attic login readonly http://server:8080 {readonly_token}")
|
||||
|
|
Loading…
Reference in a new issue