Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9341544
relay-credentials-test.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
542 B
Subscribers
None
relay-credentials-test.sh
View Options
#!/usr/bin/env bash
source
"
$(
dirname
$0
)
/_test_setup.sh"
cfg
=
"../relay/config.yml"
creds
=
"../relay/credentials.json"
# Relay files don't exist in a clean clone.
test
!
-f
$cfg
test
!
-f
$creds
# Running the install script adds them.
source
relay-credentials.sh
test
-f
$cfg
test
-f
$creds
test
"
$(
jq
-r
'keys[2]'
$creds
)
"
=
"secret_key"
# If the files exist we don't touch it.
echo
GARBAGE
>
$cfg
echo
MOAR
GARBAGE
>
$creds
source
relay-credentials.sh
test
"
$(
cat
$cfg
)
"
=
"GARBAGE"
test
"
$(
cat
$creds
)
"
=
"MOAR GARBAGE"
report_success
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Fri, Jul 4, 12:07 PM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3249678
Attached To
R206 getsentry-onpremise
Event Timeline
Log In to Comment