def test_redacts_sensitive_headers(self, key): message = [] sensitive_value = "super sensitive data that should not be exposed" Client._add_headers(message, {key: sensitive_value}, "") text = "".join(message) assert sensitive_value not in text
def client(self): return Client()
def k8s_client(self, kubernetes): Client.clear_session() config.api_server = kubernetes["host-to-container-server"] config.debug = True config.verify_ssl = False config.cert = (kubernetes["client-cert"], kubernetes["client-key"])