From 26e093b987372b55da7ca9632b376cf8ec507ff3 Mon Sep 17 00:00:00 2001 From: Paige Patton Date: Wed, 27 Nov 2024 16:09:20 -0500 Subject: [PATCH] formatting changes for runnig workflow comamnds locally Signed-off-by: Paige Patton --- src/krkn_lib/elastic/krkn_elastic.py | 4 ++-- src/krkn_lib/models/elastic/models.py | 12 ++++++------ .../telemetry/ocp/krkn_telemetry_openshift.py | 1 + src/krkn_lib/tests/test_krkn_elastic.py | 6 +----- src/krkn_lib/tests/test_version.py | 3 +-- 5 files changed, 11 insertions(+), 15 deletions(-) diff --git a/src/krkn_lib/elastic/krkn_elastic.py b/src/krkn_lib/elastic/krkn_elastic.py index a5771103..a3c939f1 100644 --- a/src/krkn_lib/elastic/krkn_elastic.py +++ b/src/krkn_lib/elastic/krkn_elastic.py @@ -2,17 +2,17 @@ import datetime import logging +import math import time -import math import urllib3 from elasticsearch import Elasticsearch, NotFoundError from elasticsearch_dsl import Search from krkn_lib.models.elastic.models import ( ElasticAlert, - ElasticMetric, ElasticChaosRunTelemetry, + ElasticMetric, ) from krkn_lib.models.telemetry import ChaosRunTelemetry from krkn_lib.utils.safe_logger import SafeLogger diff --git a/src/krkn_lib/models/elastic/models.py b/src/krkn_lib/models/elastic/models.py index cdc20c5a..49ac882e 100644 --- a/src/krkn_lib/models/elastic/models.py +++ b/src/krkn_lib/models/elastic/models.py @@ -1,15 +1,16 @@ +import datetime + from elasticsearch_dsl import ( - Keyword, - Text, Date, Document, Float, - Long, - Nested, InnerDoc, Integer, + Keyword, + Long, + Nested, + Text, ) -import datetime from krkn_lib.models.telemetry import ChaosRunTelemetry @@ -195,4 +196,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 - diff --git a/src/krkn_lib/telemetry/ocp/krkn_telemetry_openshift.py b/src/krkn_lib/telemetry/ocp/krkn_telemetry_openshift.py index c5fab51e..1b25b5a7 100644 --- a/src/krkn_lib/telemetry/ocp/krkn_telemetry_openshift.py +++ b/src/krkn_lib/telemetry/ocp/krkn_telemetry_openshift.py @@ -4,6 +4,7 @@ import os import threading from queue import Queue + from krkn_lib.models.telemetry import ChaosRunTelemetry from krkn_lib.ocp import KrknOpenshift from krkn_lib.telemetry.k8s import KrknTelemetryKubernetes diff --git a/src/krkn_lib/tests/test_krkn_elastic.py b/src/krkn_lib/tests/test_krkn_elastic.py index d9dd93c9..ca76e3ba 100644 --- a/src/krkn_lib/tests/test_krkn_elastic.py +++ b/src/krkn_lib/tests/test_krkn_elastic.py @@ -1,13 +1,9 @@ import datetime import time - import uuid from krkn_lib.elastic.krkn_elastic import KrknElastic -from krkn_lib.models.elastic.models import ( - ElasticAlert, - ElasticMetric, -) +from krkn_lib.models.elastic.models import ElasticAlert, ElasticMetric from krkn_lib.models.telemetry import ChaosRunTelemetry from krkn_lib.tests import BaseTest from krkn_lib.utils import SafeLogger diff --git a/src/krkn_lib/tests/test_version.py b/src/krkn_lib/tests/test_version.py index 3c8a2fcf..c85ec7cd 100644 --- a/src/krkn_lib/tests/test_version.py +++ b/src/krkn_lib/tests/test_version.py @@ -1,6 +1,5 @@ -from krkn_lib.version import __version__ - from krkn_lib.tests import BaseTest +from krkn_lib.version import __version__ class VersionTest(BaseTest):