From 89be934f02ee8bc2c25d9b81f4b9818355cd224e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Thu, 6 Jul 2023 11:27:16 +0200 Subject: [PATCH] Rename crAppTest to checkpointRestoreAppTest Also available with the shorter cRAT task name. --- README.adoc | 4 ++-- STATUS.adoc | 2 +- ci/pipeline-template/pipeline.yml | 2 +- .../java/org/springframework/cr/gradle/CrSmokeTestPlugin.java | 2 +- .../org/springframework/cr/gradle/tasks/UpdateStatusPage.java | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.adoc b/README.adoc index f5878ad..79c34d7 100644 --- a/README.adoc +++ b/README.adoc @@ -7,7 +7,7 @@ There are two types of tests: unit tests and application tests. Unit tests can be run using the `test` task. -The `appTest` task tests the application running on the JVM. The `crAppTest` task tests the application running on the JVM after a checkpoint/restore. +The `appTest` task tests the application running on the JVM. The `checkpointRestoreAppTest` (also available with the shorter `cRAT` task name) task tests the application running on the JVM after a checkpoint/restore. == Prerequisites @@ -44,7 +44,7 @@ for example Valid test task names are: 1. `appTest` – tests the application running on the JVM -2. `crAppTest` – tests the application running on the JVM after a checkpoint/restore +2. `checkpointRestoreAppTest` (also available with the shorter `cRAT` task name) – tests the application running on the JVM after a checkpoint/restore 3. `test` – executes the unit tests on the JVM for example diff --git a/STATUS.adoc b/STATUS.adoc index 364f5b7..73b9bb4 100644 --- a/STATUS.adoc +++ b/STATUS.adoc @@ -8,7 +8,7 @@ |=== h|Smoke Test h|appTest -h|crAppTest +h|checkpointRestoreAppTest h|test |webflux-undertow diff --git a/ci/pipeline-template/pipeline.yml b/ci/pipeline-template/pipeline.yml index a10d081..30a82f8 100644 --- a/ci/pipeline-template/pipeline.yml +++ b/ci/pipeline-template/pipeline.yml @@ -158,7 +158,7 @@ jobs: params: BRANCH: #@ branch SMOKE_TEST: #@ group.name + ":" + smoke_test.name - TASK: crAppTest + TASK: checkpointRestoreAppTest DOCKER_HUB_AUTH: ((docker-hub-auth)) DOCKER_HUB_MIRROR: ((docker-hub-mirror)) GRADLE_ENTERPRISE_ACCESS_KEY: ((gradle_enterprise_secret_access_key)) diff --git a/gradle/plugins/cr-smoke-test-plugin/src/main/java/org/springframework/cr/gradle/CrSmokeTestPlugin.java b/gradle/plugins/cr-smoke-test-plugin/src/main/java/org/springframework/cr/gradle/CrSmokeTestPlugin.java index cadb3e2..21f76b3 100644 --- a/gradle/plugins/cr-smoke-test-plugin/src/main/java/org/springframework/cr/gradle/CrSmokeTestPlugin.java +++ b/gradle/plugins/cr-smoke-test-plugin/src/main/java/org/springframework/cr/gradle/CrSmokeTestPlugin.java @@ -255,7 +255,7 @@ public class CrSmokeTestPlugin implements Plugin { TaskProvider startTask, TaskProvider stopTask) { String taskName = switch (type) { case JVM -> "appTest"; - case JVM_CHECKPOINT_RESTORE -> "crAppTest"; + case JVM_CHECKPOINT_RESTORE -> "checkpointRestoreAppTest"; }; TaskProvider appTestTask = project.getTasks().register(taskName, AppTest.class, (task) -> { task.dependsOn(startTask); diff --git a/gradle/plugins/cr-smoke-test-plugin/src/main/java/org/springframework/cr/gradle/tasks/UpdateStatusPage.java b/gradle/plugins/cr-smoke-test-plugin/src/main/java/org/springframework/cr/gradle/tasks/UpdateStatusPage.java index 9eac4aa..64a35df 100644 --- a/gradle/plugins/cr-smoke-test-plugin/src/main/java/org/springframework/cr/gradle/tasks/UpdateStatusPage.java +++ b/gradle/plugins/cr-smoke-test-plugin/src/main/java/org/springframework/cr/gradle/tasks/UpdateStatusPage.java @@ -78,7 +78,7 @@ public abstract class UpdateStatusPage extends AbstractSmokeTestsTask { private enum TestType { APP_TEST(SmokeTest::appTests, "-app-test", "appTest"), - CR_APP_TEST(SmokeTest::appTests, "-cr-app-test", "crAppTest"), + CR_APP_TEST(SmokeTest::appTests, "-cr-app-test", "checkpointRestoreAppTest"), TEST(SmokeTest::tests, "-test", "test"); private final Predicate predicate;