Пример #1
0
    def test_generate_hot_manifest_with_all_parameters(self):
        args = TestArgs()
        args.template = TEMPLATE
        args.name = 'test_name'
        args.author = 'TestAuthor'
        args.full_name = 'test.full.name.TestName'
        args.tags = ['test', 'tag', 'Heat']
        args.description = 'Test description'

        expected_manifest = {
            'Format': 'Heat.HOT/1.0',
            'Type': 'Application',
            'FullName': 'test.full.name.TestName',
            'Name': 'test_name',
            'Description': 'Test description',
            'Author': 'TestAuthor',
            'Tags': ['test', 'tag', 'Heat']
        }
        result_manifest = hot_package.generate_manifest(args)
        self.check_dict_is_subset(expected_manifest, result_manifest)
Пример #2
0
    def test_generate_hot_manifest_with_all_parameters(self):
        args = TestArgs()
        args.template = TEMPLATE
        args.name = 'test_name'
        args.author = 'TestAuthor'
        args.full_name = 'test.full.name.TestName'
        args.tags = ['test', 'tag', 'Heat']
        args.description = 'Test description'

        expected_manifest = {
            'Format': 'Heat.HOT/1.0',
            'Type': 'Application',
            'FullName': 'test.full.name.TestName',
            'Name': 'test_name',
            'Description': 'Test description',
            'Author': 'TestAuthor',
            'Tags': ['test', 'tag', 'Heat']
        }
        result_manifest = hot_package.generate_manifest(args)
        self.check_dict_is_subset(expected_manifest, result_manifest)
Пример #3
0
 def test_generate_hot_manifest(self):
     args = TestArgs()
     args.template = TEMPLATE
     args.name = 'test_name'
     args.author = 'TestAuthor'
     args.full_name = None
     args.tags = None
     args.description = None
     expected_manifest = {
         'Format': 'Heat.HOT/1.0',
         'Type': 'Application',
         'FullName': 'io.murano.apps.generated.TestName',
         'Name': 'test_name',
         'Description': 'Heat-defined application '
                        'for a template "heat-template.yaml"',
         'Author': 'TestAuthor',
         'Tags': ['Heat-generated']
     }
     result_manifest = hot_package.generate_manifest(args)
     self.check_dict_is_subset(expected_manifest, result_manifest)
Пример #4
0
 def test_generate_hot_manifest(self):
     args = TestArgs()
     args.template = TEMPLATE
     args.name = 'test_name'
     args.author = 'TestAuthor'
     args.full_name = None
     args.tags = None
     args.description = None
     expected_manifest = {
         'Format': 'Heat.HOT/1.0',
         'Type': 'Application',
         'FullName': 'io.murano.apps.generated.TestName',
         'Name': 'test_name',
         'Description': 'Heat-defined application '
                        'for a template "heat-template.yaml"',
         'Author': 'TestAuthor',
         'Tags': ['Heat-generated']
     }
     result_manifest = hot_package.generate_manifest(args)
     self.check_dict_is_subset(expected_manifest, result_manifest)