Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce @WithOpenShiftTestServer annotation #18929

Merged
merged 1 commit into from
Jul 28, 2021

Conversation

manusa
Copy link
Contributor

@manusa manusa commented Jul 22, 2021

This PR provides a new @WithOpenShiftTestServer with similar behavior as @WithKubernetesTestServer.

Some work was already performed by @geoand in scope of #18698 (#18714). I hope this doesn't collide with any pending/active work.

See internal discussion for additional reference: https://chat.google.com/room/AAAAbhT8H5E/uA8h84eEi_g

This implementation allows creating a test such as:

@WithOpenShiftTestServer
@QuarkusTest
class DummyTest {

    @OpenShiftTestServer
    private OpenShiftServer mockServer;
    @Inject
    OpenShiftClient client;

    @Test
    void testHelloEndpoint() {
        mockServer.getOpenshiftClient().projects()
          .createOrReplace(new ProjectBuilder()
            .withNewMetadata()
                .withName("example-project")
                .addToLabels("project", "crud-is-true")
            .endMetadata()
            .build());
        assertEquals("crud-is-true", mockServer.getOpenshiftClient().projects().withName("example-project").get().getMetadata().getLabels().get("project"));
        assertEquals("crud-is-true", client.projects().withName("example-project").get().getMetadata().getLabels().get("project"));
    }

}

Notes

Relates to:

@quarkus-bot
Copy link

quarkus-bot bot commented Jul 22, 2021

Thanks for your pull request!

The title of your pull request does not follow our editorial rules. Could you have a look?

  • title should preferably start with an uppercase character (if it makes sense!)
  • title should not start with chore/docs/feat/fix/refactor but be a proper sentence

This message is automatically generated by a bot.

@manusa manusa changed the title feat: Introduced @WithOpenShiftTestServer annotation Introduced @WithOpenShiftTestServer annotation Jul 22, 2021
@geoand geoand changed the title Introduced @WithOpenShiftTestServer annotation Introduce @WithOpenShiftTestServer annotation Jul 22, 2021
Copy link
Contributor

@geoand geoand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@quarkus-bot
Copy link

quarkus-bot bot commented Jul 22, 2021

This workflow status is outdated as a new workflow run has been triggered.

Failing Jobs - Building 8187e8e

Status Name Step Test failures Logs Raw logs
Initial JDK 11 Build Build ⚠️ Check → Logs Raw logs

@manusa manusa force-pushed the feat/with-openshift-server-test branch from 8187e8e to aaf892a Compare July 22, 2021 12:47
@quarkus-bot
Copy link

quarkus-bot bot commented Jul 22, 2021

This workflow status is outdated as a new workflow run has been triggered.

Failing Jobs - Building aaf892a

Status Name Step Test failures Logs Raw logs
JVM Tests - JDK 11 Build Test failures Logs Raw logs
JVM Tests - JDK 11 Windows Build Test failures Logs Raw logs
JVM Tests - JDK 16 Build Test failures Logs Raw logs

Full information is available in the Build summary check run.

Test Failures

⚙️ JVM Tests - JDK 11 #

📦 integration-tests/kubernetes-client

io.quarkus.it.kubernetes.client.ConfigMapPropertiesTest.testPropertiesReadFromConfigMap - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.KubernetesClientTest.testInteractionWithAPIServer - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.KubernetesNewClientTest.testInteractionWithAPIServer - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.KubernetesTestServerOnProfileTest.testConfiguration - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.KubernetesTestServerTest.testConfiguration - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.NamespacedConfigMapPropertiesTest.testPropertiesReadFromConfigMap - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.OpenShiftTestServerTest.testInjectionDefaultsToCrud - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.SecretPropertiesTest.testPropertiesReadFromConfigMap - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

⚙️ JVM Tests - JDK 11 Windows #

📦 integration-tests/kubernetes-client

io.quarkus.it.kubernetes.client.ConfigMapPropertiesTest.testPropertiesReadFromConfigMap - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.KubernetesClientTest.testInteractionWithAPIServer - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.KubernetesNewClientTest.testInteractionWithAPIServer - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.KubernetesTestServerOnProfileTest.testConfiguration - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.KubernetesTestServerTest.testConfiguration - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.NamespacedConfigMapPropertiesTest.testPropertiesReadFromConfigMap - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.OpenShiftTestServerTest.testInjectionDefaultsToCrud - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.SecretPropertiesTest.testPropertiesReadFromConfigMap - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

⚙️ JVM Tests - JDK 16 #

📦 integration-tests/kubernetes-client

