Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eric Zheng
slapos.toolbox
Commits
ae6da143
Commit
ae6da143
authored
Jun 30, 2021
by
Eric Zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix expected result in test_check_authenticate_bad_password
parent
39ab9ed4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
slapos/test/promise/plugin/test_check_url_available.py
slapos/test/promise/plugin/test_check_url_available.py
+4
-1
No files found.
slapos/test/promise/plugin/test_check_url_available.py
View file @
ae6da143
...
@@ -583,8 +583,11 @@ class TestCheckUrlAvailable(CheckUrlAvailableMixin):
...
@@ -583,8 +583,11 @@ class TestCheckUrlAvailable(CheckUrlAvailableMixin):
self
.
assertEqual
(
result
[
'result'
][
'failed'
],
True
)
self
.
assertEqual
(
result
[
'result'
][
'failed'
],
True
)
self
.
assertEqual
(
self
.
assertEqual
(
result
[
'result'
][
'message'
],
result
[
'result'
][
'message'
],
# The first request checks the actual credentials (which should
# fail). The second request checks that the server responds with a
# 401 when no credentials are supplied (which succeeds).
(
"%r is not available (returned 401, expected 200).
\
n
"
+
\
(
"%r is not available (returned 401, expected 200).
\
n
"
+
\
"%r is
not available (returned 401, expected 200).
"
)
%
(
url
,
url
)
"%r is
available
"
)
%
(
url
,
url
)
)
)
# Test authentication failure due to the server not requiring any
# Test authentication failure due to the server not requiring any
...
...
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