Skip to content

Commit

Permalink
updated unitetest
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Jan 25, 2024
1 parent d975d06 commit d020e01
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion simple_vm_client/bibigrid_connector/bibigrid_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def get_clusters_info(self) -> list[dict[str, str]]:
return infos

def is_bibigrid_available(self) -> bool:
logger.info(f"Checking if Bibigrid is available via: {self._BIBIGRID_EP}")
logger.info(f"Checking if Bibigrid is available")

if not self._BIBIGRID_EP:
logger.info("Bibigrid Url is not set")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@ def setUp(self, mock_is_bibigrid_available):
modes: {MODES}
use_master_with_public_ip: {MASTER_WITH_PUBLIC_IP}
localDnsLookup: {LOCAL_DNS_LOOKUP}
sub_network: {SUB_NETWORK}
ansibleGalaxyRoles:
- role1
- role2
openstack:
network: {NETWORK}
sub_network: {SUB_NETWORK}
production: {PRODUCTION}
"""
Expand Down
3 changes: 0 additions & 3 deletions simple_vm_client/forc_connector/test_forc_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ def test_load_config(self):
os.remove(temp_file.name)
self.assertEqual(self.forc_connector.FORC_URL, FORC_URL)
self.assertEqual(self.forc_connector.FORC_ACCESS_URL, FORC_ACCESS_URL)
self.assertEqual(
self.forc_connector.FORC_SECURITY_GROUP_ID, FORC_SECRUITY_GROUP_ID
)
self.assertEqual(self.forc_connector.GITHUB_PLAYBOOKS_REPO, GITHUB_REPO)
self.assertEqual(self.forc_connector.REDIS_HOST, REDIS_HOST)
self.assertEqual(self.forc_connector.REDIS_PORT, REDIS_PORT)
Expand Down
6 changes: 3 additions & 3 deletions simple_vm_client/test_openstack_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@
ssh_port_calculation: {PORT_CALCULATION}
udp_port_calculation: {PORT_CALCULATION}
gateway_security_group_id: "security_group_id"
production: true
forc:
forc_security_group_id: "forc_security_group_id"
production: true
"""


Expand Down Expand Up @@ -200,7 +201,6 @@ def test_load_config_yml(self):
# Assert that the configuration attributes are set correctly
self.assertEqual(self.openstack_connector.GATEWAY_IP, "192.168.1.1")
self.assertEqual(self.openstack_connector.NETWORK, "my_network")
self.assertEqual(self.openstack_connector.SUB_NETWORK, "my_sub_network")
self.assertTrue(self.openstack_connector.PRODUCTION)
self.assertEqual(self.openstack_connector.CLOUD_SITE, "my_cloud_site")
self.assertEqual(
Expand Down

0 comments on commit d020e01

Please sign in to comment.