Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
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
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos
Commits
159460d5
Commit
159460d5
authored
Nov 03, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
theia/test/project_tests: update gitlab tests for gitlab 13
parent
faae8fa1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
software/theia/test/project_tests.py
software/theia/test/project_tests.py
+3
-3
No files found.
software/theia/test/project_tests.py
View file @
159460d5
...
@@ -499,7 +499,7 @@ class TestTheiaResilienceGitlab(test_resiliency.TestTheiaResilience):
...
@@ -499,7 +499,7 @@ class TestTheiaResilienceGitlab(test_resiliency.TestTheiaResilience):
# Create a new project
# Create a new project
print
(
"Gitlab create a project"
)
print
(
"Gitlab create a project"
)
path
=
'/api/v
3
/projects'
path
=
'/api/v
4
/projects'
parameter_dict
=
{
'name'
:
'sample-test'
,
'namespace'
:
'open'
}
parameter_dict
=
{
'name'
:
'sample-test'
,
'namespace'
:
'open'
}
# Token can be set manually
# Token can be set manually
headers
=
{
"PRIVATE-TOKEN"
:
'SLurtnxPscPsU-SDm4oN'
}
headers
=
{
"PRIVATE-TOKEN"
:
'SLurtnxPscPsU-SDm4oN'
}
...
@@ -508,7 +508,7 @@ class TestTheiaResilienceGitlab(test_resiliency.TestTheiaResilience):
...
@@ -508,7 +508,7 @@ class TestTheiaResilienceGitlab(test_resiliency.TestTheiaResilience):
# Check the project is exist
# Check the project is exist
print
(
"Gitlab check project is exist"
)
print
(
"Gitlab check project is exist"
)
path
=
'/api/v
3
/projects'
path
=
'/api/v
4
/projects'
response
=
requests
.
get
(
backend_url
+
path
,
headers
=
headers
,
verify
=
False
)
response
=
requests
.
get
(
backend_url
+
path
,
headers
=
headers
,
verify
=
False
)
try
:
try
:
projects
=
response
.
json
()
projects
=
response
.
json
()
...
@@ -583,7 +583,7 @@ class TestTheiaResilienceGitlab(test_resiliency.TestTheiaResilience):
...
@@ -583,7 +583,7 @@ class TestTheiaResilienceGitlab(test_resiliency.TestTheiaResilience):
# Check the project is exist
# Check the project is exist
print
(
"Gitlab check project is exist"
)
print
(
"Gitlab check project is exist"
)
path
=
'/api/v
3
/projects'
path
=
'/api/v
4
/projects'
headers
=
{
"PRIVATE-TOKEN"
:
'SLurtnxPscPsU-SDm4oN'
}
headers
=
{
"PRIVATE-TOKEN"
:
'SLurtnxPscPsU-SDm4oN'
}
response
=
requests
.
get
(
backend_url
+
path
,
headers
=
headers
,
verify
=
False
)
response
=
requests
.
get
(
backend_url
+
path
,
headers
=
headers
,
verify
=
False
)
try
:
try
:
...
...
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