Exemplo n.º 1
0
    def setUp(self):
        super(TestSubprocessRun, self).setUp()

        with open('hello.txt', 'w') as f:
            f.write('Hello, world!\n')

        https_sock, _ = reserve_port_for_ip('127.0.0.1', 9443)
        self.https_socks = [https_sock]
        ssl._https_verify_certificates(enable=False)
        yield test_tls.commit_valid_config()
Exemplo n.º 2
0
    def setUp(self):
        super(TestSubprocessRun, self).setUp()

        with open('hello.txt', 'w') as f:
            f.write('Hello, world!\n')

        https_sock, _ = reserve_port_for_ip('127.0.0.1', 9443)
        self.https_socks = [https_sock]
        ssl._create_default_https_context = ssl._create_unverified_context

        yield test_tls.commit_valid_config()
Exemplo n.º 3
0
    def setUp(self):
        super(TestSubprocessRun, self).setUp()

        with open('hello.txt', 'w') as f:
            f.write('Hello, world!\n')

        https_sock, _ = reserve_port_for_ip('127.0.0.1', 9443)
        self.https_socks = [https_sock]
        ssl._create_default_https_context = ssl._create_unverified_context

        yield test_tls.commit_valid_config()
Exemplo n.º 4
0
 def setUp(self):
     super(TestProcessSupervisor, self).setUp()
     yield test_tls.commit_valid_config()
Exemplo n.º 5
0
 def setUp(self):
     super(TestProcessSupervisor, self).setUp()
     return test_tls.commit_valid_config()