Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beat.web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
beat
beat.web
Commits
ffb9e4bd
Commit
ffb9e4bd
authored
4 years ago
by
Samuel GAIST
Browse files
Options
Downloads
Patches
Plain Diff
[toolchains][tests] Add missing version field to concerned tests
parent
7668180b
No related branches found
No related tags found
1 merge request
!325
Improve new version handling
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
beat/web/toolchains/tests.py
+26
-8
26 additions, 8 deletions
beat/web/toolchains/tests.py
with
26 additions
and
8 deletions
beat/web/toolchains/tests.py
+
26
−
8
View file @
ffb9e4bd
...
...
@@ -44,7 +44,7 @@ from ..common.testutils import BaseTestCase
from
..common.testutils
import
tearDownModule
# noqa test runner will call it
from
..common.testutils
import
get_algorithms_from_data
TEST_PWD
=
"
1234
"
TEST_PWD
=
"
1234
"
# nosec
class
ToolchainsCreationFunction
(
TestCase
):
...
...
@@ -710,7 +710,7 @@ class ToolchainCreation(ToolchainsAPIBase):
response
=
self
.
client
.
post
(
self
.
url
,
json
.
dumps
({
"
name
"
:
"
valid-name1
"
}),
json
.
dumps
({
"
name
"
:
"
valid-name1
"
,
"
version
"
:
1
}),
content_type
=
"
application/json
"
,
)
...
...
@@ -736,7 +736,7 @@ class ToolchainCreation(ToolchainsAPIBase):
response
=
self
.
client
.
post
(
self
.
url
,
json
.
dumps
({
"
name
"
:
"
invalid name1
"
}),
json
.
dumps
({
"
name
"
:
"
invalid name1
"
,
"
version
"
:
1
}),
content_type
=
"
application/json
"
,
)
...
...
@@ -761,7 +761,9 @@ class ToolchainCreation(ToolchainsAPIBase):
self
.
login_jackdoe
()
response
=
self
.
client
.
post
(
self
.
url
,
json
.
dumps
({
"
name
"
:
"
personal
"
}),
content_type
=
"
application/json
"
self
.
url
,
json
.
dumps
({
"
name
"
:
"
personal
"
,
"
version
"
:
1
}),
content_type
=
"
application/json
"
,
)
self
.
checkResponse
(
response
,
400
)
...
...
@@ -771,7 +773,7 @@ class ToolchainCreation(ToolchainsAPIBase):
response
=
self
.
client
.
post
(
self
.
url
,
json
.
dumps
({
"
name
"
:
"
toolchain 4
"
}),
json
.
dumps
({
"
name
"
:
"
toolchain 4
"
,
"
version
"
:
1
}),
content_type
=
"
application/json
"
,
)
...
...
@@ -782,7 +784,7 @@ class ToolchainCreation(ToolchainsAPIBase):
response
=
self
.
client
.
post
(
self
.
url
,
json
.
dumps
({
"
name
"
:
"
new_toolchain
"
,
"
description
"
:
"
blah
"
}),
json
.
dumps
({
"
name
"
:
"
new_toolchain
"
,
"
version
"
:
1
,
"
description
"
:
"
blah
"
}),
content_type
=
"
application/json
"
,
)
...
...
@@ -811,7 +813,11 @@ class ToolchainCreation(ToolchainsAPIBase):
response
=
self
.
client
.
post
(
self
.
url
,
json
.
dumps
(
{
"
name
"
:
"
new_toolchain
"
,
"
declaration
"
:
ToolchainsAPIBase
.
DECLARATION
}
{
"
name
"
:
"
new_toolchain
"
,
"
version
"
:
1
,
"
declaration
"
:
ToolchainsAPIBase
.
DECLARATION
,
}
),
content_type
=
"
application/json
"
,
)
...
...
@@ -839,6 +845,7 @@ class ToolchainCreation(ToolchainsAPIBase):
json
.
dumps
(
{
"
name
"
:
"
new_toolchain
"
,
"
version
"
:
1
,
"
declaration
"
:
ToolchainCreation
.
DECLARATION_INVALID
,
}
),
...
...
@@ -856,6 +863,7 @@ class ToolchainCreation(ToolchainsAPIBase):
json
.
dumps
(
{
"
name
"
:
"
name1
"
,
"
version
"
:
1
,
"
description
"
:
"
blah
"
,
"
fork_of
"
:
"
johndoe/toolchain1/1
"
,
}
...
...
@@ -874,6 +882,7 @@ class ToolchainCreation(ToolchainsAPIBase):
json
.
dumps
(
{
"
name
"
:
"
name1
"
,
"
version
"
:
1
,
"
description
"
:
"
blah
"
,
"
fork_of
"
:
"
johndoe/toolchain1/1
"
,
}
...
...
@@ -890,7 +899,11 @@ class ToolchainCreation(ToolchainsAPIBase):
response
=
self
.
client
.
post
(
url
,
json
.
dumps
(
{
"
description
"
:
"
blah
"
,
"
fork_of
"
:
"
jackdoe/public_for_one_user/1
"
}
{
"
version
"
:
1
,
"
description
"
:
"
blah
"
,
"
fork_of
"
:
"
jackdoe/public_for_one_user/1
"
,
}
),
content_type
=
"
application/json
"
,
)
...
...
@@ -909,6 +922,7 @@ class ToolchainCreation(ToolchainsAPIBase):
json
.
dumps
(
{
"
name
"
:
"
name1
"
,
"
version
"
:
1
,
"
description
"
:
"
blah
"
,
"
fork_of
"
:
"
jackdoe/public_for_one_user/1
"
,
}
...
...
@@ -928,6 +942,7 @@ class ToolchainCreation(ToolchainsAPIBase):
json
.
dumps
(
{
"
name
"
:
"
name1
"
,
"
version
"
:
1
,
"
description
"
:
"
blah
"
,
"
fork_of
"
:
"
jackdoe/personal/1
"
,
}
...
...
@@ -947,6 +962,7 @@ class ToolchainCreation(ToolchainsAPIBase):
json
.
dumps
(
{
"
name
"
:
"
name1
"
,
"
version
"
:
1
,
"
description
"
:
"
blah
"
,
"
fork_of
"
:
"
jackdoe/public_for_all/1
"
,
}
...
...
@@ -998,6 +1014,7 @@ class ToolchainCreation(ToolchainsAPIBase):
json
.
dumps
(
{
"
name
"
:
"
name1
"
,
"
version
"
:
1
,
"
description
"
:
"
blah
"
,
"
fork_of
"
:
"
jackdoe/public_for_one_user/1
"
,
}
...
...
@@ -1047,6 +1064,7 @@ class ToolchainCreation(ToolchainsAPIBase):
json
.
dumps
(
{
"
name
"
:
"
name1
"
,
"
version
"
:
1
,
"
description
"
:
"
blah
"
,
"
declaration
"
:
ToolchainsAPIBase
.
DECLARATION
,
"
fork_of
"
:
"
jackdoe/public_for_one_user/1
"
,
...
...
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