Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/c/l/cloudbase-init-HEAD/cloudbaseinit/utils/windows/x509.py   cloudbase-init(Download)
    def _get_cert_base64(self, cert_data):
        base64_cert_data = cert_data
        if base64_cert_data.startswith(x509constants.PEM_HEADER):
            base64_cert_data = base64_cert_data[len(x509constants.PEM_HEADER):]
        if base64_cert_data.endswith(x509constants.PEM_FOOTER):

src/c/l/cloudbase-init-HEAD/cloudbaseinit/metadata/services/baseopenstackservice.py   cloudbase-init(Download)
            try:
                user_data = self.get_user_data()
                if user_data.startswith(x509constants.PEM_HEADER):
                    cert_data = user_data
            except base.NotExistingMetadataException:

src/c/l/cloudbase-init-HEAD/cloudbaseinit/tests/utils/windows/test_x509.py   cloudbase-init(Download)
    def test_get_cert_base64(self):
        fake_cert_data = ''
        fake_cert_data += x509constants.PEM_HEADER + '\n'
        fake_cert_data += 'fake cert' + '\n'
        fake_cert_data += x509constants.PEM_FOOTER
                          upn_len):
        fake_cert_data = ''
        fake_cert_data += x509constants.PEM_HEADER + '\n'
        fake_cert_data += 'fake cert' + '\n'
        fake_cert_data += x509constants.PEM_FOOTER

src/c/l/cloudbase-init-HEAD/cloudbaseinit/tests/metadata/services/test_baseopenstackservice.py   cloudbase-init(Download)
            self.assertEqual(response, ['fake cert'])
        elif type(ret_value) is str and ret_value.startswith(
                x509constants.PEM_HEADER):
            mock_get_user_data.assert_called_once_with()
            self.assertEqual(response, [ret_value])
    def test_get_client_auth_certs_no_cert_data(self):
        self._test_get_client_auth_certs(
            meta_data={}, ret_value=x509constants.PEM_HEADER)
 
    def test_get_client_auth_certs_no_cert_data_exception(self):