Comment 4 for bug 1708959

Revision history for this message
Niranjan (niranjan528) wrote :

Bug description: Web service create group missing some settings

URL: https://bugs.launchpad.net/mahara/+bug/1708959

Environment to be Tested: Master branch
Browsers to be tested: Not applicable

Precondition:

1. An institution 'Institution A' should be existing
2.‘Internal’ and ‘Web services’ authentication plug-ins should already be set up for ‘Institution A’.
3.Site admin user ‘admin’ is set up.

*Steps to Reproduce:*

1. Login as Admin user.
2. Navigate to Administration menu > Web services > Configuration.
3. Select the 'Enable web service functionality' panel and set the switches for 'Web service provider master switch' and 'Rest' protocol to ‘Yes’.
4. Select 'Manage service groups' panel.
5. Enter ‘Test’ as name of the service and click the ‘Add’ button.
6. Click the ‘Edit’ button for the 'Test' service.
7. Set the ‘Service’ switch to ‘Yes’ under the 'Enable or disable the service' panel.
8. Switch ‘mahara_group_create_groups’to ‘Yes’ under 'Functions allocated against the service' panel.
9. Click the ‘Save’ button.
10. Click the ‘Back’ button.
11. Now click on 'Manage service access tokens' panel.
12. Enter the user name ‘admin’ and select the user name from the search results.
13. Click the 'Generate token' button.
14. Select the institution ‘Institution A’ and choose the service ‘Test’.
15. Click the ‘Save’ button.
16. Copy the ‘Token’ associated with ‘Admin’ user.
17. Navigate to Administration Menu > Web services > Test Client.
18. Select ‘REST from ‘Protocol’ drop down.
19. Select ‘Token’ from the 'Authentication type’ drop down.
20. Click the ‘Next’ button.
21. From the 'Service' drop down select the service ‘Test’.
22. Click the 'Next' button.
23. From the 'Functions' drop down select ‘mahara_group_create_groups’.
24. Click the 'Next' button.

Expected Result: The following description should be displayed for switches associated with it

“Switch” - “Description”

hidden - Hide group
hidemembers - Hide membership
hidemembersfrommembers - Hide membership
groupparticipationreports - Participation report
feedbacknotify - Comment notifications

And also For 'viewnotify', 4 options should be mentioned in the field description: 0 = None, 1 = All group members, 2 = Everyone except ordinary members, 3 = Group administrators.

25. Fill in the following required fields

"Field name" - "Description"

 name - Groupone
 description - Create a group
 grouptype - Standard
 members/username - admin
 members/role - admin
 and make sure to use the switches at step 24.

23. Paste the token that is copied at step 16.
24. Click the ‘Execute’ button.

Expected result: The group ‘Groupone’ is created with correct settings.
Actual result: The group 'Groupone' is created with correct settings.