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
Labels
Merge Requests
103
Merge Requests
103
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
db4c3e42
Commit
db4c3e42
authored
Apr 24, 2024
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes for tests
parent
3456e13e
Pipeline
#34225
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
software/gitlab/test/test.py
software/gitlab/test/test.py
+2
-2
No files found.
software/gitlab/test/test.py
View file @
db4c3e42
...
...
@@ -59,7 +59,7 @@ class TestGitlab(SlapOSInstanceTestCase):
session
=
requests
.
session
()
# Load the login page to get a CSRF token.
response
=
session
.
get
(
urljoin
(
self
.
backend_url
,
'users/sign_in'
))
response
=
session
.
get
(
urljoin
(
self
.
backend_url
,
'users/sign_in'
)
,
verify
=
False
)
self
.
assertEqual
(
response
.
status_code
,
200
)
# Extract the CSRF token and param.
...
...
@@ -73,7 +73,7 @@ class TestGitlab(SlapOSInstanceTestCase):
csrf_param
:
csrf_token
}
sign_in
=
functools
.
partial
(
requests
.
post
,
session
.
post
,
response
.
url
,
data
=
request_data
,
verify
=
False
)
...
...
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