Example #1
0
 def test_project5(self):
     """test project validation"""
     RemoteProject.SCHEMA = self.fixture_file('project_simple.xsd')
     RemoteProject.PUT_RESPONSE_SCHEMA = self.fixture_file('ok_simple.xsd')
     prj = RemoteProject('test')
     prj.add_person(userid='bar', role='maintainer')
     prj.store()
Example #2
0
 def test_project5(self):
     """test project validation"""
     RemoteProject.SCHEMA = self.fixture_file('project_simple.xsd')
     RemoteProject.PUT_RESPONSE_SCHEMA = self.fixture_file('ok_simple.xsd')
     prj = RemoteProject('test')
     prj.add_person(userid='bar', role='maintainer')
     prj.store()
Example #3
0
 def test_project2(self):
     """create a remote project"""
     prj = RemoteProject(name='foo')
     prj.title = 'just a dummy title'
     prj.description = ('This is a detailed and more lengthy\ndescription'
                        ' of the foo\nproject.')
     prj.add_person(userid='testuser', role='maintainer')
     prj.add_person(userid='foobar', role='bugowner')
     repo = prj.add_repository(name='openSUSE_Factory')
     repo.add_path(project='openSUSE:Factory', repository='standard')
     repo.add_arch('x86_64')
     repo.add_arch('i586')
     prj.store()
Example #4
0
 def test_project2(self):
     """create a remote project"""
     prj = RemoteProject(name='foo')
     prj.title = 'just a dummy title'
     prj.description = ('This is a detailed and more lengthy\ndescription'
                        ' of the foo\nproject.')
     prj.add_person(userid='testuser', role='maintainer')
     prj.add_person(userid='foobar', role='bugowner')
     repo = prj.add_repository(name='openSUSE_Factory')
     repo.add_path(project='openSUSE:Factory', repository='standard')
     repo.add_arch('x86_64')
     repo.add_arch('i586')
     prj.store()