From db28d67248b69f384b53e3d84f4d354c09c7a5da Mon Sep 17 00:00:00 2001 From: Dean Wette Date: Thu, 7 Mar 2024 13:33:48 -0600 Subject: [PATCH] Rename the feature oci-devops-build-ci to oracle-cloud-devops-build-ci, remove preview flag. closes #681 --- .../ci/workflows/oci/OCICiWorkflowFeature.java | 7 ++++++- .../ci/workflows/oci/OCIWorkflowCISpec.groovy | 12 ++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/starter-core/src/main/java/io/micronaut/starter/feature/ci/workflows/oci/OCICiWorkflowFeature.java b/starter-core/src/main/java/io/micronaut/starter/feature/ci/workflows/oci/OCICiWorkflowFeature.java index 1b3b817dd19..41d700783c3 100644 --- a/starter-core/src/main/java/io/micronaut/starter/feature/ci/workflows/oci/OCICiWorkflowFeature.java +++ b/starter-core/src/main/java/io/micronaut/starter/feature/ci/workflows/oci/OCICiWorkflowFeature.java @@ -29,7 +29,7 @@ @Singleton public class OCICiWorkflowFeature extends CIWorkflowFeature { - public static final String NAME = "oci-devops-build-ci"; + public static final String NAME = "oracle-cloud-devops-build-ci"; private static final String WORKFLOW_FILENAME = "build_spec.yml"; @NonNull @@ -79,6 +79,11 @@ private Template workflowRockerTemplate(GeneratorContext generatorContext) { } } + @Override + public boolean isPreview() { + return false; + } + @Override public String getThirdPartyDocumentation() { return "https://docs.oracle.com/en-us/iaas/Content/devops/using/build_specs.htm"; diff --git a/starter-core/src/test/groovy/io/micronaut/starter/feature/ci/workflows/oci/OCIWorkflowCISpec.groovy b/starter-core/src/test/groovy/io/micronaut/starter/feature/ci/workflows/oci/OCIWorkflowCISpec.groovy index d05ef2a3952..43a1b184bd0 100644 --- a/starter-core/src/test/groovy/io/micronaut/starter/feature/ci/workflows/oci/OCIWorkflowCISpec.groovy +++ b/starter-core/src/test/groovy/io/micronaut/starter/feature/ci/workflows/oci/OCIWorkflowCISpec.groovy @@ -14,8 +14,16 @@ import spock.lang.Unroll class OCIWorkflowCISpec extends BeanContextSpec implements CommandOutputFixture { + void "test oracle-cloud-devops-build-ci is a not a preview feature"() { + given: + OCICiWorkflowFeature feature = beanContext.getBean(OCICiWorkflowFeature) + + expect: + !feature.isPreview() + } + @Unroll - void 'test oci-devops-build-ci is created for #buildTool and #jdkVersion'(BuildTool buildTool, JdkVersion jdkVersion) { + void 'test oracle-cloud-devops-build-ci is created for #buildTool and #jdkVersion'(BuildTool buildTool, JdkVersion jdkVersion) { when: def output = generate(ApplicationType.DEFAULT, new Options(Language.JAVA, TestFramework.JUNIT, buildTool, jdkVersion), @@ -54,7 +62,7 @@ class OCIWorkflowCISpec extends BeanContextSpec implements CommandOutputFixture } @Unroll - void 'test oci-devops-build-ci and graalvm is created for #buildTool and #jdkVersion'(BuildTool buildTool, JdkVersion jdkVersion) { + void 'test oracle-cloud-devops-build-ci and graalvm is created for #buildTool and #jdkVersion'(BuildTool buildTool, JdkVersion jdkVersion) { when: def output = generate(ApplicationType.DEFAULT, new Options(Language.JAVA, TestFramework.JUNIT, buildTool, JdkVersion.valueOf(jdkVersion.majorVersion())),