# Path: armada/tests/unit/base.py
# CONF = cfg.CONF
# class ArmadaTestCase(testtools.TestCase):
#     def setUp(self):
#     def override_config(self, name, override, group=None):
#     def assertEmpty(self, collection):
#     def patch(self, target, autospec=True, **kwargs):
#     def patchobject(self, target, attribute, new=mock.DEFAULT, autospec=True):
# 
# Path: armada/utils/validate.py
# LOG = logging.getLogger(__name__)
# SCHEMAS = {}
# def _get_schema_dir():
# def _load_schemas():
# def _validate_armada_manifest(manifest):
# def validate_armada_manifests(documents):
# def validate_armada_document(document):
# def validate_armada_documents(documents):
# def validate_manifest_url(value):
# def validate_manifest_filepath(value):


import os
import yaml
from armada.tests.unit import base
from armada.utils import validate

        chart_group = yaml.safe_load_all(test_chart_group)
        is_valid, error = validate.validate_armada_documents(list(chart_group))

        self.assertTrue(is_valid)

    def test_validate_group_passes(self):
        chart_group = yaml.safe_load(template_chart_group)
        is_valid, error = validate.validate_armada_document(chart_group)

        self.assertTrue(is_valid)

    def test_validate_chart_passes(self):
        chart = yaml.safe_load(template_chart)
        is_valid, error = validate.validate_armada_document(chart)

        self.assertTrue(is_valid)

    def test_validate_manifest_url(self):
        value = 'url'
        self.assertFalse(validate.validate_manifest_url(value))
        value = 'https://raw.githubusercontent.com/att-comdev/' \
                'armada/master/examples/simple.yaml'
        self.assertTrue(validate.validate_manifest_url(value))

    def test_validate_manifest_filepath(self):
        value = 'filepath'
        self.assertFalse(validate.validate_manifest_filepath(value))
        value = '{}/resources/valid_armada_document.yaml'.format(
            self.basepath)

# Path: armada/tests/unit/base.py
# CONF = cfg.CONF
# class ArmadaTestCase(testtools.TestCase):
#     def setUp(self):
#     def override_config(self, name, override, group=None):
#     def assertEmpty(self, collection):
#     def patch(self, target, autospec=True, **kwargs):
#     def patchobject(self, target, attribute, new=mock.DEFAULT, autospec=True):
# 
# Path: armada/utils/validate.py
# LOG = logging.getLogger(__name__)
# SCHEMAS = {}
# def _get_schema_dir():
# def _load_schemas():
# def _validate_armada_manifest(manifest):
# def validate_armada_manifests(documents):
# def validate_armada_document(document):
# def validate_armada_documents(documents):
# def validate_manifest_url(value):
# def validate_manifest_filepath(value):


# Path: armada/tests/unit/utils/test_validate.py
import os
import yaml
from armada.tests.unit import base
from armada.utils import validate


        chart_group = yaml.safe_load_all(test_chart_group)
        is_valid, error = validate.validate_armada_documents(list(chart_group))

        self.assertTrue(is_valid)

    def test_validate_group_passes(self):
        chart_group = yaml.safe_load(template_chart_group)
        is_valid, error = validate.validate_armada_document(chart_group)

        self.assertTrue(is_valid)

    def test_validate_chart_passes(self):
        chart = yaml.safe_load(template_chart)
        is_valid, error = validate.validate_armada_document(chart)

        self.assertTrue(is_valid)

    def test_validate_manifest_url(self):
        value = 'url'
        self.assertFalse(validate.validate_manifest_url(value))
        value = 'https://raw.githubusercontent.com/att-comdev/' \
                'armada/master/examples/simple.yaml'
        self.assertTrue(validate.validate_manifest_url(value))

    def test_validate_manifest_filepath(self):
        value = 'filepath'
        self.assertFalse(validate.validate_manifest_filepath(value))
        value = '{}/resources/valid_armada_document.yaml'.format(
            self.basepath)

        self.assertTrue(validate.validate_manifest_filepath(value))