It looks like you have the webconsole bundles in your configuration so if
you can figure out what http port it is running on, then you can try using
the felix webconsole at http://localhost:[httpPort]/system/console to
inspect what is there.  This is assuming you can keep the test running long
enough to see what you need to.


On Fri, Feb 26, 2021 at 11:34 AM Cris Rockwell <[email protected]> wrote:

> Thanks again Eric and Bertand for the feedback. After more wrangling the
> osgi wiring, a basic test passed.
>
>
> https://github.com/apache/sling-whiteboard/blob/SLING-9397/improve-test-coverage/saml-handler/src/test/java/org/apache/sling/auth/saml2/impl/SamlHandlerIT.java
>
> But to write useful tests, I need a reference to my AuthenticationHandler
> service
>
> @Inject
> @Filter(value = "(authtype=SAML2)")
> protected AuthenticationHandler samlHandler;
>
>
> This seems to timeout.
> [INFO] Running org.apache.sling.auth.saml2.impl.SamlHandlerIT
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> 18.081 s <<< FAILURE! - in org.apache.sling.auth.saml2.impl.SamlHandlerIT
> [ERROR] org.apache.sling.auth.saml2.impl.SamlHandlerIT.test_setup  Time
> elapsed: 17.603 s  <<< ERROR!
> org.ops4j.pax.swissbox.tracker.ServiceLookupException: gave up waiting for
> service org.apache.sling.auth.core.spi.AuthenticationHandler
>
> I can get reference using @Filter(value = "(authtype=FORM)")
>
> Is there a way to get a list of bundle status from the PAX instance?
>
>
> On Fri, Feb 26, 2021 at 12:54 PM Bertrand Delacretaz <
> [email protected]>
> wrote:
>
> > Hi,
> >
> > On Fri, Feb 26, 2021 at 6:31 PM Eric Norman <[email protected]> wrote:
> > > ...Someday, maybe the sling feature model could be used to derive the
> > paxexam
> > > configuration so it would be less mysterious and easier to debug?..
> >
> > That would be great, and in the meantime I suppose the various
> > versions of the lists of bundles at [1] can help find out about the
> > right combinations. Assuming those are not defined in [2] already.
> >
> > -Bertrand
> >
> > [1]
> >
> https://github.com/apache/sling-org-apache-sling-starter/tree/master/src/main/features
> > [2] https://github.com/apache/sling-org-apache-sling-testing-paxexam
> >
>

Reply via email to