Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-4985

auth-utils obtainDirectly doesn't work with Keycloak 3.2.0.CR1

    XMLWordPrintable

Details

    • Hide
      • Build the latest distribution from the master branch
      • Run it as
        standalone.sh -Djava.net.preferIPv4Stack=true \
                                    -Dkeycloak.migration.action=import \
                                    -Dkeycloak.migration.provider=singleFile \
                                    -Dkeycloak.migration.file=path-to-keycloak-nodejs-auth-utils/test/fixtures/keycloak-fixture.json \
                                    -Dkeycloak.migration.strategy=OVERWRITE_EXISTING
        
      • install the latest auth-utils from master branch (npm install)
      • run the tests (npm test)
      Show
      Build the latest distribution from the master branch Run it as standalone.sh -Djava.net.preferIPv4Stack=true \ -Dkeycloak.migration.action=import \ -Dkeycloak.migration.provider=singleFile \ -Dkeycloak.migration.file=path-to-keycloak-nodejs-auth-utils/test/fixtures/keycloak-fixture.json \ -Dkeycloak.migration.strategy=OVERWRITE_EXISTING install the latest auth-utils from master branch (npm install) run the tests (npm test)
    • NEW
    • VERIFIED

    Description

      Tested with the current upstream (master branch).
      Nearly all auth-utils tests are failing. Seems like some problem with obtainDirectly.

      For reference, I also run the tests with 3.1.0.Final without any problem.

      > keycloak-auth-utils@3.1.0 test /home/vmuzikar/Projects/keycloak-nodejs-auth-utils
      > tape test/integration/*-spec.js | tap-spec && tape test/unit/*-test.js | tap-spec
      
      
        GrantManager with empty configuration
      
          ✔ should throw
      
        GrantManager with rogue configuration
      
          ✔ should be equal
          ✔ should be equal
          ✔ should be equal
          ✔ should be equal
      
        GrantManager in public mode should be able to obtain a grant
      
      Validate grant failed
      Grant validation failed. Reason: invalid token (missing)
      (node:24615) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'access_token' of undefined
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
          ✖ test exited without ending
          -----------------------------
            operator: fail
      
      
      
      
        Failed Tests: There were 39 failures
      
          GrantManager in public mode should be able to obtain a grant
      
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
            ✖ test exited without ending
      
      
        total:     44
        passing:   5
        failing:   39
        duration:  442ms
      
      
      npm ERR! Test failed.  See above for more details.
      

      Attachments

        Issue Links

          Activity

            People

              boliveir_managed_kafka_security (inactive user) Bruno Oliveira Silva
              rh_vmuzikar Václav Muzikář
              Václav Muzikář Václav Muzikář
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: