diff --git a/tck/metrics/README.adoc b/tck/metrics/README.adoc index 234db3b3..d680a747 100644 --- a/tck/metrics/README.adoc +++ b/tck/metrics/README.adoc @@ -51,17 +51,17 @@ To enable the tests in your project you need to add the following dependency to == Running the tests -The jvm metrics tests require runtime configuration to enable metric reading at a runtime level. The metrics must be sent to stdout in the tests. Ensure logs written to stdout are captured in a file and set the system property `log.file.path` to the file containing the log output when running the logs TCK. For example: +The jvm metrics tests require runtime configuration to enable metric reading at a runtime level. The metrics must be sent to stdout in the tests. Ensure logs written to stdout are captured in a file and set the system property `log.file.path` to the file containing the log output when running the logs TCK. Configure the runtime with `otel.metrics.exporter=console`/`OTEL_METRICS_EXPORTER=CONSOLE` and `otel.sdk.disabled=false`/`OTEL_SDK_DISABLED=FALSE` as a system property or environment variable. For example: [source, xml] ---- otel.sdk.disabled=false -otel.metrics.exporter=logging +otel.metrics.exporter=console log.file.path=console.log ---- -To run the tests, include the following content in the `tck-suite.xml` in your project: +To run the jvm metrics tests, include the following content in the `tck-suite.xml` in your project: [source, xml] ---- @@ -70,7 +70,22 @@ To run the tests, include the following content in the `tck-suite.xml` in your p - + + + + +---- + +The remaining metrics tests must use an OpenTelemetry SDK instance that is configured by the configuration properties set in the application. Ensure that `otel.sdk.disabled` and `otel.metrics.exporter` are NOT set by the runtime. To run the application metrics tests, include the following content in the `tck-suite.xml` in your project: + +[source, xml] +---- + + + + + + diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/BasicHttpClient.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/BasicHttpClient.java similarity index 98% rename from tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/BasicHttpClient.java rename to tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/BasicHttpClient.java index 1acad636..87db538d 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/BasicHttpClient.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/BasicHttpClient.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package org.eclipse.microprofile.telemetry.metrics.tck; +package org.eclipse.microprofile.telemetry.metrics.tck.application; import java.io.BufferedReader; import java.io.InputStreamReader; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/ConfigAsset.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/ConfigAsset.java similarity index 96% rename from tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/ConfigAsset.java rename to tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/ConfigAsset.java index 7555689f..be0dda19 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/ConfigAsset.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/ConfigAsset.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package org.eclipse.microprofile.telemetry.metrics.tck; +package org.eclipse.microprofile.telemetry.metrics.tck.application; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/TestLibraries.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/TestLibraries.java new file mode 100644 index 00000000..6c031499 --- /dev/null +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/TestLibraries.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + * + */ +package org.eclipse.microprofile.telemetry.metrics.tck.application; + +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.JavaArchive; + +public class TestLibraries { + + public static final JavaArchive AWAITILITY_LIB = ShrinkWrap.create(JavaArchive.class, "awaitility.jar") + .addPackages(true, "org.awaitility", "org.hamcrest"); + + private TestLibraries() { + } +} diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/TestUtils.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/TestUtils.java similarity index 94% rename from tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/TestUtils.java rename to tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/TestUtils.java index 181a585e..a9ad10fb 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/TestUtils.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/TestUtils.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package org.eclipse.microprofile.telemetry.metrics.tck; +package org.eclipse.microprofile.telemetry.metrics.tck.application; import java.util.Map; import java.util.stream.Collectors; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/AsyncDoubleCounterTest.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/AsyncDoubleCounterTest.java similarity index 91% rename from tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/AsyncDoubleCounterTest.java rename to tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/AsyncDoubleCounterTest.java index 78b53d63..7eee25ff 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/AsyncDoubleCounterTest.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/AsyncDoubleCounterTest.java @@ -19,11 +19,11 @@ * * SPDX-License-Identifier: Apache-2.0 **********************************************************************/ -package org.eclipse.microprofile.telemetry.metrics.tck.cdi; +package org.eclipse.microprofile.telemetry.metrics.tck.application.cdi; -import org.eclipse.microprofile.telemetry.metrics.tck.TestLibraries; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporter; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporterProvider; +import org.eclipse.microprofile.telemetry.metrics.tck.application.TestLibraries; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporter; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporterProvider; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/AsyncLongCounterTest.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/AsyncLongCounterTest.java similarity index 91% rename from tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/AsyncLongCounterTest.java rename to tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/AsyncLongCounterTest.java index 7510c18e..a7fef630 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/AsyncLongCounterTest.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/AsyncLongCounterTest.java @@ -19,11 +19,11 @@ * * SPDX-License-Identifier: Apache-2.0 **********************************************************************/ -package org.eclipse.microprofile.telemetry.metrics.tck.cdi; +package org.eclipse.microprofile.telemetry.metrics.tck.application.cdi; -import org.eclipse.microprofile.telemetry.metrics.tck.TestLibraries; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporter; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporterProvider; +import org.eclipse.microprofile.telemetry.metrics.tck.application.TestLibraries; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporter; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporterProvider; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/DoubleCounterTest.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/DoubleCounterTest.java similarity index 92% rename from tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/DoubleCounterTest.java rename to tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/DoubleCounterTest.java index 64d33349..800f83c3 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/DoubleCounterTest.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/DoubleCounterTest.java @@ -19,16 +19,16 @@ * * SPDX-License-Identifier: Apache-2.0 **********************************************************************/ -package org.eclipse.microprofile.telemetry.metrics.tck.cdi; +package org.eclipse.microprofile.telemetry.metrics.tck.application.cdi; import java.util.HashMap; import java.util.List; import java.util.Map; -import org.eclipse.microprofile.telemetry.metrics.tck.TestLibraries; -import org.eclipse.microprofile.telemetry.metrics.tck.TestUtils; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporter; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporterProvider; +import org.eclipse.microprofile.telemetry.metrics.tck.application.TestLibraries; +import org.eclipse.microprofile.telemetry.metrics.tck.application.TestUtils; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporter; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporterProvider; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/DoubleGaugeTest.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/DoubleGaugeTest.java similarity index 91% rename from tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/DoubleGaugeTest.java rename to tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/DoubleGaugeTest.java index 89d3463e..321de4b7 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/DoubleGaugeTest.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/DoubleGaugeTest.java @@ -19,11 +19,11 @@ * * SPDX-License-Identifier: Apache-2.0 **********************************************************************/ -package org.eclipse.microprofile.telemetry.metrics.tck.cdi; +package org.eclipse.microprofile.telemetry.metrics.tck.application.cdi; -import org.eclipse.microprofile.telemetry.metrics.tck.TestLibraries; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporter; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporterProvider; +import org.eclipse.microprofile.telemetry.metrics.tck.application.TestLibraries; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporter; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporterProvider; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/DoubleHistogramTest.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/DoubleHistogramTest.java similarity index 92% rename from tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/DoubleHistogramTest.java rename to tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/DoubleHistogramTest.java index 2b5305d6..739cd0d4 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/DoubleHistogramTest.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/DoubleHistogramTest.java @@ -19,16 +19,16 @@ * * SPDX-License-Identifier: Apache-2.0 **********************************************************************/ -package org.eclipse.microprofile.telemetry.metrics.tck.cdi; +package org.eclipse.microprofile.telemetry.metrics.tck.application.cdi; import java.util.HashMap; import java.util.List; import java.util.Map; -import org.eclipse.microprofile.telemetry.metrics.tck.TestLibraries; -import org.eclipse.microprofile.telemetry.metrics.tck.TestUtils; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporter; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporterProvider; +import org.eclipse.microprofile.telemetry.metrics.tck.application.TestLibraries; +import org.eclipse.microprofile.telemetry.metrics.tck.application.TestUtils; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporter; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporterProvider; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/DoubleUpDownCounterTest.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/DoubleUpDownCounterTest.java similarity index 92% rename from tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/DoubleUpDownCounterTest.java rename to tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/DoubleUpDownCounterTest.java index 67d40a58..15279f78 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/DoubleUpDownCounterTest.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/DoubleUpDownCounterTest.java @@ -19,16 +19,16 @@ * * SPDX-License-Identifier: Apache-2.0 **********************************************************************/ -package org.eclipse.microprofile.telemetry.metrics.tck.cdi; +package org.eclipse.microprofile.telemetry.metrics.tck.application.cdi; import java.util.HashMap; import java.util.List; import java.util.Map; -import org.eclipse.microprofile.telemetry.metrics.tck.TestLibraries; -import org.eclipse.microprofile.telemetry.metrics.tck.TestUtils; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporter; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporterProvider; +import org.eclipse.microprofile.telemetry.metrics.tck.application.TestLibraries; +import org.eclipse.microprofile.telemetry.metrics.tck.application.TestUtils; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporter; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporterProvider; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/LongCounterTest.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/LongCounterTest.java similarity index 92% rename from tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/LongCounterTest.java rename to tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/LongCounterTest.java index e40cf9b0..f77794c9 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/LongCounterTest.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/LongCounterTest.java @@ -19,16 +19,16 @@ * * SPDX-License-Identifier: Apache-2.0 **********************************************************************/ -package org.eclipse.microprofile.telemetry.metrics.tck.cdi; +package org.eclipse.microprofile.telemetry.metrics.tck.application.cdi; import java.util.HashMap; import java.util.List; import java.util.Map; -import org.eclipse.microprofile.telemetry.metrics.tck.TestLibraries; -import org.eclipse.microprofile.telemetry.metrics.tck.TestUtils; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporter; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporterProvider; +import org.eclipse.microprofile.telemetry.metrics.tck.application.TestLibraries; +import org.eclipse.microprofile.telemetry.metrics.tck.application.TestUtils; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporter; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporterProvider; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/LongGaugeTest.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/LongGaugeTest.java similarity index 91% rename from tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/LongGaugeTest.java rename to tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/LongGaugeTest.java index d074b2cb..e9275344 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/LongGaugeTest.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/LongGaugeTest.java @@ -19,11 +19,11 @@ * * SPDX-License-Identifier: Apache-2.0 **********************************************************************/ -package org.eclipse.microprofile.telemetry.metrics.tck.cdi; +package org.eclipse.microprofile.telemetry.metrics.tck.application.cdi; -import org.eclipse.microprofile.telemetry.metrics.tck.TestLibraries; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporter; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporterProvider; +import org.eclipse.microprofile.telemetry.metrics.tck.application.TestLibraries; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporter; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporterProvider; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/LongHistogramTest.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/LongHistogramTest.java similarity index 92% rename from tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/LongHistogramTest.java rename to tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/LongHistogramTest.java index 8fc73d6a..efeb830c 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/LongHistogramTest.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/LongHistogramTest.java @@ -19,16 +19,16 @@ * * SPDX-License-Identifier: Apache-2.0 **********************************************************************/ -package org.eclipse.microprofile.telemetry.metrics.tck.cdi; +package org.eclipse.microprofile.telemetry.metrics.tck.application.cdi; import java.util.HashMap; import java.util.List; import java.util.Map; -import org.eclipse.microprofile.telemetry.metrics.tck.TestLibraries; -import org.eclipse.microprofile.telemetry.metrics.tck.TestUtils; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporter; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporterProvider; +import org.eclipse.microprofile.telemetry.metrics.tck.application.TestLibraries; +import org.eclipse.microprofile.telemetry.metrics.tck.application.TestUtils; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporter; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporterProvider; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/LongUpDownCounterTest.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/LongUpDownCounterTest.java similarity index 92% rename from tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/LongUpDownCounterTest.java rename to tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/LongUpDownCounterTest.java index 94bf5eab..60c038e3 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/LongUpDownCounterTest.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/cdi/LongUpDownCounterTest.java @@ -19,16 +19,16 @@ * * SPDX-License-Identifier: Apache-2.0 **********************************************************************/ -package org.eclipse.microprofile.telemetry.metrics.tck.cdi; +package org.eclipse.microprofile.telemetry.metrics.tck.application.cdi; import java.util.HashMap; import java.util.List; import java.util.Map; -import org.eclipse.microprofile.telemetry.metrics.tck.TestLibraries; -import org.eclipse.microprofile.telemetry.metrics.tck.TestUtils; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporter; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporterProvider; +import org.eclipse.microprofile.telemetry.metrics.tck.application.TestLibraries; +import org.eclipse.microprofile.telemetry.metrics.tck.application.TestUtils; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporter; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporterProvider; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/exporter/InMemoryMetricExporter.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/exporter/InMemoryMetricExporter.java similarity index 98% rename from tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/exporter/InMemoryMetricExporter.java rename to tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/exporter/InMemoryMetricExporter.java index bb4e0ecd..b320f0bb 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/exporter/InMemoryMetricExporter.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/exporter/InMemoryMetricExporter.java @@ -18,7 +18,7 @@ * */ -package org.eclipse.microprofile.telemetry.metrics.tck.exporter; +package org.eclipse.microprofile.telemetry.metrics.tck.application.exporter; import static java.util.concurrent.TimeUnit.SECONDS; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/exporter/InMemoryMetricExporterProvider.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/exporter/InMemoryMetricExporterProvider.java similarity index 94% rename from tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/exporter/InMemoryMetricExporterProvider.java rename to tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/exporter/InMemoryMetricExporterProvider.java index 95e1cf95..bd798d4d 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/exporter/InMemoryMetricExporterProvider.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/exporter/InMemoryMetricExporterProvider.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package org.eclipse.microprofile.telemetry.metrics.tck.exporter; +package org.eclipse.microprofile.telemetry.metrics.tck.application.exporter; import io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties; import io.opentelemetry.sdk.autoconfigure.spi.metrics.ConfigurableMetricExporterProvider; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/http/HttpHistogramTest.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/http/HttpHistogramTest.java similarity index 94% rename from tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/http/HttpHistogramTest.java rename to tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/http/HttpHistogramTest.java index 899ab169..cd4b30cc 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/http/HttpHistogramTest.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/application/http/HttpHistogramTest.java @@ -19,7 +19,7 @@ * * SPDX-License-Identifier: Apache-2.0 **********************************************************************/ -package org.eclipse.microprofile.telemetry.metrics.tck.http; +package org.eclipse.microprofile.telemetry.metrics.tck.application.http; import java.net.URL; import java.util.HashMap; @@ -27,10 +27,10 @@ import java.util.Map; import java.util.stream.Collectors; -import org.eclipse.microprofile.telemetry.metrics.tck.BasicHttpClient; -import org.eclipse.microprofile.telemetry.metrics.tck.TestLibraries; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporter; -import org.eclipse.microprofile.telemetry.metrics.tck.exporter.InMemoryMetricExporterProvider; +import org.eclipse.microprofile.telemetry.metrics.tck.application.BasicHttpClient; +import org.eclipse.microprofile.telemetry.metrics.tck.application.TestLibraries; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporter; +import org.eclipse.microprofile.telemetry.metrics.tck.application.exporter.InMemoryMetricExporterProvider; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.test.api.ArquillianResource; import org.jboss.arquillian.testng.Arquillian; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmClassesTest.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmClassesTest.java index d2a7279f..0abb609a 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmClassesTest.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmClassesTest.java @@ -23,7 +23,6 @@ import java.io.IOException; -import org.eclipse.microprofile.telemetry.metrics.tck.TestLibraries; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmCpuTest.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmCpuTest.java index c3d0910e..bf883a96 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmCpuTest.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmCpuTest.java @@ -23,7 +23,6 @@ import java.io.IOException; -import org.eclipse.microprofile.telemetry.metrics.tck.TestLibraries; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmGarbageCollectionTest.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmGarbageCollectionTest.java index cd19f6c0..9c6c5e24 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmGarbageCollectionTest.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmGarbageCollectionTest.java @@ -23,7 +23,6 @@ import java.io.IOException; -import org.eclipse.microprofile.telemetry.metrics.tck.TestLibraries; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmMemoryTest.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmMemoryTest.java index 1141f441..9c0da4da 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmMemoryTest.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmMemoryTest.java @@ -23,7 +23,6 @@ import java.io.IOException; -import org.eclipse.microprofile.telemetry.metrics.tck.TestLibraries; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmThreadTest.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmThreadTest.java index 9090d683..be9f7b51 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmThreadTest.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/JvmThreadTest.java @@ -23,7 +23,6 @@ import java.io.IOException; -import org.eclipse.microprofile.telemetry.metrics.tck.TestLibraries; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/TestLibraries.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/TestLibraries.java similarity index 94% rename from tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/TestLibraries.java rename to tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/TestLibraries.java index 86bf368d..53f0d50d 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/TestLibraries.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/jvm/TestLibraries.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package org.eclipse.microprofile.telemetry.metrics.tck; +package org.eclipse.microprofile.telemetry.metrics.tck.jvm; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive;