rename rhsm_repository_release to rhsm_release (#53430)

no changelog needed, as it is a new module for 2.8
This commit is contained in:
James Cassell
2019-03-21 11:21:45 -04:00
committed by Adam Miller
parent 2d172ee8ca
commit 530771e6f8
2 changed files with 15 additions and 15 deletions

View File

@@ -5,13 +5,13 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from units.compat.mock import call, patch
from ansible.modules.packaging.os import rhsm_repository_release
from ansible.modules.packaging.os import rhsm_release
from units.modules.utils import (
AnsibleExitJson, AnsibleFailJson, ModuleTestCase, set_module_args)
class RhsmRepositoryReleaseModuleTestCase(ModuleTestCase):
module = rhsm_repository_release
module = rhsm_release
def setUp(self):
super(RhsmRepositoryReleaseModuleTestCase, self).setUp()
@@ -19,12 +19,12 @@ class RhsmRepositoryReleaseModuleTestCase(ModuleTestCase):
# Mainly interested that the subscription-manager calls are right
# based on the module args, so patch out run_command in the module.
# returns (rc, out, err) structure
self.mock_run_command = patch('ansible.modules.packaging.os.rhsm_repository_release.'
self.mock_run_command = patch('ansible.modules.packaging.os.rhsm_release.'
'AnsibleModule.run_command')
self.module_main_command = self.mock_run_command.start()
# Module does a get_bin_path check before every run_command call
self.mock_get_bin_path = patch('ansible.modules.packaging.os.rhsm_repository_release.'
self.mock_get_bin_path = patch('ansible.modules.packaging.os.rhsm_release.'
'AnsibleModule.get_bin_path')
self.get_bin_path = self.mock_get_bin_path.start()
self.get_bin_path.return_value = '/testbin/subscription-manager'