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

Cannot use plain text in @OpenShiftResource #1045

Closed
goldmann opened this Issue Apr 17, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@goldmann
Contributor

goldmann commented Apr 17, 2018

Issue Overview

The JavaDoc says that it it possible to define the resource that should be deployed in OpenShift in the @OpenShiftResource annotation directly, but it's not true and creation of the resource fails.

Expected Behaviour

Resource is deployed.

Current Behaviour
	at org.arquillian.cube.openshift.impl.resources.OpenShiftResourceFactory.createResources(OpenShiftResourceFactory.java:76)
	at org.arquillian.cube.openshift.impl.CEEnvironmentProcessor.createEnvironment(CEEnvironmentProcessor.java:91)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)
	at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:83)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
	at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:69)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)
	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:105)
	at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:89)
	at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:163)
	at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:350)
	at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
	at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:177)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:115)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
Caused by: java.lang.IllegalArgumentException: java.net.MalformedURLException: no protocol: {
  "apiVersion": "v1",
  "kind": "ServiceAccount",
  "metadata": {
    "name": "eap-service-account"
  }
}
	at org.arquillian.cube.kubernetes.impl.resolver.ResourceResolver.resolve(ResourceResolver.java:30)
	at org.arquillian.cube.openshift.impl.resources.OpenShiftResourceFactory.createOpenShiftResources(OpenShiftResourceFactory.java:116)
	at org.arquillian.cube.openshift.impl.resources.OpenShiftResourceFactory.createResources(OpenShiftResourceFactory.java:66)
	... 38 more
Caused by: java.net.MalformedURLException: no protocol: {
  "apiVersion": "v1",
  "kind": "ServiceAccount",
  "metadata": {
    "name": "eap-service-account"
  }
}
	at java.net.URL.<init>(URL.java:593)
	at java.net.URL.<init>(URL.java:490)
	at java.net.URL.<init>(URL.java:439)
	at org.arquillian.cube.kubernetes.impl.resolver.ResourceResolver.resolve(ResourceResolver.java:27)
	... 40 more

goldmann added a commit to goldmann/arquillian-cube that referenced this issue Apr 17, 2018

goldmann added a commit to goldmann/arquillian-cube that referenced this issue Jun 5, 2018

goldmann added a commit to goldmann/arquillian-cube that referenced this issue Jun 5, 2018

goldmann added a commit to goldmann/arquillian-cube that referenced this issue Jun 5, 2018

goldmann added a commit to goldmann/arquillian-cube that referenced this issue Jun 5, 2018

goldmann added a commit to goldmann/arquillian-cube that referenced this issue Jun 5, 2018

goldmann added a commit to goldmann/arquillian-cube that referenced this issue Jun 7, 2018

goldmann added a commit to goldmann/arquillian-cube that referenced this issue Jun 7, 2018

goldmann added a commit to goldmann/arquillian-cube that referenced this issue Jun 7, 2018

goldmann added a commit to goldmann/arquillian-cube that referenced this issue Jun 7, 2018

goldmann added a commit to goldmann/arquillian-cube that referenced this issue Jun 7, 2018

goldmann added a commit to goldmann/arquillian-cube that referenced this issue Jun 7, 2018

@dipak-pawar dipak-pawar added this to the 1.16.0 milestone Jun 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment