Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Warden
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pavel Valach
Warden
Commits
51e080ce
Commit
51e080ce
authored
6 years ago
by
Radko Krkoš
Browse files
Options
Downloads
Patches
Plain Diff
Server/Tests: Centralize Server instance creation
parent
4f7ea2fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
warden_server/test_warden_server.py
+1
-3
1 addition, 3 deletions
warden_server/test_warden_server.py
with
1 addition
and
3 deletions
warden_server/test_warden_server.py
+
1
−
3
View file @
51e080ce
...
...
@@ -121,7 +121,6 @@ class Warden3ServerTest(unittest.TestCase):
"""
High level Warden3 Server tests
"""
config
=
{
'
log
'
:
{
'
level
'
:
'
debug
'
},
'
validator
'
:
{
'
type
'
:
'
NoValidator
'
},
'
auth
'
:
{
'
type
'
:
'
PlainAuthenticator
'
},
'
db
'
:
{
'
user
'
:
USER
,
'
password
'
:
PASSWORD
,
'
dbname
'
:
DB
},
'
handler
'
:
{
'
description
'
:
'
Warden Test Server
'
}}
app
=
build_server
(
config
)
getInfo_interface_tests_specific
=
[
(
"
/getInfo
"
,
"
403 I
'
m watching. Authenticate.
"
),
...
...
@@ -139,6 +138,7 @@ class Warden3ServerTest(unittest.TestCase):
def
setUpClass
(
cls
):
"""
Pre-test cleanup
"""
cls
.
clean_lastid
()
cls
.
app
=
build_server
(
cls
.
config
)
@classmethod
def
clean_lastid
(
cls
):
...
...
@@ -243,14 +243,12 @@ class X509AuthenticatorTest(Warden3ServerTest):
"""
Performs the basic test suite using the X509Authenticator
"""
config
=
deepcopy
(
Warden3ServerTest
.
config
)
config
[
'
auth
'
][
'
type
'
]
=
'
X509Authenticator
'
app
=
build_server
(
config
)
class
X509NameAuthenticatorTest
(
Warden3ServerTest
):
"""
Performs the basic test suite using the X509NameAuthenticator
"""
config
=
deepcopy
(
Warden3ServerTest
.
config
)
config
[
'
auth
'
][
'
type
'
]
=
'
X509NameAuthenticator
'
app
=
build_server
(
config
)
getInfo_interface_tests_specific
=
[
(
"
/getInfo
"
,
"
200 OK
"
),
...
...
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