Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
slapos
Commits
37185926
Commit
37185926
authored
Dec 10, 2021
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repman: Update tests to work with recents changes
parent
1fd7e41d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
software/repman/test/test.py
software/repman/test/test.py
+8
-6
No files found.
software/repman/test/test.py
View file @
37185926
...
...
@@ -62,12 +62,6 @@ class TestRepman(SlapOSInstanceTestCase):
token
=
resp
.
json
()[
'token'
]
headers
=
{
"authorization"
:
"Bearer "
+
token
}
resp
=
requests
.
get
(
urljoin
(
self
.
url
,
'/api/monitor'
),
headers
=
headers
,
verify
=
False
,
)
self
.
assertEqual
(
resp
.
status_code
,
requests
.
codes
.
ok
)
for
i
in
range
(
20
):
resp
=
requests
.
get
(
...
...
@@ -87,3 +81,11 @@ class TestRepman(SlapOSInstanceTestCase):
self
.
assertTrue
(
cluster
[
'isProvision'
])
self
.
assertTrue
(
cluster
[
'isFailable'
])
self
.
assertFalse
(
cluster
[
'isDown'
])
resp
=
requests
.
get
(
urljoin
(
self
.
url
,
'/api/clusters/cluster1/status'
),
headers
=
headers
,
verify
=
False
,
)
self
.
assertEqual
(
resp
.
status_code
,
requests
.
codes
.
ok
)
self
.
assertEqual
(
resp
.
json
(),
{
"alive"
:
"running"
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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