Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sams-classes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
coding-at-fu
sams-classes
Commits
945a6fe0
There was a problem fetching the pipeline summary.
Commit
945a6fe0
authored
8 years ago
by
slobinger
Browse files
Options
Downloads
Plain Diff
Merge branch '24-apppname-urlprefix-for-mainapp' into 'master'
Resolve "main app sollte auch unter /appname/,,, ereichbar sein" Closes
#24
See merge request
!17
parents
710a8459
a74cc36c
No related branches found
No related tags found
1 merge request
!17
Resolve "main app sollte auch unter /appname/,,, ereichbar sein"
Pipeline
#
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/changelog
+3
-2
3 additions, 2 deletions
debian/changelog
sams_classes/sams_hub.py
+2
-3
2 additions, 3 deletions
sams_classes/sams_hub.py
test/test_sams_hub.py
+10
-7
10 additions, 7 deletions
test/test_sams_hub.py
with
15 additions
and
12 deletions
debian/changelog
+
3
−
2
View file @
945a6fe0
python3-sams-classes (1.0.1~
2
) UNRELEASED; urgency=medium
python3-sams-classes (1.0.1~
3
) UNRELEASED; urgency=medium
* fixed issue #20 "Basis-Pfad (/) bei API über Proxy nicht aufrufbar"
* fixed issue #21 "Unterstützung von anderen HTTP-Methoden als GET innerhalb
einer APP"
* Fixed issue #24 "main app sollte auch unter /appname/,,, ereichbar sein"
-- Sebastian Lobinger <s
ebastian.
lobinger@zib.de> Wed, 14 Jun 2017
08:36:02
+0200
-- Sebastian Lobinger <slobinger@
justus.
zib.de> Wed, 14 Jun 2017
14:29:26
+0200
python3-sams-classes (1.0.0) unstable; urgency=medium
...
...
This diff is collapsed.
Click to expand it.
sams_classes/sams_hub.py
+
2
−
3
View file @
945a6fe0
...
...
@@ -37,9 +37,8 @@ class SAMSHub:
self
.
_appList
.
append
(
app
)
if
app
.
name
==
self
.
_config
.
get
(
'
main_app
'
):
self
.
_flaskApp
.
register_blueprint
(
app
.
blueprint
)
else
:
self
.
_flaskApp
.
register_blueprint
(
app
.
blueprint
,
url_prefix
=
'
/
'
+
app
.
name
)
self
.
_flaskApp
.
register_blueprint
(
app
.
blueprint
,
url_prefix
=
'
/
'
+
app
.
name
)
@property
def
appKeys
(
self
):
...
...
This diff is collapsed.
Click to expand it.
test/test_sams_hub.py
+
10
−
7
View file @
945a6fe0
...
...
@@ -100,13 +100,16 @@ class CaseSAMSHubWithMainApp(unittest.TestCase):
)
hub
.
flaskApp
.
config
[
'
DEBUG
'
]
=
True
with
hub
.
flaskApp
.
test_client
(
self
)
as
client
:
response
=
client
.
get
(
'
/
'
)
self
.
assertIs
(
response
.
status_code
,
200
)
self
.
assertEquals
(
response
.
data
.
decode
(
'
utf-8
'
),
expected
)
response
=
client
.
get
(
'
/
'
+
urls
[
1
])
self
.
assertIs
(
response
.
status_code
,
200
)
response
=
client
.
get
(
'
/
'
+
extra_app
+
'
/
'
+
urls
[
2
])
self
.
assertIs
(
response
.
status_code
,
200
)
for
path
in
(
'
/
'
,
'
/
'
+
main_app
+
'
/
'
):
with
self
.
subTest
(
'
check rootpath with content for
'
+
path
):
response
=
client
.
get
(
path
)
self
.
assertIs
(
response
.
status_code
,
200
)
self
.
assertEquals
(
response
.
data
.
decode
(
'
utf-8
'
),
expected
)
for
path
in
(
'
/
'
+
urls
[
1
],
'
/
'
+
main_app
+
'
/
'
+
urls
[
1
],
'
/
'
+
extra_app
+
'
/
'
+
urls
[
2
]):
with
self
.
subTest
(
'
check status_code for
'
+
path
):
response
=
client
.
get
(
path
)
self
.
assertIs
(
response
.
status_code
,
200
)
class
CaseSAMSHubInitExceptions
(
unittest
.
TestCase
):
...
...
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