From 3317ba1c9ed5131446fa10a3145e9e00f09538d7 Mon Sep 17 00:00:00 2001 From: Sumit Kashyap Date: Wed, 10 Aug 2022 18:10:15 +0530 Subject: [PATCH] Restructure contrib directory --- tests/Unit/Contrib/{ => Jaeger}/AgentExporterTest.php | 2 +- tests/Unit/Contrib/{ => Jaeger}/IdConverterTest.php | 2 +- tests/Unit/Contrib/{ => Jaeger}/JaegerExporterTest.php | 2 +- .../Contrib/{ => Jaeger}/JaegerHttpCollectorExporterTest.php | 2 +- tests/Unit/Contrib/{ => Jaeger}/JaegerHttpSenderTest.php | 2 +- tests/Unit/Contrib/{ => Jaeger}/JaegerSpanConverterTest.php | 2 +- tests/Unit/Contrib/{ => Newrelic}/NewrelicExporterTest.php | 2 +- tests/Unit/Contrib/{ => Newrelic}/NewrelicSpanConverterTest.php | 2 +- tests/Unit/Contrib/{ => Otlp}/OTLPSpanConverterTest.php | 2 +- tests/Unit/Contrib/{ => OtlpGrpc}/OTLPGrpcExporterTest.php | 2 +- tests/Unit/Contrib/{ => OtlpHttp}/OTLPHttpExporterTest.php | 2 +- tests/Unit/Contrib/{ => Prometheus}/PrometheusExporterTest.php | 2 +- tests/Unit/Contrib/{ => Zipkin}/ZipkinExporterTest.php | 2 +- tests/Unit/Contrib/{ => Zipkin}/ZipkinSpanConverterTest.php | 2 +- .../{ => ZipkinToNewrelic}/ZipkinToNewrelicExporterTest.php | 2 +- .../ZipkinToNewrelicSpanConverterTest.php | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) rename tests/Unit/Contrib/{ => Jaeger}/AgentExporterTest.php (94%) rename tests/Unit/Contrib/{ => Jaeger}/IdConverterTest.php (97%) rename tests/Unit/Contrib/{ => Jaeger}/JaegerExporterTest.php (93%) rename tests/Unit/Contrib/{ => Jaeger}/JaegerHttpCollectorExporterTest.php (96%) rename tests/Unit/Contrib/{ => Jaeger}/JaegerHttpSenderTest.php (99%) rename tests/Unit/Contrib/{ => Jaeger}/JaegerSpanConverterTest.php (99%) rename tests/Unit/Contrib/{ => Newrelic}/NewrelicExporterTest.php (93%) rename tests/Unit/Contrib/{ => Newrelic}/NewrelicSpanConverterTest.php (98%) rename tests/Unit/Contrib/{ => Otlp}/OTLPSpanConverterTest.php (99%) rename tests/Unit/Contrib/{ => OtlpGrpc}/OTLPGrpcExporterTest.php (99%) rename tests/Unit/Contrib/{ => OtlpHttp}/OTLPHttpExporterTest.php (99%) rename tests/Unit/Contrib/{ => Prometheus}/PrometheusExporterTest.php (96%) rename tests/Unit/Contrib/{ => Zipkin}/ZipkinExporterTest.php (93%) rename tests/Unit/Contrib/{ => Zipkin}/ZipkinSpanConverterTest.php (99%) rename tests/Unit/Contrib/{ => ZipkinToNewrelic}/ZipkinToNewrelicExporterTest.php (93%) rename tests/Unit/Contrib/{ => ZipkinToNewrelic}/ZipkinToNewrelicSpanConverterTest.php (98%) diff --git a/tests/Unit/Contrib/AgentExporterTest.php b/tests/Unit/Contrib/Jaeger/AgentExporterTest.php similarity index 94% rename from tests/Unit/Contrib/AgentExporterTest.php rename to tests/Unit/Contrib/Jaeger/AgentExporterTest.php index fa884c5ad..a4c775a9c 100644 --- a/tests/Unit/Contrib/AgentExporterTest.php +++ b/tests/Unit/Contrib/Jaeger/AgentExporterTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace OpenTelemetry\Tests\Contrib\Unit; +namespace OpenTelemetry\Tests\Unit\Contrib\Jaeger; use OpenTelemetry\Contrib\Jaeger\AgentExporter; use OpenTelemetry\SDK\Trace\SpanExporterInterface; diff --git a/tests/Unit/Contrib/IdConverterTest.php b/tests/Unit/Contrib/Jaeger/IdConverterTest.php similarity index 97% rename from tests/Unit/Contrib/IdConverterTest.php rename to tests/Unit/Contrib/Jaeger/IdConverterTest.php index fb456b1a7..dcee98028 100644 --- a/tests/Unit/Contrib/IdConverterTest.php +++ b/tests/Unit/Contrib/Jaeger/IdConverterTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace OpenTelemetry\Tests\Contrib\Unit; +namespace OpenTelemetry\Tests\Unit\Contrib\Jaeger; use OpenTelemetry\Contrib\Jaeger\IdConverter; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Contrib/JaegerExporterTest.php b/tests/Unit/Contrib/Jaeger/JaegerExporterTest.php similarity index 93% rename from tests/Unit/Contrib/JaegerExporterTest.php rename to tests/Unit/Contrib/Jaeger/JaegerExporterTest.php index a5505093b..6d8fb0691 100644 --- a/tests/Unit/Contrib/JaegerExporterTest.php +++ b/tests/Unit/Contrib/Jaeger/JaegerExporterTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace OpenTelemetry\Tests\Unit\Contrib; +namespace OpenTelemetry\Tests\Unit\Contrib\Jaeger; use OpenTelemetry\Contrib\Jaeger\Exporter; diff --git a/tests/Unit/Contrib/JaegerHttpCollectorExporterTest.php b/tests/Unit/Contrib/Jaeger/JaegerHttpCollectorExporterTest.php similarity index 96% rename from tests/Unit/Contrib/JaegerHttpCollectorExporterTest.php rename to tests/Unit/Contrib/Jaeger/JaegerHttpCollectorExporterTest.php index b70e735d5..b5ab928e0 100644 --- a/tests/Unit/Contrib/JaegerHttpCollectorExporterTest.php +++ b/tests/Unit/Contrib/Jaeger/JaegerHttpCollectorExporterTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace OpenTelemetry\Tests\Unit\Contrib; +namespace OpenTelemetry\Tests\Unit\Contrib\Jaeger; use OpenTelemetry\Contrib\Jaeger\HttpCollectorExporter; use OpenTelemetry\SDK\Trace\SpanExporterInterface; diff --git a/tests/Unit/Contrib/JaegerHttpSenderTest.php b/tests/Unit/Contrib/Jaeger/JaegerHttpSenderTest.php similarity index 99% rename from tests/Unit/Contrib/JaegerHttpSenderTest.php rename to tests/Unit/Contrib/Jaeger/JaegerHttpSenderTest.php index c35b5c15c..1ef171c9d 100644 --- a/tests/Unit/Contrib/JaegerHttpSenderTest.php +++ b/tests/Unit/Contrib/Jaeger/JaegerHttpSenderTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace OpenTelemetry\Tests\Unit\Contrib; +namespace OpenTelemetry\Tests\Unit\Contrib\Jaeger; use OpenTelemetry\Contrib\Jaeger\BatchAdapter\BatchAdapterFactoryInterface; use OpenTelemetry\Contrib\Jaeger\BatchAdapter\BatchAdapterInterface; diff --git a/tests/Unit/Contrib/JaegerSpanConverterTest.php b/tests/Unit/Contrib/Jaeger/JaegerSpanConverterTest.php similarity index 99% rename from tests/Unit/Contrib/JaegerSpanConverterTest.php rename to tests/Unit/Contrib/Jaeger/JaegerSpanConverterTest.php index bc7026065..15562796b 100644 --- a/tests/Unit/Contrib/JaegerSpanConverterTest.php +++ b/tests/Unit/Contrib/Jaeger/JaegerSpanConverterTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace OpenTelemetry\Tests\Contrib\Unit; +namespace OpenTelemetry\Tests\Unit\Contrib\Jaeger; use OpenTelemetry\API\Trace\SpanContext; use OpenTelemetry\API\Trace\SpanKind; diff --git a/tests/Unit/Contrib/NewrelicExporterTest.php b/tests/Unit/Contrib/Newrelic/NewrelicExporterTest.php similarity index 93% rename from tests/Unit/Contrib/NewrelicExporterTest.php rename to tests/Unit/Contrib/Newrelic/NewrelicExporterTest.php index 71fc0ec17..60594f4a4 100644 --- a/tests/Unit/Contrib/NewrelicExporterTest.php +++ b/tests/Unit/Contrib/Newrelic/NewrelicExporterTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace OpenTelemetry\Tests\Unit\Contrib; +namespace OpenTelemetry\Tests\Unit\Contrib\Newrelic; use OpenTelemetry\Contrib\Newrelic\Exporter; diff --git a/tests/Unit/Contrib/NewrelicSpanConverterTest.php b/tests/Unit/Contrib/Newrelic/NewrelicSpanConverterTest.php similarity index 98% rename from tests/Unit/Contrib/NewrelicSpanConverterTest.php rename to tests/Unit/Contrib/Newrelic/NewrelicSpanConverterTest.php index 84aafc4c3..da36804be 100644 --- a/tests/Unit/Contrib/NewrelicSpanConverterTest.php +++ b/tests/Unit/Contrib/Newrelic/NewrelicSpanConverterTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace OpenTelemetry\Tests\Unit\Contrib; +namespace OpenTelemetry\Tests\Unit\Contrib\Newrelic; use OpenTelemetry\Contrib\Newrelic\SpanConverter; use OpenTelemetry\SDK\Common\Attribute\Attributes; diff --git a/tests/Unit/Contrib/OTLPSpanConverterTest.php b/tests/Unit/Contrib/Otlp/OTLPSpanConverterTest.php similarity index 99% rename from tests/Unit/Contrib/OTLPSpanConverterTest.php rename to tests/Unit/Contrib/Otlp/OTLPSpanConverterTest.php index 1151ad0dc..cdb9961a0 100644 --- a/tests/Unit/Contrib/OTLPSpanConverterTest.php +++ b/tests/Unit/Contrib/Otlp/OTLPSpanConverterTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace OpenTelemetry\Tests\Unit\Contrib; +namespace OpenTelemetry\Tests\Unit\Contrib\Otlp; use function bin2hex; use OpenTelemetry\API\Trace\SpanContext; diff --git a/tests/Unit/Contrib/OTLPGrpcExporterTest.php b/tests/Unit/Contrib/OtlpGrpc/OTLPGrpcExporterTest.php similarity index 99% rename from tests/Unit/Contrib/OTLPGrpcExporterTest.php rename to tests/Unit/Contrib/OtlpGrpc/OTLPGrpcExporterTest.php index 2e0d68919..ba067a981 100644 --- a/tests/Unit/Contrib/OTLPGrpcExporterTest.php +++ b/tests/Unit/Contrib/OtlpGrpc/OTLPGrpcExporterTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace OpenTelemetry\Tests\Unit\Contrib; +namespace OpenTelemetry\Tests\Unit\Contrib\OtlpGrpc; use AssertWell\PHPUnitGlobalState\EnvironmentVariables; use Grpc\UnaryCall; diff --git a/tests/Unit/Contrib/OTLPHttpExporterTest.php b/tests/Unit/Contrib/OtlpHttp/OTLPHttpExporterTest.php similarity index 99% rename from tests/Unit/Contrib/OTLPHttpExporterTest.php rename to tests/Unit/Contrib/OtlpHttp/OTLPHttpExporterTest.php index 5a8765f5b..941bde84f 100644 --- a/tests/Unit/Contrib/OTLPHttpExporterTest.php +++ b/tests/Unit/Contrib/OtlpHttp/OTLPHttpExporterTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace OpenTelemetry\Tests\Unit\Contrib; +namespace OpenTelemetry\Tests\Unit\Contrib\OtlpHttp; use AssertWell\PHPUnitGlobalState\EnvironmentVariables; use GuzzleHttp\Client; diff --git a/tests/Unit/Contrib/PrometheusExporterTest.php b/tests/Unit/Contrib/Prometheus/PrometheusExporterTest.php similarity index 96% rename from tests/Unit/Contrib/PrometheusExporterTest.php rename to tests/Unit/Contrib/Prometheus/PrometheusExporterTest.php index 6888dc567..43738caed 100644 --- a/tests/Unit/Contrib/PrometheusExporterTest.php +++ b/tests/Unit/Contrib/Prometheus/PrometheusExporterTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace OpenTelemetry\Tests\Unit\Contrib; +namespace OpenTelemetry\Tests\Unit\Contrib\Prometheus; use OpenTelemetry\API\Metrics as API; use OpenTelemetry\Contrib\Prometheus\PrometheusExporter; diff --git a/tests/Unit/Contrib/ZipkinExporterTest.php b/tests/Unit/Contrib/Zipkin/ZipkinExporterTest.php similarity index 93% rename from tests/Unit/Contrib/ZipkinExporterTest.php rename to tests/Unit/Contrib/Zipkin/ZipkinExporterTest.php index 9555f42a4..ebe87236d 100644 --- a/tests/Unit/Contrib/ZipkinExporterTest.php +++ b/tests/Unit/Contrib/Zipkin/ZipkinExporterTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace OpenTelemetry\Tests\Unit\Contrib; +namespace OpenTelemetry\Tests\Unit\Contrib\Zipkin; use OpenTelemetry\Contrib\Zipkin\Exporter; diff --git a/tests/Unit/Contrib/ZipkinSpanConverterTest.php b/tests/Unit/Contrib/Zipkin/ZipkinSpanConverterTest.php similarity index 99% rename from tests/Unit/Contrib/ZipkinSpanConverterTest.php rename to tests/Unit/Contrib/Zipkin/ZipkinSpanConverterTest.php index 221142bd5..dd3ae997c 100644 --- a/tests/Unit/Contrib/ZipkinSpanConverterTest.php +++ b/tests/Unit/Contrib/Zipkin/ZipkinSpanConverterTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace OpenTelemetry\Tests\Unit\Contrib; +namespace OpenTelemetry\Tests\Unit\Contrib\Zipkin; use OpenTelemetry\API\Trace\SpanContext; use OpenTelemetry\API\Trace\SpanKind; diff --git a/tests/Unit/Contrib/ZipkinToNewrelicExporterTest.php b/tests/Unit/Contrib/ZipkinToNewrelic/ZipkinToNewrelicExporterTest.php similarity index 93% rename from tests/Unit/Contrib/ZipkinToNewrelicExporterTest.php rename to tests/Unit/Contrib/ZipkinToNewrelic/ZipkinToNewrelicExporterTest.php index e18564a65..3ed04052f 100644 --- a/tests/Unit/Contrib/ZipkinToNewrelicExporterTest.php +++ b/tests/Unit/Contrib/ZipkinToNewrelic/ZipkinToNewrelicExporterTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace OpenTelemetry\Tests\Unit\Contrib; +namespace OpenTelemetry\Tests\Unit\Contrib\ZipkinToNewrelic; use OpenTelemetry\Contrib\ZipkinToNewrelic\Exporter; diff --git a/tests/Unit/Contrib/ZipkinToNewrelicSpanConverterTest.php b/tests/Unit/Contrib/ZipkinToNewrelic/ZipkinToNewrelicSpanConverterTest.php similarity index 98% rename from tests/Unit/Contrib/ZipkinToNewrelicSpanConverterTest.php rename to tests/Unit/Contrib/ZipkinToNewrelic/ZipkinToNewrelicSpanConverterTest.php index f8f792d3d..1279ab95b 100644 --- a/tests/Unit/Contrib/ZipkinToNewrelicSpanConverterTest.php +++ b/tests/Unit/Contrib/ZipkinToNewrelic/ZipkinToNewrelicSpanConverterTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace OpenTelemetry\Tests\Unit\Contrib; +namespace OpenTelemetry\Tests\Unit\Contrib\ZipkinToNewrelic; use function implode; use OpenTelemetry\Contrib\ZipkinToNewrelic\SpanConverter;