Skip to content

Commit

Permalink
Rename TestBase classes
Browse files Browse the repository at this point in the history
  • Loading branch information
tammy-baylis-swi committed Feb 6, 2025
1 parent ec03327 commit 6ccd07e
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions tests/integration/legacy/test_base_sw_headers_attrs_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
#
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

from ..test_base_sw_headers_attrs import TestBaseSwHeadersAndAttributes
from ..test_base_sw_headers_attrs import TestBaseSw


class TestBaseSwHeadersAndAttributesLegacy(TestBaseSwHeadersAndAttributes):
class TestBaseSwLegacy(TestBaseSw):
"""
Base class for testing SolarWinds custom distro header propagation
and span attributes calculation from decision and headers,
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/legacy/test_scenario_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
from opentelemetry import trace as trace_api
from unittest import mock

from .test_base_sw_headers_attrs_legacy import TestBaseSwHeadersAndAttributesLegacy
from .test_base_sw_headers_attrs_legacy import TestBaseSwLegacy

class TestScenario1(TestBaseSwHeadersAndAttributesLegacy):
class TestScenario1(TestBaseSwLegacy):
"""
Test class for starting a new tracing decision with no input headers.
"""
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/legacy/test_scenario_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
from opentelemetry import trace as trace_api
from unittest import mock

from .test_base_sw_headers_attrs_legacy import TestBaseSwHeadersAndAttributesLegacy
from .test_base_sw_headers_attrs_legacy import TestBaseSwLegacy


class TestScenario4(TestBaseSwHeadersAndAttributesLegacy):
class TestScenario4(TestBaseSwLegacy):
"""
Test class for continuing tracing decision with input headers
for traceparent and tracestate.
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/legacy/test_scenario_8.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
from opentelemetry import trace as trace_api
from unittest import mock

from .test_base_sw_headers_attrs_legacy import TestBaseSwHeadersAndAttributesLegacy
from .test_base_sw_headers_attrs_legacy import TestBaseSwLegacy


class TestScenario8(TestBaseSwHeadersAndAttributesLegacy):
class TestScenario8(TestBaseSwLegacy):
"""
Test class for continuing tracing decision OR trigger tracing with input headers
for traceparent, tracestate, and trigger tracing.
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/legacy/test_signed_tt.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
from opentelemetry import trace as trace_api
from unittest import mock

from .test_base_sw_headers_attrs_legacy import TestBaseSwHeadersAndAttributesLegacy
from .test_base_sw_headers_attrs_legacy import TestBaseSwLegacy


class TestSignedWithOrWithoutTt(TestBaseSwHeadersAndAttributesLegacy):
class TestSignedWithOrWithoutTt(TestBaseSwLegacy):
"""
Test class for signed requests, with or without trigger tracing,
without traceparent nor tracestate headers.
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/legacy/test_unsigned_tt.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
from opentelemetry import trace as trace_api
from unittest import mock

from .test_base_sw_headers_attrs_legacy import TestBaseSwHeadersAndAttributesLegacy
from .test_base_sw_headers_attrs_legacy import TestBaseSwLegacy


class TestUnsignedWithOrWithoutTt(TestBaseSwHeadersAndAttributesLegacy):
class TestUnsignedWithOrWithoutTt(TestBaseSwLegacy):
"""
Test class for unsigned requests, with or without trigger tracing,
without traceparent nor tracestate headers.
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/legacy/test_xtraceoptions_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
from opentelemetry import trace as trace_api
from unittest import mock

from .test_base_sw_headers_attrs_legacy import TestBaseSwHeadersAndAttributesLegacy
from .test_base_sw_headers_attrs_legacy import TestBaseSwLegacy


class TestXtraceoptionsValidation(TestBaseSwHeadersAndAttributesLegacy):
class TestXtraceoptionsValidation(TestBaseSwLegacy):
"""
Test class for x-trace-options header validation as part of unsigned requests.
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_base_sw_headers_attrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

from .utils.exporter import InMemoryMetricExporter

class TestBaseSwHeadersAndAttributes(TestBase):
class TestBaseSw(TestBase):
"""
Base class for testing SolarWinds custom distro header propagation
and span attributes calculation from decision and headers.
Expand Down

0 comments on commit 6ccd07e

Please sign in to comment.