Exemplo n.º 1
0
 def test_build_package_long_description(self):
     package_data = dict(name='test',
                         version='0.01',
                         long_description='test package',
                         license='public-domain')
     expected_file = self.get_test_loc(
         'chef/basic/test_package.json.expected')
     self.check_package(chef.build_package(package_data),
                        expected_file,
                        regen=False)
Exemplo n.º 2
0
 def test_build_package_dependencies(self):
     package_data = OrderedDict(name='test',
                                version='0.01',
                                long_description='test package',
                                license='public-domain',
                                dependencies={'test dependency': '0.01'})
     expected_file = self.get_test_loc(
         'chef/basic/test_package_dependencies.json.expected')
     self.check_package(chef.build_package(package_data),
                        expected_file,
                        regen=False)
Exemplo n.º 3
0
 def test_build_package_code_view_url_and_bug_tracking_url(self):
     package_data = dict(name='test',
                         version='0.01',
                         long_description='test package',
                         license='public-domain',
                         source_url='example.com',
                         issues_url='example.com/issues')
     expected_file = self.get_test_loc(
         'chef/basic/test_package_code_view_url_and_bug_tracking_url.json.expected'
     )
     self.check_package(chef.build_package(package_data),
                        expected_file,
                        regen=False)
Exemplo n.º 4
0
 def test_build_package_parties(self):
     package_data = dict(
         name='test',
         version='0.01',
         long_description='test package',
         license='public-domain',
         maintainer='test maintainer',
         maintainer_email='*****@*****.**',
     )
     expected_file = self.get_test_loc(
         'chef/basic/test_package_parties.json.expected')
     self.check_package(chef.build_package(package_data),
                        expected_file,
                        regen=False)
Exemplo n.º 5
0
 def test_build_package_long_description(self):
     package_data = dict(
         type='chef',
         name='test',
         version='0.01',
         long_description='test package',
         license='public-domain',
     )
     expected_file = self.get_test_loc(
         'chef/basic/test_package.json.expected')
     self.check_packages_data(
         chef.build_package(package_data,
                            datasource_id='chef_cookbook_metadata_rb'),
         expected_file,
         regen=REGEN_TEST_FIXTURES,
     )
Exemplo n.º 6
0
 def test_build_package_code_view_url_and_bug_tracking_url(self):
     package_data = dict(
         type='chef',
         name='test',
         version='0.01',
         long_description='test package',
         license='public-domain',
         source_url='example.com',
         issues_url='example.com/issues',
     )
     expected_file = self.get_test_loc(
         'chef/basic/test_package_code_view_url_and_bug_tracking_url.json.expected'
     )
     self.check_packages_data(
         chef.build_package(package_data,
                            datasource_id='chef_cookbook_metadata_rb'),
         expected_file,
         regen=REGEN_TEST_FIXTURES,
     )