def setUp(self):
        conf = parse(XML)
        self.submit_dir = conf.get_submit_dir()
        self.stage_dir = conf.get_stage_dir()
        self.monitor_dir = conf.get_monitor_dir()
        self.log_dir = conf.get_log_dir()
        self.client_log_dirs = conf.get_client_log_dirs()
        self.client_proxy_dirs = conf.get_client_proxy_dirs()

        self.conf = conf
        self.md = glideinMainDicts(self.submit_dir,
                                   self.stage_dir,
                                   'another-work-dir',
                                   self.log_dir,
                                   self.client_log_dirs,
                                   self.client_proxy_dirs)
        self.entries = conf.get_entries()
        self.edicts = {}
        for entry in self.entries:
            nm = entry.getName()
            dir_nm = 'entry_' + nm
            ed  = glideinEntryDicts(self.submit_dir,
                                    self.stage_dir,
                                    nm,
                                    self.md.get_summary_signature(),
                                    dir_nm,
                                    self.log_dir,
                                    self.client_log_dirs,
                                    self.client_proxy_dirs)
            self.assertTrue(isinstance(ed, glideinEntryDicts))
            self.edicts[nm] = ed
    def setUp(self):
        conf = parse(XML)
        self.submit_dir = conf.get_submit_dir()
        self.stage_dir = conf.get_stage_dir()
        self.monitor_dir = conf.get_monitor_dir()
        self.log_dir = conf.get_log_dir()
        self.client_log_dirs = conf.get_client_log_dirs()
        self.client_proxy_dirs = conf.get_client_proxy_dirs()

        self.conf = conf
        self.md = glideinMainDicts(self.submit_dir,
                                   self.stage_dir,
                                   'another-work-dir',
                                   self.log_dir,
                                   self.client_log_dirs,
                                   self.client_proxy_dirs)
        self.entries = conf.get_entries()
        self.edicts = {}
        for entry in self.entries:
            nm = entry.getName()
            dir_nm = 'entry_' + nm
            ed  = glideinEntryDicts(self.submit_dir,
                                    self.stage_dir,
                                    nm,
                                    self.md.get_summary_signature(),
                                    dir_nm,
                                    self.log_dir,
                                    self.client_log_dirs,
                                    self.client_proxy_dirs)
            self.assertTrue(isinstance(ed, glideinEntryDicts))
            self.edicts[nm] = ed
Esempio n. 3
0
    def test_reuse_nocheck(self):
        ent = 'TEST_SITE_3'
        other = glideinEntryDicts(self.submit_dir, self.stage_dir, ent,
                                  self.md.get_summary_signature(),
                                  'another-work-dir', self.log_dir,
                                  self.client_log_dirs, self.client_proxy_dirs)

        for nm in self.edicts:
            self.edicts[nm].reuse_nocheck(other)
    def test_reuse_nocheck(self):
        ent = 'TEST_SITE_3'
        other = glideinEntryDicts(self.submit_dir,
                                  self.stage_dir,
                                  ent,
                                  self.md.get_summary_signature(),
                                  'another-work-dir',
                                  self.log_dir,
                                  self.client_log_dirs,
                                  self.client_proxy_dirs)

        for nm in self.edicts:
            self.edicts[nm].reuse_nocheck(other)
Esempio n. 5
0
    def test_reuse(self):
        ent = 'TEST_SITE_3'
        other = glideinEntryDicts(self.submit_dir, self.stage_dir, ent,
                                  self.md.get_summary_signature(),
                                  'another-work-dir', self.log_dir,
                                  self.client_log_dirs, self.client_proxy_dirs)

        for nm in self.edicts:
            try:
                self.edicts[nm].reuse(other)
            except RuntimeError as e:
                if nm != ent:
                    pass
                else:
                    raise
    def test_reuse(self):
        ent = 'TEST_SITE_3'
        other = glideinEntryDicts(self.submit_dir,
                                  self.stage_dir,
                                  ent,
                                  self.md.get_summary_signature(),
                                  'another-work-dir',
                                  self.log_dir,
                                  self.client_log_dirs,
                                  self.client_proxy_dirs)

        for nm in self.edicts:
            try:
                self.edicts[nm].reuse(other)
            except RuntimeError as e:
                if nm != ent:
                    pass
                else:
                    raise