io.quarkus.it.kubernetes.client.ConfigMapPropertiesTest.testPropertiesReadFromConfigMap - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.KubernetesClientTest.testInteractionWithAPIServer - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.KubernetesNewClientTest.testInteractionWithAPIServer - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.KubernetesTestServerOnProfileTest.testConfiguration - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.KubernetesTestServerTest.testConfiguration - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.NamespacedConfigMapPropertiesTest.testPropertiesReadFromConfigMap - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.OpenShiftTestServerTest.testInjectionDefaultsToCrud - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

io.quarkus.it.kubernetes.client.SecretPropertiesTest.testPropertiesReadFromConfigMap - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type io.fabric8.openshift.client.OpenShiftClient and qualifiers [@Default]
	- java member: io.quarkus.it.kubernetes.client.OpenShiftTestServerTest#client
	- declared on CLASS bean [types=[io.quarkus.it.kubernetes.client.OpenShiftTestServerTest, java.lang.Object], qualifiers=[@Default, @Any], target=io.quarkus.it.kubernetes.client.OpenShiftTestServerTest]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1094)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:259)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
	at io.quarkus.arc.deployment.ArcProcessor.valida...

@manusa manusa force-pushed the feat/with-openshift-server-test branch from aaf892a to 26527c6 Compare July 22, 2021 13:53
@quarkus-bot
Copy link

quarkus-bot bot commented Jul 22, 2021

This workflow status is outdated as a new workflow run has been triggered.

Failing Jobs - Building 26527c6

Status Name Step Test failures Logs Raw logs
Initial JDK 11 Build Build ⚠️ Check → Logs Raw logs

@manusa manusa force-pushed the feat/with-openshift-server-test branch from 26527c6 to 394cd7f Compare July 22, 2021 14:20
@quarkus-bot
Copy link

quarkus-bot bot commented Jul 22, 2021

This workflow status is outdated as a new workflow run has been triggered.

Failing Jobs - Building 394cd7f

Status Name Step Test failures Logs Raw logs
JVM Tests - JDK 11 Build Test failures Logs Raw logs
JVM Tests - JDK 11 Windows Build Test failures Logs Raw logs
JVM Tests - JDK 16 Build Test failures Logs Raw logs

Full information is available in the Build summary check run.

Test Failures

⚙️ JVM Tests - JDK 11 #

📦 integration-tests/kubernetes-client

io.quarkus.it.kubernetes.client.OpenShiftTestServerTest.testInjectionDefaultsToCrud - More details - Source on GitHub

java.lang.RuntimeException: java.lang.RuntimeException: Failed to start quarkus
	at io.quarkus.test.junit.QuarkusTestExtension.throwBootFailureException(QuarkusTestExtension.java:686)
	at io.quarkus.test.junit.QuarkusTestExtension.interceptTestClassConstructor(QuarkusTestExtension.java:759)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
	at org.junit.jupiter.api.extension.InvocationInterceptor.interceptTestClassConstructor(InvocationInterceptor.java:72)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
	at org....

⚙️ JVM Tests - JDK 11 Windows #

📦 integration-tests/kubernetes-client

io.quarkus.it.kubernetes.client.OpenShiftTestServerTest.testInjectionDefaultsToCrud - More details - Source on GitHub

java.lang.RuntimeException: java.lang.RuntimeException: Failed to start quarkus
	at io.quarkus.test.junit.QuarkusTestExtension.throwBootFailureException(QuarkusTestExtension.java:686)
	at io.quarkus.test.junit.QuarkusTestExtension.interceptTestClassConstructor(QuarkusTestExtension.java:759)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
	at org.junit.jupiter.api.extension.InvocationInterceptor.interceptTestClassConstructor(InvocationInterceptor.java:72)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
	at org....

⚙️ JVM Tests - JDK 16 #

📦 integration-tests/kubernetes-client

io.quarkus.it.kubernetes.client.OpenShiftTestServerTest.testInjectionDefaultsToCrud - More details - Source on GitHub

java.lang.RuntimeException: java.lang.RuntimeException: Failed to start quarkus
	at io.quarkus.test.junit.QuarkusTestExtension.throwBootFailureException(QuarkusTestExtension.java:686)
	at io.quarkus.test.junit.QuarkusTestExtension.interceptTestClassConstructor(QuarkusTestExtension.java:759)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
	at org.junit.jupiter.api.extension.InvocationInterceptor.interceptTestClassConstructor(InvocationInterceptor.java:72)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
	at org....

Allows to easily run QuarkusTests with OpenShiftMockserver

Signed-off-by: Marc Nuri <[email protected]>
@manusa manusa force-pushed the feat/with-openshift-server-test branch from 394cd7f to 4423212 Compare July 22, 2021 18:08
@geoand geoand merged commit a83a0a0 into quarkusio:main Jul 28, 2021
@quarkus-bot quarkus-bot bot added this to the 2.2 - main milestone Jul 28, 2021
@manusa manusa deleted the feat/with-openshift-server-test branch July 28, 2021 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants