Skip to content

Commit 730e410

Browse files
mdellwegbmbouter
authored andcommitted
Use certguard fixtures
[noissue]
1 parent 21dfc42 commit 730e410

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

.github/template_gitref

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021.08.26-129-gf780fda
1+
2021.08.26-130-ge87b661

.github/workflows/scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if [[ "$TEST" = "docs" || "$TEST" = "publish" ]]; then
2222
pip install -r doc_requirements.txt
2323
fi
2424

25-
pip install -e ../pulpcore
25+
pip install -e ../pulpcore -e ../pulp-certguard
2626
pip install -r functest_requirements.txt
2727

2828
cd .ci/ansible/

functest_requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ aiohttp
33
pulp-smash @ git+https://github.com/pulp/pulp-smash.git
44
pulpcore-client
55
pulp-file-client
6+
pulp-certguard-client
67
pytest

pulp_file/tests/functional/api/test_generic_list.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33

44
import pytest
55

6-
from pulpcore.client.pulp_certguard import (
7-
ApiClient as CertGuardApiClient,
8-
ContentguardsX509Api,
9-
)
10-
116

127
@pytest.mark.parallel
138
def test_read_all_repos_generic(file_repo_api_client, file_repo):
@@ -29,11 +24,10 @@ def test_read_all_content_generic(file_content_api_client, file_random_content_u
2924

3025
@pytest.mark.parallel
3126
def test_read_all_content_guards_generic(
32-
content_guards_api_client, tls_certificate_authority_cert, bindings_cfg
27+
content_guards_api_client, tls_certificate_authority_cert, x509_content_guards_api_client
3328
):
3429
"""Ensure name is displayed when listing content guards generic."""
35-
cert_guards_api = ContentguardsX509Api(CertGuardApiClient(bindings_cfg))
36-
cert_guards_api.create(
30+
x509_content_guards_api_client.create(
3731
{"name": str(uuid.uuid4()), "ca_certificate": tls_certificate_authority_cert}
3832
)
3933

0 commit comments

Comments
 (0)