Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
FDO Manager E2E Tests
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
fdo
FDO Manager E2E Tests
Commits
6754d9b7
Verified
Commit
6754d9b7
authored
5 months ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
TST: update testbed, fix purge tests
parent
25b3d7db
No related branches found
Branches containing commit
No related tags found
1 merge request
!8
Draft: Permanent Delete Tests
Pipeline
#55683
passed
5 months ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+4
-1
4 additions, 1 deletion
.gitlab-ci.yml
fdo-local-testbed
+1
-1
1 addition, 1 deletion
fdo-local-testbed
manager_test/manager_fdo/test_delete_fdo.py
+4
-7
4 additions, 7 deletions
manager_test/manager_fdo/test_delete_fdo.py
with
9 additions
and
9 deletions
.gitlab-ci.yml
+
4
−
1
View file @
6754d9b7
...
@@ -7,6 +7,7 @@ workflow:
...
@@ -7,6 +7,7 @@ workflow:
variables
:
variables
:
GIT_SUBMODULE_STRATEGY
:
"
recursive"
GIT_SUBMODULE_STRATEGY
:
"
recursive"
GIT_SUBMODULE_FORCE_HTTPS
:
"
true"
GIT_SUBMODULE_FORCE_HTTPS
:
"
true"
LINKAHEAD_TAG
:
"
dev_F_f-doip_P_f-string-ids"
test.mock-manager
:
test.mock-manager
:
stage
:
test
stage
:
test
...
@@ -30,9 +31,11 @@ test.testbed:
...
@@ -30,9 +31,11 @@ test.testbed:
-
apk add make
-
apk add make
script
:
script
:
-
export CORDRA_HTTPS_PORT=9443
-
export CORDRA_HTTPS_PORT=9443
-
"
export
LINKAHEAD_IMAGE=$CI_REGISTRY/caosdb/src/caosdb-deploy:$LINKAHEAD_TAG"
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-
docker pull $LINKAHEAD_IMAGE
-
make -C fdo-local-testbed clean start
-
make -C fdo-local-testbed clean start
-
"
docker
run
-e
DEFAULT_TIMEOUT=5
--network
host
-v./:/run
-w
/run
python:3.12-alpine
./run_tests.sh"
-
"
docker
run
-e
DEFAULT_TIMEOUT=5
--network
host
-v./:/run
-w
/run
python:3.12-alpine
./run_tests.sh"
after_script
:
after_script
:
after_script
:
-
make -C fdo-local-testbed stop
-
make -C fdo-local-testbed stop
...
...
This diff is collapsed.
Click to expand it.
fdo-local-testbed
@
f35bd049
Compare
a621fba0
...
f35bd049
Subproject commit
a621fba05d0ce97d3657fdbe23b74845eb58f447
Subproject commit
f35bd0491471465e2c814509a8bf29fcdb708d85
This diff is collapsed.
Click to expand it.
manager_test/manager_fdo/test_delete_fdo.py
+
4
−
7
View file @
6754d9b7
...
@@ -162,9 +162,6 @@ class TestClassPurgeFDO: # pylint: disable=fixme
...
@@ -162,9 +162,6 @@ class TestClassPurgeFDO: # pylint: disable=fixme
class
TestClassPurgeFDOChecks
:
# pylint: disable=fixme
class
TestClassPurgeFDOChecks
:
# pylint: disable=fixme
"""
Tests whether FDO purge is reflected in outside systems
"""
"""
Tests whether FDO purge is reflected in outside systems
"""
@pytest.mark.xfail
(
reason
=
"
Handle system lags enough that time(100) is often not enough
"
"
to avoid still getting a 200 answer
"
)
@pytest.mark.parametrize
(
"
service
"
,
[
pytest
.
param
(
service
,
marks
=
[
@pytest.mark.parametrize
(
"
service
"
,
[
pytest
.
param
(
service
,
marks
=
[
pytest
.
mark
.
dependency
(
scope
=
'
session
'
,
depends
=
[])])
pytest
.
mark
.
dependency
(
scope
=
'
session
'
,
depends
=
[])])
for
service
in
services
])
for
service
in
services
])
...
@@ -198,16 +195,16 @@ class TestClassPurgeFDOChecks: # pylint: disable=fixme
...
@@ -198,16 +195,16 @@ class TestClassPurgeFDOChecks: # pylint: disable=fixme
if
"
handle
"
in
repo
[
"
links
"
]
and
repo
[
"
links
"
][
"
handle
"
]
!=
""
:
if
"
handle
"
in
repo
[
"
links
"
]
and
repo
[
"
links
"
][
"
handle
"
]
!=
""
:
# Handle system API lags for minutes - have to check
# Handle system API lags for minutes - have to check
# against frontend instead
# against frontend instead
url
=
repo
[
"
links
"
][
"
handle
"
][
"
url
"
]
.
split
(
'
api
'
)[
0
]
url
=
repo
[
"
links
"
][
"
handle
"
][
"
url
"
]
response
=
requests
.
get
(
f
'
{
url
}{
pid
}
'
,
timeout
=
10
)
response
=
requests
.
get
(
f
'
{
url
}{
pid
}
?auth
'
,
timeout
=
10
)
assert
response
.
status_code
==
HTTPStatus
.
NOT_FOUND
assert
response
.
status_code
==
HTTPStatus
.
NOT_FOUND
any_checks_made
=
True
any_checks_made
=
True
if
'
data
'
in
fdo
:
if
'
data
'
in
fdo
:
response
=
requests
.
get
(
f
'
{
url
}{
fdo
[
"
data
"
]
}
'
,
timeout
=
10
)
response
=
requests
.
get
(
f
'
{
url
}{
fdo
[
"
data
"
]
}
?auth
'
,
timeout
=
10
)
assert
response
.
status_code
==
HTTPStatus
.
NOT_FOUND
assert
response
.
status_code
==
HTTPStatus
.
NOT_FOUND
if
'
metadata
'
in
fdo
:
if
'
metadata
'
in
fdo
:
response
=
requests
.
get
(
response
=
requests
.
get
(
f
'
{
url
}{
fdo
[
"
metadata
"
]
}
'
,
timeout
=
10
)
f
'
{
url
}{
fdo
[
"
metadata
"
]
}
?auth
'
,
timeout
=
10
)
assert
response
.
status_code
==
HTTPStatus
.
NOT_FOUND
assert
response
.
status_code
==
HTTPStatus
.
NOT_FOUND
if
not
any_checks_made
:
if
not
any_checks_made
:
pytest
.
skip
(
'
No checks with outside systems were possible.
'
)
pytest
.
skip
(
'
No checks with outside systems were possible.
'
)
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