

@skipUnless(which(b'flocker-ca'), b'flocker-ca not installed (FLOC-2600)')
def test_generated(self):
    '\n        ``Certificates.generate`` generates a certificate authority\n        certificate, a control service certificate, a user certificate, and the\n        given number of node certificates.\n        '
    output = FilePath(self.mktemp())
    output.makedirs()
    Certificates.generate(output, b'some-service', 2, b'test-cluster')
    self.assertEqual({output.child(b'cluster.crt'), output.child(b'cluster.key'), output.child(b'control-some-service.crt'), output.child(b'control-some-service.key'), output.child(b'user.crt'), output.child(b'user.key'), output.child(b'node-0.crt'), output.child(b'node-0.key'), output.child(b'node-1.crt'), output.child(b'node-1.key')}, set(output.children()))

dataset/ETHPy150Open ClusterHQ/flocker/flocker/provision/test/test_ca.py CertificatesGenerateTests.test_generated/original