Search in sources :

Example 11 with KubernetesEnvBuildItem

use of io.quarkus.kubernetes.spi.KubernetesEnvBuildItem in project quarkus by quarkusio.

the class EnvVarValidatorTest method getBuildItemsOneItemShouldWork.

@Test
void getBuildItemsOneItemShouldWork() {
    final KubernetesEnvBuildItem initial = KubernetesEnvBuildItem.createSimpleVar("name", "value", TARGET);
    validator.process(initial);
    final Collection<KubernetesEnvBuildItem> items = validator.getBuildItems();
    assertEquals(1, items.size());
    assertEquals(initial, items.stream().findFirst().orElseGet(() -> fail("no item was found when one was expected")));
}
Also used : KubernetesEnvBuildItem(io.quarkus.kubernetes.spi.KubernetesEnvBuildItem) Test(org.junit.jupiter.api.Test)

Aggregations

KubernetesEnvBuildItem (io.quarkus.kubernetes.spi.KubernetesEnvBuildItem)11 Test (org.junit.jupiter.api.Test)9 Clients (io.dekorate.utils.Clients)1 Serialization (io.dekorate.utils.Serialization)1 HasMetadata (io.fabric8.kubernetes.api.model.HasMetadata)1 KubernetesList (io.fabric8.kubernetes.api.model.KubernetesList)1 Secret (io.fabric8.kubernetes.api.model.Secret)1 Config (io.fabric8.kubernetes.client.Config)1 KubernetesClient (io.fabric8.kubernetes.client.KubernetesClient)1 KubernetesClientException (io.fabric8.kubernetes.client.KubernetesClientException)1 LogWatch (io.fabric8.kubernetes.client.dsl.LogWatch)1 Build (io.fabric8.openshift.api.model.Build)1 BuildConfig (io.fabric8.openshift.api.model.BuildConfig)1 ImageStream (io.fabric8.openshift.api.model.ImageStream)1 OpenShiftClient (io.fabric8.openshift.client.OpenShiftClient)1 ContainerImageConfig (io.quarkus.container.image.deployment.ContainerImageConfig)1 ImageUtil (io.quarkus.container.image.deployment.util.ImageUtil)1 AvailableContainerImageExtensionBuildItem (io.quarkus.container.spi.AvailableContainerImageExtensionBuildItem)1 BaseImageInfoBuildItem (io.quarkus.container.spi.BaseImageInfoBuildItem)1 ContainerImageBuildRequestBuildItem (io.quarkus.container.spi.ContainerImageBuildRequestBuildItem)1