Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4228

Multi-value sling:alias property test fails (ResourceResolverTest)

    XMLWordPrintableJSON

Details

    Description

      The ResourceResolverTest.test_resolve_with_sling_alias_multi_value server-side integration test currently fails.

      I ran it on revision 1640140 of the resourceresolver and it passes, so it looks like it's http://svn.apache.org/r1640141 that broke it, which points to asanso committing SLING-3844

      That test sets a multi-value sling:alias property on its test node with

      { "kind", "enfant" }

      as values - I'm not sure how that's supposed to work but the behavior has definitely changed.

      FWIW here's how to quickly run this server-side test:

      $ cd launchpad/testing
      $ mvn clean launchpad:run
      
      # in another terminal
      $ curl -X POST http://localhost:8888/system/sling/junit/org.apache.sling.launchpad.testservices.serversidetests.ResourceResolverTest/test_resolve_with_sling_alias_multi_value.json
      
      ...
          "failure": "test_resolve_with_sling_alias_multi_value(org.apache.sling.launchpad.testservices.serversidetests.ResourceResolverTest): expected:<\/[kind]> but was:<\/[enfant]>",
      

      The ResourceResolverTest can then be debugged out of the launchpad/test-services module.

      Attachments

        Issue Links

          Activity

            People

              asanso Antonio Sanso
              bdelacretaz Bertrand Delacretaz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: