# 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
            'armada/Chart/v1',
            'armada/ChartGroup/v1',
            'armada/Manifest/v1'
        ]
        for expected_schema in expected_schemas:
            self.assertIn(expected_schema, validate.SCHEMAS)

    def test_validate_armada_yaml_passes(self):
        template = '{}/resources/valid_armada_document.yaml'.format(
            self.basepath)

        with open(template) as f:
            documents = yaml.safe_load_all(f.read())
        valid, details = validate.validate_armada_documents(list(documents))

        self.assertTrue(valid)

    def test_validate_manifest_passes(self):
        manifest = yaml.safe_load(template_manifest)
        is_valid, error = validate.validate_armada_document(manifest)

        self.assertTrue(is_valid)

    def test_validate_chart_group_with_values(self):
        test_chart_group = """
---
schema: armada/ChartGroup/v1
metadata:
    name: kubernetes-proxy
    schema: metadata/Document/v1

# 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

            'armada/Chart/v1',
            'armada/ChartGroup/v1',
            'armada/Manifest/v1'
        ]
        for expected_schema in expected_schemas:
            self.assertIn(expected_schema, validate.SCHEMAS)

    def test_validate_armada_yaml_passes(self):
        template = '{}/resources/valid_armada_document.yaml'.format(
            self.basepath)

        with open(template) as f:
            documents = yaml.safe_load_all(f.read())
        valid, details = validate.validate_armada_documents(list(documents))

        self.assertTrue(valid)

    def test_validate_manifest_passes(self):
        manifest = yaml.safe_load(template_manifest)
        is_valid, error = validate.validate_armada_document(manifest)

        self.assertTrue(is_valid)

    def test_validate_chart_group_with_values(self):
        test_chart_group = """
---
schema: armada/ChartGroup/v1
metadata:
    name: kubernetes-proxy
    schema: metadata/Document/v1

data: