Beispiel #1
0
 def validate_fingerprint_for_build(self, digest, filename, job, build):
     obj_fingerprint = Fingerprint(self.baseurl, digest, jenkins_obj=self)
     return obj_fingerprint.validate_for_build(filename, job, build)
Beispiel #2
0
 def validate_fingerprint(self, id_):
     obj_fingerprint = Fingerprint(self.baseurl, id_, jenkins_obj=self)
     obj_fingerprint.validate()
     log.info(msg="Jenkins says %s is valid" % id_)
Beispiel #3
0
 def get_artifact_data(self, id):
     obj_fingerprint = Fingerprint(self.baseurl, id, jenkins_obj=self)
     obj_fingerprint.validate()
     return obj_fingerprint.get_info()
Beispiel #4
0
 def test_object_creation(self, _poll, _basepoll):
     J = Jenkins(self.baseurl, username='******', password='******')
     self.fp_instance = Fingerprint(self.baseurl, self.dummy_md5, J)
     self.assertTrue(isinstance(self.fp_instance, Fingerprint))
     self.assertEquals(str(self.fp_instance), self.dummy_md5)
     self.assertTrue(self.fp_instance.valid())