Skip to content

Commit e06f25f

Browse files
committed
Resolved issue where test docker container was not picking up travis secrets
1 parent e5ec82e commit e06f25f

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

scripts/test/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ try {
2121

2222
const exec_result = $.exec(
2323
`docker run --rm --tty ` +
24-
`--env TOKEN=TOKEN ` +
25-
`--env MONGODB_URI=MONGODB_URI ` +
26-
`--env BOT_USERNAME=BOT_USERNAME ` +
24+
`--env TOKEN=$TOKEN ` +
25+
`--env MONGODB_URI=$MONGODB_URI ` +
26+
`--env BOT_USERNAME=$BOT_USERNAME ` +
2727
`--env VIVID_USER=$VIVID_USER ` +
2828
`--env VIVID_PASSWORD=$VIVID_PASSWORD ` +
2929
`chatbot-hepir:test`

src/helper_methods.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ def connect(zv_user, tg_id, first_name="He/She", bot=None, msg=None):
2222
vivid_request = requests.get('{}/api/v1/user-registrations/{}'.format(VIVID_ROOT_URL, zv_user),
2323
auth=(VIVID_USER, VIVID_PASSWORD))
2424

25-
print('u={}\np=JK NOT GONNA SHOW U'.format(VIVID_USER))
26-
2725
print(
2826
'[{}] The status code of the vivid_request ([{}]: {}) is: {}'.format(str(datetime.datetime.now()).split('.')[0],
2927
vivid_request.request,
@@ -178,8 +176,6 @@ def disconnect(zv_user, tg_id, bot=None, msg=None):
178176
vivid_request = requests.delete('{}/api/v1/user-registrations/{}'.format(VIVID_ROOT_URL, zv_user),
179177
auth=(VIVID_USER, VIVID_PASSWORD))
180178

181-
print('u={}\np=JK NOT GONNA SHOW U'.format(VIVID_USER))
182-
183179
print(
184180
'[{}] The status code of the vivid_request ([{}]: {}) is: {}'.format(str(datetime.datetime.now()).split('.')[0],
185181
vivid_request.request,

0 commit comments

Comments
 (0)