Skip to content

Add SALT API client #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 12, 2017
Merged

Add SALT API client #28

merged 5 commits into from
May 12, 2017

Conversation

tyzhnenko
Copy link
Contributor

No description provided.

"""docstring for CommonServicesManager"""

__config = None
__underlay = None
_config = None
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep these variables private. If you need to use them in ExecuteCommandsMixin , please pass 'underlay' and 'config' objects to ExecuteCommandsMixin.init and store them as private for this class

@@ -26,7 +26,7 @@


@pytest.fixture(scope='function')
def openstack_actions(config, underlay):
def openstack_actions(config, underlay, salt_actions):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to use 'salt_deployed' fixture instead just 'salt_actions' to ensure that salt is actually deployed. Fixture 'salt_deployed' returns the same object as salt_actions.

@dis-xcom dis-xcom merged commit b933817 into master May 12, 2017
dis-xcom added a commit that referenced this pull request May 31, 2018
If the job is queued while waiting for the free executors, then
the method was getting the wrong build_id belonging to the
previous job, for instance it will return build_id=28 in this example:

  №2​9 (pending—Build #28 is already in progress (ETA:17 min))
  №2​8 [In progress]  May 31, 2018 6:07 PM

* Add 'timeout' parameter (default 600sec) in run_build()
  to wait until the queued build is started
* Add pooling the queue until the build is started, get the
  build number assigned to build in queue object
* Add 'verbose' parameter (default False) to show the reason
  from Jenkins why the build is not started yet, for example:

    pending the job 'deploy_openstack' : Build #22 is already in progress (ETA:1 min 48 sec)
    pending the job 'deploy_openstack' : Build #22 is already in progress (ETA:1 min 18 sec)
    pending the job 'deploy_openstack' : Build #22 is already in progress (ETA:48 sec)

* Rename the parameter 'print_job_output' to 'verbose'
  in the method wait_end_of_build() to have the common parameter
  naming.

Change-Id: Id49b5b45a8127e769b89860b19424081f37f6f38
@dis-xcom dis-xcom deleted the feature/salt-manager branch November 9, 2018 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants