Beispiel #1
0
 def get_ssl_certificate_update_flow(self):
     update_ssl_cert_flow = linear_flow.Flow(
         a10constants.DELETE_SSL_CERT_FLOW)
     update_ssl_cert_flow.add(cert_tasks.GetSSLCertData(
         requires=[constants.LOADBALANCER, constants.LISTENER],
         provides=a10constants.CERT_DATA))
     update_ssl_cert_flow.add(cert_tasks.SSLCertUpdate(
         requires=[a10constants.CERT_DATA, a10constants.VTHUNDER]))
     update_ssl_cert_flow.add(cert_tasks.SSLKeyUpdate(
         requires=[a10constants.CERT_DATA, a10constants.VTHUNDER]))
     update_ssl_cert_flow.add(cert_tasks.ClientSSLTemplateUpdate(
         requires=[a10constants.CERT_DATA, a10constants.VTHUNDER]))
     return update_ssl_cert_flow
Beispiel #2
0
 def get_ssl_certificate_create_flow(self):
     create_ssl_cert_flow = linear_flow.Flow(
         a10constants.CREATE_SSL_CERT_FLOW)
     create_ssl_cert_flow.add(cert_tasks.GetSSLCertData(
         requires=[constants.LOADBALANCER, constants.LISTENER],
         provides=a10constants.CERT_DATA))
     create_ssl_cert_flow.add(cert_tasks.SSLCertCreate(
         requires=[a10constants.CERT_DATA, a10constants.VTHUNDER]))
     create_ssl_cert_flow.add(cert_tasks.SSLKeyCreate(
         requires=[a10constants.CERT_DATA, a10constants.VTHUNDER]))
     create_ssl_cert_flow.add(cert_tasks.ClientSSLTemplateCreate(
         requires=[a10constants.CERT_DATA, a10constants.VTHUNDER]))
     return create_ssl_cert_flow
Beispiel #3
0
 def get_ssl_certificate_delete_flow(self, listener):
     delete_ssl_cert_flow = linear_flow.Flow(
         a10constants.DELETE_SSL_CERT_FLOW)
     delete_ssl_cert_flow.add(cert_tasks.GetSSLCertData(
         name='get_ssl_cert_data_' + listener,
         requires=[constants.LOADBALANCER, constants.LISTENER],
         rebind={constants.LISTENER: listener},
         provides=a10constants.CERT_DATA))
     delete_ssl_cert_flow.add(cert_tasks.ClientSSLTemplateDelete(
         name='client_ssl_template_delete_' + listener,
         requires=[a10constants.CERT_DATA, a10constants.VTHUNDER]))
     delete_ssl_cert_flow.add(cert_tasks.SSLCertDelete(
         name='ssl_cert_delete_' + listener,
         requires=[a10constants.CERT_DATA, a10constants.VTHUNDER]))
     delete_ssl_cert_flow.add(cert_tasks.SSLKeyDelete(
         name='ssl_key_delete_' + listener,
         requires=[a10constants.CERT_DATA, a10constants.VTHUNDER]))
     return delete_ssl_cert_flow
Beispiel #4
0
 def test_GetSSLCertData_success(self, barbican_class, cert_data):
     mock_ssl_cert = cert_tasks.GetSSLCertData()
     out = mock_ssl_cert.execute(LB, LISTENER)
     self.assertEqual(out, CERT_DATA)