Skip to content

Commit

Permalink
Update test_oneview_appliance_ssh_access_facts.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SHANDCRUZ authored Mar 2, 2021
1 parent ba8ed3d commit b6be1f0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/test_oneview_appliance_ssh_access_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
from oneview_module_loader import ApplianceSshAccessFactsModule

PARAMS_GET_ALL = dict(
config='config.json',
name=None
config='config.json'
)

PRESENT_SSHACCESS = [{
"type": "SshAccess",
"allowSshAccess": "True"
Expand All @@ -33,8 +33,9 @@

@pytest.mark.resource(TestApplianceSshAccessFactsModule='appliance_ssh_access')
class TestApplianceSshAccessFactsModule(OneViewBaseTest):
def test_should_get_all_timeconfiguration(self):
self.resource.get_all.return_value = PRESENT_SSHACCESS
def test_should_get_all_ssh_configuration(self):
self.resource.get_all.return_value = self.resource
self.resource.data = PRESENT_SSHACCESS
self.mock_ansible_module.params = PARAMS_GET_ALL

ApplianceSshAccessFactsModule().run()
Expand Down

0 comments on commit b6be1f0

Please sign in to comment.