Uploaded image for project: 'mod-users'
  1. mod-users
  2. MODUSERS-108

PUT new User returns 204

    XMLWordPrintable

Details

    • Core: Platform - Sprint 59
    • 0.5
    • Core: Platform

    Description

      A new user that is PUTed returns 204 - no content. Yet, the user does not exist.
      (note if an existing user is PUTed - updated OK - 204 is also returned. That's ok)

      Expects either: 404, not found if not willing to create user
      or 200/201/204 if willing to create new user

      curl -d'{"module_to":"mod-x-1.0.0"}' -HAccept:application/json -HContent-Type:application/json -HX-Okapi-url:http://localhost:8081 -HX-Okapi-Tenant:testlib http://localhost:8081/_/tenant
      
      curl -D- "-HAccept:application/json, text/plain" -HContent-Type:application/json -HX-Okapi-url:http://localhost:8081 -HX-Okapi-Tenant:testlib -XPUT -d@tuser.json http://localhost:8081/users/47f7eaea-1a18-4058-907c-62b7d095c61b
      HTTP/1.1 204 No Content
      host: localhost:8081
      user-agent: curl/7.58.0
      accept: application/json, text/plain
      x-okapi-url: http://localhost:8081
      x-okapi-tenant: testlib
      
      curl -D- "-HAccept:application/json, text/plain" -HContent-Type:application/json -HX-Okapi-url:http://localhost:8081 -HX-Okapi-Tenant:testlib  http://localhost:8081/users
      HTTP/1.1 200 OK
      Transfer-Encoding: chunked
      Content-Type: application/json
      host: localhost:8081
      user-agent: curl/7.58.0
      accept: application/json, text/plain
      x-okapi-url: http://localhost:8081
      x-okapi-tenant: testlib
      
      {
        "users" : [ ],
        "totalRecords" : 0,
        "resultInfo" : {
          "totalRecords" : 0,
          "facets" : [ ],
          "diagnostics" : [ ]
        }
      }
      

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                adam Adam Dickmeiss
                adam Adam Dickmeiss
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases