def test_linchpin_aws_creds(self): creds_path = os.path.realpath(__file__) path = "/provision/roles/aws/vars" creds_path = "/".join(creds_path.split("/")[0:-2]) + path aws_creds = [] creds_path = os.walk(creds_path) for path, _, creds in creds_path: for f in creds: aws_creds.append(path + "/" + f) output = cred_utils.validate_creds(path + "/" + f, "aws") assert_equal(output, True)
def test_linchpin_aws_creds(self): creds_path = os.path.realpath(__file__) path = "/provision/roles/aws/vars" creds_path = "/".join(creds_path.split("/")[0:-2]) + path aws_creds = [] creds_path = os.walk(creds_path) for path, _, creds in creds_path: for f in creds: aws_creds.append(path+"/"+f) output = cred_utils.validate_creds(path+"/" + f, "aws") assert_equal(output, True)
def test_linchpin_rax_creds(self): creds_path = os.path.realpath(__file__) path = "/provision/roles/rackspace/vars" creds_path = "/".join(creds_path.split("/")[0:-2]) + path rax_creds = [] output = True creds_path = os.walk(creds_path) for path, _, creds in creds_path: for f in creds: if f.split(".")[-1] == "yml" or f.split(".")[-1] == "yaml": rax_creds.append(path + "/" + f) output = cred_utils.validate_creds(path + "/" + f, "rax") assert_equal(output, True) assert_equal(output, True)
def test_linchpin_rax_creds(self): creds_path = os.path.realpath(__file__) path = "/provision/roles/rackspace/vars" creds_path = "/".join(creds_path.split("/")[0:-2]) + path rax_creds = [] output = True creds_path = os.walk(creds_path) for path, _, creds in creds_path: for f in creds: if f.split(".")[-1] == "yml" or f.split(".")[-1] == "yaml": rax_creds.append(path+"/"+f) output = cred_utils.validate_creds(path+"/" + f, "rax") assert_equal(output, True) assert_equal(output, True)