def _ent_content_remote(self, gpg):
     content = self._content()
     content.gpg = gpg
     cert = self._cert()
     ent_cert_content = EntitlementCertContent.from_cert_content(content, cert)
     remote = model.OstreeRemote.from_ent_cert_content(ent_cert_content)
     return remote
 def test_gpg_no_attr(self):
     content = self._content()
     cert = self._cert()
     ent_cert_content = EntitlementCertContent.from_cert_content(content, cert)
     del ent_cert_content.gpg
     remote = model.OstreeRemote.from_ent_cert_content(ent_cert_content)
     self.assertTrue(remote.gpg_verify)
Пример #3
0
 def _ent_content_remote(self, gpg):
     content = self._content()
     content.gpg = gpg
     cert = self._cert()
     ent_cert_content = EntitlementCertContent.from_cert_content(content, cert)
     remote = model.OstreeRemote.from_ent_cert_content(ent_cert_content)
     return remote
Пример #4
0
 def test_gpg_no_attr(self):
     content = self._content()
     cert = self._cert()
     ent_cert_content = EntitlementCertContent.from_cert_content(content, cert)
     del ent_cert_content.gpg
     remote = model.OstreeRemote.from_ent_cert_content(ent_cert_content)
     self.assertTrue(remote.gpg_verify)
 def create_content(self, content_type, name):
     """ Create dummy entitled content object. """
     content = certificate2.Content(content_type=content_type,
                                    name="mock_content_%s" % name,
                                    label=name,
                                    enabled=True,
                                    required_tags=[],
                                    gpg="path/to/gpg",
                                    url="http://mock.example.com/%s/" %
                                    name)
     return EntitlementCertContent.from_cert_content(content)
 def create_content(self, content_type, name):
     """ Create dummy entitled content object. """
     content = certificate2.Content(
         content_type=content_type,
         name="mock_content_%s" % name,
         label=name,
         enabled=True,
         required_tags=[],
         gpg="path/to/gpg",
         url="http://mock.example.com/%s/" % name)
     return EntitlementCertContent.from_cert_content(content)