Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-8267

[fabric8-arquillian] KubernetesClientException essage: Forbidden! User doesn't have permission..

    Details

    • Sprint:
      FIS 2.0 Sprint 8

      Description

      Running fabric8-arquillian tests on spring-boot-camel archetype fails

      mvn verify -Dfabric8.generator.from=docker-registry.usersys.redhat.com/fabric8/fis-java-openshift:2.0 -Dfabric8.mode=openshift -Dfabric8.imagePullPolicy=Always -Dfabric8.build.strategy=s2i
      
      -------------------------------------------------------
       T E S T S
      -------------------------------------------------------
      Running com.redhat.xpaas.qe.KubernetesIntegrationKT
      Initializing Session:7c9bc084-bdbc-4053-99d6-978a705ff377
      Using Kubernetes at: https://api.devel.xpaas:8443/
      Creating kubernetes resources inside namespace: itest-7c9bc084-bdbc-4053-99d6-978a705ff377
      if you use OpenShift then type this switch namespaces:     oc project itest-7c9bc084-bdbc-4053-99d6-978a705ff377
      if you use kubernetes then type this to switch namespaces: kubectl namespace itest-7c9bc084-bdbc-4053-99d6-978a705ff377
      11:52:37.311 [main] INFO  o.h.validator.internal.util.Version - HV000001: Hibernate Validator 5.2.4.Final
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.683 sec <<< FAILURE! - in com.redhat.xpaas.qe.KubernetesIntegrationKT
      com.redhat.xpaas.qe.KubernetesIntegrationKT  Time elapsed: 1.683 sec  <<< ERROR!
      io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://api.devel.xpaas:8443/api/v1/namespaces/itest-7c9bc084-bdbc-4053-99d6-978a705ff377. Message: Forbidden! User xpaasqe/api-devel-xpaas:8443 doesn't have permission..
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:314)
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:265)
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:236)
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:229)
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleGet(OperationSupport.java:225)
      	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.handleGet(BaseOperation.java:559)
      	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.get(BaseOperation.java:134)
      	at io.fabric8.arquillian.utils.Namespaces.checkNamespace(Namespaces.java:50)
      	at io.fabric8.arquillian.kubernetes.SessionListener.start(SessionListener.java:101)
      	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:94)
      	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
      	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
      	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
      	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
      	at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
      	at io.fabric8.arquillian.kubernetes.SuiteListener.start(SuiteListener.java:44)
      	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:94)
      	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
      	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
      	at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:73)
      	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:94)
      	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
      	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
      	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
      	at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeSuite(EventTestRunnerAdaptor.java:75)
      	at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:115)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      
      
      Results :
      
      Tests in error: 
        KubernetesIntegrationKT.com.redhat.xpaas.qe.KubernetesIntegrationKT ยป KubernetesClient
      
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  maschmid Marek Schmidt
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: