def test_identify_e24cloud_negative(self, m_collect): """e24cloud identified if vendor is e24cloud""" m_collect.return_value = self.collmock(vendor='e24cloudyday') self.assertEqual(ec2.CloudNames.UNKNOWN, ec2.identify_platform())
def test_identify_zstack_full_domain_only(self, m_collect): """zstack asset-tag matching should match only on full domain boundary. """ m_collect.return_value = self.collmock(asset_tag='123456.buzzstack.io') self.assertEqual(ec2.CloudNames.UNKNOWN, ec2.identify_platform())
def test_identify_e24cloud(self, m_collect): """e24cloud identified if vendor is e24cloud""" m_collect.return_value = self.collmock(vendor='e24cloud') self.assertEqual(ec2.CloudNames.E24CLOUD, ec2.identify_platform())
def test_identify_zstack(self, m_collect): """zstack should be identified if chassis-asset-tag ends in .zstack.io """ m_collect.return_value = self.collmock(asset_tag='123456.zstack.io') self.assertEqual(ec2.CloudNames.ZSTACK, ec2.identify_platform())