Uploaded image for project: 'OpenICF'
  1. OpenICF
  2. OPENICF-780

PS connector specifying snapshot version in provisioner does not work

    XMLWordPrintable

Details

    • OpenIDM Sprint 6.5-10.1

    Description

      When snapshot version of PS connector is deployed and the exact version of the connector including the -SNAPSHOT is put into provisioner, the connector is not found. If version range from -SNAPSHOT to -SNAPSHOT is used, it works. When exact version without -SNAPSHOT is used it works as well. The version in the MsPowerShell.Connector.dll properties/details is 1.4.4.0 though.

      To reproduce:

      1. deploy attached remote .NET connector server and start it
      2. setup IDM to connect to .net connector server
      3. Deploy a snapshot version of connector to .NET server. (For example This one
      4. Run following tests:
        1. Test "bundleVersion": "1.4.4.0-SNAPSHOT", - SHOULD BE OK
      curl -u openidm-admin:openidm-admin -H "content-type: application/json" -X POST --data @request-SNAPSHOT.txt "http://localhost:8080/openidm/system/?_action=testConfig" | python -mjson.tool
      
      {
          "error": "OpenICF ConnectorInfo for ConnectorReference( connectorHostRef=remote bundleName=MsPowerShell.Connector bundleVersion=1.4.4.0-SNAPSHOT connectorName=Org.ForgeRock.OpenICF.Connectors.MsPowerShell.MsPowerShellConnector ) is notavailable yet.",
          "ok": false
      }
      
        1. Test "bundleVersion": "1.4.4.0" - SHOULD BE FALSE
      curl -u openidm-admin:openidm-admin -H "content-type: application/json" -X POST --data @request.txt "http://localhost:8080/openidm/system/?_action=testConfig" | python -mjson.tool
      {
          "ok": true
      }
      
        1. test version range "bundleVersion": "[1.4.4.0-SNAPSHOT, 1.4.4.0-SNAPSHOT]" - how come this works?
          curl -u openidm-admin:openidm-admin -H "content-type: application/json" -X POST --data @request-SNAPSHOT-range.txt "http://localhost:8080/openidm/system/?_action=testConfig" | python -mjson.tool
          {
              "ok": true
          }
          

      QA note: automated test name bundleVersion_valid_value

      Attachments

        1. DOTNET.zip
          2.01 MB
        2. PSconnectorversion.jpeg
          PSconnectorversion.jpeg
          100 kB
        3. request.txt
          10 kB
        4. request-SNAPSHOT.txt
          10 kB
        5. request-SNAPSHOT-Range.txt
          10 kB

        Activity

          People

            gael Gael Allioux
            Ladislav.Folta Ladislav Folta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: