Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Video AG Infrastruktur
website
Commits
69810f43
Commit
69810f43
authored
8 years ago
by
Julian Rother
Browse files
Options
Downloads
Patches
Plain Diff
Started implementing smoke tests, closes #236
parent
1045a7fb
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/urlcheck_legacy.py
+31
-0
31 additions, 0 deletions
tests/urlcheck_legacy.py
tests/urlcheck_sinf.py
+1083
-0
1083 additions, 0 deletions
tests/urlcheck_sinf.py
with
1114 additions
and
0 deletions
tests/urlcheck_legacy.py
0 → 100755
+
31
−
0
View file @
69810f43
#!/bin/env python3
import
requests
import
sys
failed
=
0
def
checkurl
(
path
,
ignore
=
False
,
status
=
200
):
global
failed
for
prefix
in
[
'
http://videoag.fsmpi.rwth-aachen.de
'
,
'
https://videoag.fsmpi.rwth-aachen.de
'
,
'
https://video.fsmpi.rwth-aachen.de
'
,
'
https://video.rwth-aachen.de
'
,
'
https://rwth.video
'
]:
req
=
requests
.
head
(
prefix
+
path
,
allow_redirects
=
True
)
if
req
.
status_code
!=
status
:
if
ignore
:
print
(
'
[urlcheck_legacy]
'
,
'
Warning:
'
,
req
.
status_code
,
prefix
+
path
)
else
:
print
(
'
[urlcheck_legacy]
'
,
'
Error:
'
,
req
.
status_code
,
prefix
+
path
)
failed
+=
1
checkurl
(
'
/
'
)
checkurl
(
'
/site/feed.php?newcourses
'
)
checkurl
(
'
/?view=faq
'
)
checkurl
(
'
/site/feed.php?all
'
)
checkurl
(
'
/?course=16ws-progra
'
)
checkurl
(
'
/?view=player&lectureid=7319
'
)
checkurl
(
'
/pub/16ws-progra/16ws-progra-161019-1080p.mp4
'
)
checkurl
(
'
/site/feed.php?16ws-afi
'
)
checkurl
(
'
/site/embed.php?vid=6088
'
)
checkurl
(
'
/site/embed.php?lecture=7319
'
)
if
failed
:
sys
.
stderr
.
write
(
'
[urlcheck_legacy]
'
+
str
(
failed
)
+
'
checks failed
'
)
sys
.
exit
(
1
)
This diff is collapsed.
Click to expand it.
tests/urlcheck_sinf.py
0 → 100755
+
1083
−
0
View file @
69810f43
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment