def get_interfaces(self):
    readied_yaml = file_reader(self.yaml_file)
    loaded_yaml = yaml_loader(readied_yaml)
    if ('test' in loaded_yaml):
        test_yaml = loaded_yaml['test']
        configurations_yaml = self.test(test_yaml)
        for configuration_yaml in configurations_yaml:
            artifact_json = join(configuration_yaml['artifact_path'], configuration_yaml['artifact'])
            readied_artifact_json = file_reader(artifact_json)
            loaded_artifact_json = json_loader(readied_artifact_json)
            if (configuration_yaml['links'] is None):
                self.test_with_out_link(loaded_artifact_json)
            else:
                self.test_with_link(loaded_artifact_json, configuration_yaml['links'])
        return self.contracts
    else:
        console_log('test in cobra.yaml', 'error', 'NotFound')
        sys.exit()
def get_interfaces(self):
    readied_yaml = file_reader(self.yaml_file)
    loaded_yaml = yaml_loader(readied_yaml)
    if ('test' in loaded_yaml):
        test_yaml = loaded_yaml['test']
        configurations_yaml = self.test(test_yaml)
        for configuration_yaml in configurations_yaml:
            artifact_json = join(configuration_yaml['artifact_path'], configuration_yaml['artifact'])
            readied_artifact_json = file_reader(artifact_json)
            loaded_artifact_json = json_loader(readied_artifact_json)
            if (configuration_yaml['links'] is None):
                self.test_with_out_link(loaded_artifact_json)
            else:
                self.test_with_link(loaded_artifact_json, configuration_yaml['links'])
        return self.contracts
    else:
        console_log('test in cobra.yaml', 'error', 'NotFound')
        sys.exit()