Skip to content

Commit

Permalink
Remove ~ secrets test (thought-machine#1126)
Browse files Browse the repository at this point in the history
Co-authored-by: jpoole <[email protected]>
  • Loading branch information
Tatskaari and Tatskaari authored Aug 12, 2020
1 parent 1d68bb0 commit 6a2b452
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ env:

task:
install_script: pkg install -y bash protobuf go git python3 && python3 -m ensurepip
bashrc_script: touch ~/.bashrc
build_script: PLZ_ARGS="-o cache.httpurl:http://$CIRRUS_HTTP_CACHE_HOST" ./bootstrap.sh --exclude pip --exclude py2 --exclude no_cirrus --exclude cc
always:
log_artifacts:
Expand Down
19 changes: 0 additions & 19 deletions test/secrets/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,3 @@ gentest(
secrets = ["/bin/sh"],
test_cmd = "$TEST",
)

tildes_replaced_test = r'''
echo "[ \"$SECRETS_AD_SECRETS\" = \"/bin/sh $SECRETS_HOME/.bashrc\" ] || \
(echo "Failed: $SECRETS_HOME $SECRETS_AD_SECRETS"; exit 1)" > "$OUT"'''

gentest(
name = "test_tildes_replaced",
outs = ["test_tildes_replaced.sh"],
cmd = tildes_replaced_test,
no_test_output = True,
secrets = {
"home": ["~"],
"ad_secrets": [
"/bin/sh",
"~/.bashrc",
],
},
test_cmd = "$TEST",
)

0 comments on commit 6a2b452

Please sign in to comment.