Beispiel #1
0
 def test_looker_version(self):
     '''Pulls instance version to confirm >= 7.10'''
     url = regex_base_url(str(self.__class__.base_url))
     request_data = urlopen(
         url + "/version", context=ssl._create_unverified_context()).read()
     instance_version = re.search(r'\d{1,2}\.{1}\d{1,2}', str(request_data))
     self.assertTrue(float(instance_version[0]) >= 7.10,
                     msg="Issue with instance version")
Beispiel #2
0
 def test_k8s_region_url(self):
     self.assertEqual(regex_base_url('https://company.cloud.looker.com'),
                      'https://company.cloud.looker.com',
                      msg="Issue formatting url")
Beispiel #3
0
 def test_legacy_api_url(self):
     self.assertEqual(regex_base_url('https://company.api.looker.com'),
                      'https://company.api.looker.com',
                      msg="Issue formatting url")
Beispiel #4
0
 def test_legacy_other_port_url(self):
     self.assertEqual(regex_base_url('https://looker.company.com:443'),
                      'https://looker.company.com',
                      msg="Issue formatting url")
Beispiel #5
0
 def test_legacy_region_url(self):
     self.assertEqual(regex_base_url('https://company.eu.looker.com:19999'),
                      'https://company.eu.looker.com',
                      msg="Issue formatting url")