File tree Expand file tree Collapse file tree 5 files changed +15
-6
lines changed Expand file tree Collapse file tree 5 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 55
55
python3 /
56
56
57
57
.env
58
+ * .env
58
59
59
60
# resources
60
61
resources /output.wav
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ before_install:
16
16
- sudo apt-get update
17
17
- sudo apt-get install pandoc
18
18
- pip install pypandoc
19
- # - '[ "${TRAVIS_PULL_REQUEST}" == "false" ] && openssl aes-256-cbc -K $ghost_key -iv $ghost_iv -in .ghostenv .enc -out .ghostenv -d || true'
19
+ - ' [ "${TRAVIS_PULL_REQUEST}" == "false" ] && openssl aes-256-cbc -K $encrypted_3058bc69cb40_key -iv $encrypted_3058bc69cb40_iv -in ghost.env .enc -out ghost.env -d || true'
20
20
21
21
install :
22
22
- pip install tox-travis
Original file line number Diff line number Diff line change
1
+ ��e��[���CTL{����a��/�p�R��Dt#��e4l��=�e�Ba��?��MH[[��E�#�d�J5�qX��0B��zXzH���b�6�U���xBD_����RW�ЪP]Q|���9��&��֛R���ՙ�t�b�>O�rt��dr�I�����G�sv�6�6NHp;����P7%�L�3�S3
2
+ U&�6�ġ)UV|}[E��U��.MIR,>�u��q������W��zߍ�Bt2�6�?���~��C�=���;����5Y���'d߱^���N�Wef}�?@$#���P�gT���:|�ș�{�U��K|S'����l��c�>��\��#���/����،
3
+ �A���|��\���ԶL�\�f����%�����s���̳�K��d鉚�d�A��RkB�w�8�{���x�0ذB���<'�Á�WV��S�� �nOV@���H��<!���Z���xl�<�G�<�8���}
Original file line number Diff line number Diff line change 24
24
from jproperties import Properties
25
25
26
26
# Read config file
27
- configFile = '.ghostenv '
27
+ configFile = 'ghost.env '
28
28
config = {}
29
29
configLoaded = None
30
30
39
39
config ['GST_IAM_URL' ] = p ['GST_IAM_URL' ].data
40
40
config ['GST_QUERY' ] = p ['GST_QUERY' ].data
41
41
config ['GST_RESOURCE_CRN' ] = p ['GST_RESOURCE_CRN' ].data
42
- configLoaded = true
42
+ configLoaded = True
43
43
except :
44
44
print ('External configuration was not found, skipping tests...' )
45
45
@@ -50,7 +50,12 @@ def setUp(self):
50
50
self .skipTest ("External configuration not available, skipping..." )
51
51
52
52
# Create authenticator with IAM API key (it generates bearer token automatically)
53
- authenticator = IAMAuthenticator (config ['GST_IINTERNA_APIKEY' ], url = config ['GST_IAM_URL' ])
53
+ apikey = config ['GST_IINTERNA_APIKEY' ]
54
+ iam_url = config ['GST_IAM_URL' ]
55
+ assert apikey is not None
56
+ assert iam_url is not None
57
+ authenticator = IAMAuthenticator (apikey , url = iam_url )
58
+
54
59
self .global_search = GlobalSearchV2 (authenticator = authenticator )
55
60
self .global_search .set_service_url (config ['GST_API_URL' ])
56
61
self .items = set (config ['GST_RESOURCE_NAMES' ].split (',' ))
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def getRandomIntegerString(length=8):
36
36
return res
37
37
38
38
# Read config file
39
- configFile = '.ghostenv '
39
+ configFile = 'ghost.env '
40
40
config = {}
41
41
configLoaded = None
42
42
@@ -51,7 +51,7 @@ def getRandomIntegerString(length=8):
51
51
config ['GST_IAM_URL' ] = p ['GST_IAM_URL' ].data
52
52
config ['GST_QUERY' ] = p ['GST_QUERY' ].data
53
53
config ['GST_RESOURCE_CRN' ] = p ['GST_RESOURCE_CRN' ].data
54
- configLoaded = true
54
+ configLoaded = True
55
55
except :
56
56
print ('External configuration was not found, skipping tests...' )
57
57
You can’t perform that action at this time.
0 commit comments