Skip to content

Commit

Permalink
Get bindings config from pulp-smash
Browse files Browse the repository at this point in the history
  • Loading branch information
fao89 committed Mar 24, 2020
1 parent 456f103 commit d207ed5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGES/6393.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Get bindings config from pulp-smash
2 changes: 1 addition & 1 deletion functest_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
git+https://github.com/pulp/pulp-smash.git#egg=pulp-smash
pulp-smash
pytest
9 changes: 3 additions & 6 deletions pulp_deb/tests/functional/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from time import sleep
from tempfile import NamedTemporaryFile

from pulp_smash import api, selectors, utils
from pulp_smash import api, config, selectors, utils
from pulp_smash.pulp3.utils import (
gen_remote,
gen_repo,
Expand Down Expand Up @@ -36,7 +36,6 @@
from pulpcore.client.pulpcore import (
ApiClient as CoreApiClient,
ArtifactsApi,
Configuration,
TasksApi,
SigningServicesApi,
)
Expand All @@ -58,10 +57,8 @@
identical, except that ``exc`` has been set to ``unittest.SkipTest``.
"""

configuration = Configuration()
configuration.username = "admin"
configuration.password = "password"
configuration.safe_chars_for_path_param = "/"
cfg = config.get_config()
configuration = cfg.get_bindings_config()

core_client = CoreApiClient(configuration)
artifact_api = ArtifactsApi(core_client)
Expand Down

0 comments on commit d207ed5

Please sign in to comment.