def test_get_spec_with_certs(self): """This should pass but not use the certs and run on https default insecure=false set ca-cert CERT_FILE """ code, _, _ = test.scloud("set", "ca-cert", CERT_FILE) self.assertEqual(0, code) code, results, err = test.scloud("search", "get-spec-json") self.assertEqual(0, code)
def setUp(self): # retrieve the selected tenant name code, self.tname, _ = test.scloud("get", "tenant") self.assertEqual(0, code) self.assertIsNotNone(self.tname) # retrieve the current principal name code, result, _ = identity("validate-token") self.assertEqual(0, code) self.pname = result["name"] self.assertTrue(self.pname) # groups to delete self.delete_groups = [] # roles to delete self.delete_roles = []
def streams(*args): return test.scloud("streams", *args)
def setUp(self): # retrieve the selected tenant name code, self.tname, _ = test.scloud("get", "tenant") self.assertEqual(0, code) self.assertIsNotNone(self.tname)
def identity(*args): return test.scloud("identity", *args)
def provisioner(*args): return test.scloud("provisioner", *args)
def forwarders(*args): return test.scloud("forwarders", *args)
def test_set_certs(self): code, _, _ = test.scloud("set", "ca-cert", CERT_FILE) self.assertEqual(0, code) code, results, _ = test.scloud("get-settings") self.assertIsNotNone(results.get("ca-cert"))
def tearDown(self): code, _, _ = test.scloud("delete", "ca-cert") self.assertEqual(0, code) code, _, _ = test.scloud("delete", "private-key") self.assertEqual(0, code)
def appreg(*args): return test.scloud("appreg", *args)