Beispiel #1
0
    def setUp(self):
        self.coredev_repo = Repo.init(mkdtemp())
        PloneCoreBuildout.PLONE_COREDEV_LOCATION = (
            f'file://{self.coredev_repo.working_tree_dir}')

        self._commit(SOURCES, filename='sources.cfg')
        self._commit(CHECKOUTS, filename='checkouts.cfg')
        self.coredev_repo.create_head('4.3')
        self.coredev_repo.create_head('5.1')

        with NamedTemporaryFile(delete=False) as tmp_file:
            sources_pickle = tmp_file.name

        with NamedTemporaryFile(delete=False) as tmp_file:
            checkouts_pickle = tmp_file.name

        self.settings = {
            'plone_versions': '["5.1", "4.3", ]',
            'py3_versions': '["2.7", "3.6", ]',
            'github_users': '["mister-roboto", "jenkins-plone-org", ]',
            'roboto_url': 'http://jenkins.plone.org/roboto',
            'api_key': 'xyz1234mnop',
            'sources_file': sources_pickle,
            'checkouts_file': checkouts_pickle,
            'github_user': '******',
            'github_password': '******',
        }
        app = main({}, **self.settings)
        self.roboto = TestApp(app)
Beispiel #2
0
    def setUp(self):
        self.coredev_repo = Repo.init(mkdtemp())
        PloneCoreBuildout.PLONE_COREDEV_LOCATION = 'file://{0}'.format(
            self.coredev_repo.working_tree_dir,
        )

        self._commit(SOURCES, filename='sources.cfg')
        self._commit(CHECKOUTS, filename='checkouts.cfg')
        self.coredev_repo.create_head('4.3')
        self.coredev_repo.create_head('5.1')

        with NamedTemporaryFile(delete=False) as tmp_file:
            sources_pickle = tmp_file.name

        with NamedTemporaryFile(delete=False) as tmp_file:
            checkouts_pickle = tmp_file.name

        self.settings = {
            'plone_versions': '["5.1", "4.3", ]',
            'roboto_url': 'http://jenkins.plone.org/roboto',
            'api_key': 'xyz1234mnop',
            'sources_file': sources_pickle,
            'checkouts_file': checkouts_pickle,
            'github_user': '******',
            'github_password': '******',
        }
        app = main({}, **self.settings)
        self.roboto = TestApp(app)
Beispiel #3
0
 def setUp(self):
     self.settings = {
         'plone_versions': '["4.3",]',
         'roboto_url': 'http://jenkins.plone.org/roboto',
         'api_key': 'z',
         'sources_file': 'sources.pickle',
         'checkouts_file': 'checkouts.pickle',
         'github_user': '******',
         'github_password': '******',
     }
     app = main({}, **self.settings)
     self.roboto = TestApp(app)
Beispiel #4
0
 def setUp(self):
     settings = {
         'plone_versions': '["4.3", "5.1"]',
         'roboto_url': 'http://mr.roboto.plone.org',
         'api_key': '1234567890',
         'sources_file': 'sources.pickle',
         'checkouts_file': 'checkouts.pickle',
         'github_user': '******',
         'github_password': '******',
         'debug': 'True',
     }
     app = main({}, **settings)
     self.roboto = TestApp(app)
     self.settings = self.roboto.app.registry.settings
Beispiel #5
0
 def test_no_debug(self):
     settings = {
         'plone_versions': '["4.3", "5.1"]',
         'roboto_url': 'x',
         'api_key': 'x',
         'sources_file': 'x',
         'checkouts_file': 'x',
         'github_user': '******',
         'github_password': '******',
     }
     app = main({}, **settings)
     roboto = TestApp(app)
     settings = roboto.app.registry.settings
     self.assertFalse(settings['debug'])
Beispiel #6
0
 def setUp(self):
     self.settings = {
         'plone_versions': '["4.3",]',
         'py3_versions': '["2.7", "3.6", ]',
         'github_users': '["mister-roboto", "jenkins-plone-org", ]',
         'roboto_url': 'http://jenkins.plone.org/roboto',
         'api_key': 'z',
         'sources_file': 'sources.pickle',
         'checkouts_file': 'checkouts.pickle',
         'github_user': '******',
         'github_password': '******',
     }
     app = main({}, **self.settings)
     self.roboto = TestApp(app)
Beispiel #7
0
 def setUp(self):
     settings = {
         'plone_versions': '["4.3", "5.1"]',
         'py3_versions': '["2.7", "3.6", ]',
         'github_users': '["mister-roboto", "jenkins-plone-org", ]',
         'roboto_url': 'http://mr.roboto.plone.org',
         'api_key': '1234567890',
         'sources_file': 'sources.pickle',
         'checkouts_file': 'checkouts.pickle',
         'github_user': '******',
         'github_password': '******',
         'debug': 'True',
     }
     app = main({}, **settings)
     self.roboto = TestApp(app)
     self.settings = self.roboto.app.registry.settings
Beispiel #8
0
 def test_no_debug(self):
     settings = {
         'plone_versions': '["4.3", "5.1"]',
         'py3_versions': '["2.7", "3.6", ]',
         'github_users': '["mister-roboto", "jenkins-plone-org", ]',
         'roboto_url': 'x',
         'api_key': 'x',
         'sources_file': 'x',
         'checkouts_file': 'x',
         'github_user': '******',
         'github_password': '******',
     }
     app = main({}, **settings)
     roboto = TestApp(app)
     settings = roboto.app.registry.settings
     self.assertFalse(settings['debug'])