athena: hardcode jwt for tests

old-commit-hash: 7e3d002066
commatwo_master
Adeeb Shihadeh 4 years ago
parent 33b6610390
commit 4da8cf4f31
  1. 1
      Jenkinsfile
  2. 7
      selfdrive/athena/tests/test_athenad_old.py

1
Jenkinsfile vendored

@ -49,7 +49,6 @@ def phone_steps(String device_type, steps) {
pipeline { pipeline {
agent none agent none
environment { environment {
COMMA_JWT = credentials('athena-test-jwt')
TEST_DIR = "/data/openpilot" TEST_DIR = "/data/openpilot"
SOURCE_DIR = "/data/openpilot_source/" SOURCE_DIR = "/data/openpilot_source/"
} }

@ -48,7 +48,7 @@ def test_athena():
resp = requests.post( resp = requests.post(
"https://athena.comma.ai/" + params.get("DongleId", encoding="utf-8"), "https://athena.comma.ai/" + params.get("DongleId", encoding="utf-8"),
headers={ headers={
"Authorization": "JWT " + os.getenv("COMMA_JWT"), "Authorization": "JWT thisisnotajwt",
"Content-Type": "application/json" "Content-Type": "application/json"
}, },
data=json.dumps(payload), data=json.dumps(payload),
@ -84,11 +84,6 @@ def test_athena():
# kill athenad and ensure it is restarted (check_output will throw if it is not) # kill athenad and ensure it is restarted (check_output will throw if it is not)
os.kill(int(athenad_pid), signal.SIGINT) os.kill(int(athenad_pid), signal.SIGINT)
expect_athena_starts() expect_athena_starts()
if not os.getenv('COMMA_JWT'):
print('WARNING: COMMA_JWT env not set, will not test requests to athena.comma.ai')
return
expect_athena_registers(start) expect_athena_registers(start)
print("ATHENA: getSimInfo") print("ATHENA: getSimInfo")

Loading…
Cancel
Save