From 4a872584240073bf07a3d5debb631c9c4de92519 Mon Sep 17 00:00:00 2001 From: Kate Anderson Date: Tue, 26 Aug 2025 13:03:43 -0700 Subject: [PATCH] add test modules and files for linter action --- instrumentation/test-module-1/HeaderOutOfDate.java | 10 ++++++++++ instrumentation/test-module-1/build.gradle | 7 +++++++ instrumentation/test-module-2/HeaderMissing.java | 9 +++++++++ instrumentation/test-module-2/HeaderPresent.java | 10 ++++++++++ instrumentation/test-module-2/build.gradle | 5 +++++ instrumentation/test-module-3/build.gradle | 7 +++++++ instrumentation/test-module-4/build.gradle | 8 ++++++++ 7 files changed, 56 insertions(+) create mode 100644 instrumentation/test-module-1/HeaderOutOfDate.java create mode 100644 instrumentation/test-module-1/build.gradle create mode 100644 instrumentation/test-module-2/HeaderMissing.java create mode 100644 instrumentation/test-module-2/HeaderPresent.java create mode 100644 instrumentation/test-module-2/build.gradle create mode 100644 instrumentation/test-module-3/build.gradle create mode 100644 instrumentation/test-module-4/build.gradle diff --git a/instrumentation/test-module-1/HeaderOutOfDate.java b/instrumentation/test-module-1/HeaderOutOfDate.java new file mode 100644 index 0000000000..d9c2c475b0 --- /dev/null +++ b/instrumentation/test-module-1/HeaderOutOfDate.java @@ -0,0 +1,10 @@ +/* + * + * * Copyright 2024 New Relic Corporation. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * + */ + +class HeaderOutOfDate { + +} \ No newline at end of file diff --git a/instrumentation/test-module-1/build.gradle b/instrumentation/test-module-1/build.gradle new file mode 100644 index 0000000000..8cedc632f8 --- /dev/null +++ b/instrumentation/test-module-1/build.gradle @@ -0,0 +1,7 @@ +jar { + manifest { attributes 'Implementation-Title': 'com.newrelic.instrumentation.test-module-1'} +} + +verifyInstrumentation { + passesOnly "something:else:something-made-up" +} diff --git a/instrumentation/test-module-2/HeaderMissing.java b/instrumentation/test-module-2/HeaderMissing.java new file mode 100644 index 0000000000..f74aabb36b --- /dev/null +++ b/instrumentation/test-module-2/HeaderMissing.java @@ -0,0 +1,9 @@ +/* + * + * * No-Header-Here! + * + */ + +class HeaderMissing { + +} \ No newline at end of file diff --git a/instrumentation/test-module-2/HeaderPresent.java b/instrumentation/test-module-2/HeaderPresent.java new file mode 100644 index 0000000000..b2f66c4089 --- /dev/null +++ b/instrumentation/test-module-2/HeaderPresent.java @@ -0,0 +1,10 @@ +/* + * + * * Copyright 2025 New Relic Corporation. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * + */ + +class HeaderPresent { + +} diff --git a/instrumentation/test-module-2/build.gradle b/instrumentation/test-module-2/build.gradle new file mode 100644 index 0000000000..d798578cf9 --- /dev/null +++ b/instrumentation/test-module-2/build.gradle @@ -0,0 +1,5 @@ +jar { + manifest { attributes 'Implementation-Title': 'com.newrelic.foo.instrumentation.test-module-2'} +} + +// no verify block \ No newline at end of file diff --git a/instrumentation/test-module-3/build.gradle b/instrumentation/test-module-3/build.gradle new file mode 100644 index 0000000000..b3da9e080c --- /dev/null +++ b/instrumentation/test-module-3/build.gradle @@ -0,0 +1,7 @@ +jar { + manifest { attributes 'Implementation-Title': 'com.newrelic.instrumentation.not-3'} +} + +verifyInstrumentation { + passesOnly "something-made-up" +} \ No newline at end of file diff --git a/instrumentation/test-module-4/build.gradle b/instrumentation/test-module-4/build.gradle new file mode 100644 index 0000000000..ccf13d6ea5 --- /dev/null +++ b/instrumentation/test-module-4/build.gradle @@ -0,0 +1,8 @@ +jar { + manifest { attributes 'Implementation-Title': 'com.newrelic.instrumentation.test-module-4'} +} + + +verifyInstrumentation { + passes "passes is not preferred!" +} \ No newline at end of file