Skip to content

Commit

Permalink
tests refactoring
Browse files Browse the repository at this point in the history
fixes

tests refactoring

linting

test
  • Loading branch information
tsebastiani authored and paigerube14 committed Dec 10, 2024
1 parent 83b85aa commit c8bc4e8
Show file tree
Hide file tree
Showing 11 changed files with 1,567 additions and 1,486 deletions.
14 changes: 7 additions & 7 deletions src/krkn_lib/k8s/krkn_kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def __initialize_clients(self, kubeconfig_path: str = None):

client_config = client.Configuration().get_default_copy()
http_proxy = os.getenv("http_proxy", None)
if http_proxy is not None:
if http_proxy is not None:
os.environ["HTTP_PROXY"] = http_proxy
client_config.proxy = http_proxy
proxy_auth = urlparse(http_proxy)
Expand All @@ -159,18 +159,18 @@ def __initialize_clients(self, kubeconfig_path: str = None):
proxy_basic_auth=auth_string
)
# if http_proxy and "@" in http_proxy:

# # client_config.username = proxy_auth.username
# # client_config.password = proxy_auth.password
#
print('set default')
#

print("set default")
# config.load_kube_config(
# kubeconfig_path
# )
client.Configuration.set_default(client_config)
print('load config')
print("load config")

self.api_client = client.ApiClient(client_config)

self.cli = client.CoreV1Api(self.api_client)
Expand Down
1 change: 0 additions & 1 deletion src/krkn_lib/models/elastic/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,3 @@ def __init__(
self.cloud_type = chaos_run_telemetry.cloud_type
self.cluster_version = chaos_run_telemetry.cluster_version
self.run_uuid = chaos_run_telemetry.run_uuid

Loading

0 comments on commit c8bc4e8

Please sign in to comment.