Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-5349

Google mock service can't fetch an individual group

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 4.11.0
    • provisioning
    • None

    Description

      When testing incremental provisioning against the Google mock service handler, creating a group results in the error "java.lang.RuntimeException: There are 2 groups found for name: test:testGroup3". The two groups are for other groups that had already been provisioned. The inability to fetch a single group means that incremental provisioning of a group  cannot be accurately tested.

      The api call being made is: /groups?domain=example.edu&maxResults=200&fields=nextPageToken,groups(id,email,name,description)&query=name%3D%27test:testGroup3%27

       

      This returns back two different groups, neither of which is the one group it specified:

      0 = \{ObjectNode@16995} "\{"id":"a6b0e706e54d437fbe50d4c5c777b987","name":"test:testGroup","description":null,"email":"test:testGroup"}"
      1 = \{ObjectNode@16996} "\{"id":"f7d8ff131ffe4e01a53b2bbb2c2255c2","name":"test:testGroup1","description":null,"email":"test:testGroup1"}"
      

      The GoogleMockServiceHandler class getGroups() method does not look at any query parameters other than the limit and page. The getGroups() query is always "from GrouperGoogleGroup where email > :pageToken" and will always return every group.
       

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            vivek.sachdeva@at.internet2.edu Vivek Sachdeva (google.com)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: