Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ZHLdigital
eLectures
contrib
python-opencast-externalapi
Commits
bda1679a
Verified
Commit
bda1679a
authored
Nov 10, 2017
by
Jan Koppe
Browse files
don't test tags, don't log credentials in tests
parent
452895d4
Pipeline
#1408
passed with stages
in 41 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
bda1679a
...
...
@@ -8,6 +8,8 @@ stages:
lint
:
stage
:
test
except
:
-
tags
before_script
:
-
pip install flake8
script
:
...
...
@@ -15,6 +17,8 @@ lint:
.unittest
:
&unittest
stage
:
test
except
:
-
tags
before_script
:
-
pip install coverage
script
:
...
...
tests/client_factory.py
View file @
bda1679a
from
opencast_externalapi
import
ExternalApi
import
os
import
logging
logger
=
logging
.
getLogger
()
def
build_client
():
host
=
os
.
getenv
(
'OPENCAST_HOST'
,
'https://develop.opencast.org'
)
user
=
os
.
getenv
(
'OPENCAST_USER'
,
'opencast_system_account'
)
password
=
os
.
getenv
(
'OPENCAST_PASSWORD'
,
'CHANGE_ME'
)
logger
.
debug
(
'user: %s, pass: %s, host: %s'
%
(
user
,
password
,
host
))
return
ExternalApi
(
host
=
host
,
user
=
user
,
password
=
password
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment