Comment 3 for bug 1829943

Revision history for this message
Rangi Daymond (rangid) wrote :

- Code/Gerrit: https://reviews.mahara.org/#/c/10437/ patch 4 of 4
- OS: Ubuntu 18.04
- DB: Postgres
- Browser: Firefox

Preconditions:

In Terminal and Postgres:
1. Connect to the database
postgres=# \c mahara-master
You are now connected to database "mahara-master" as user "postgres".

2. Ensure that the Moodle application is present in the Applications table
 mahara-master=# select * from application;
  name | displayname | xmlrpcserverurl | ssolandurl
 --------+-------------+-------------------------+-----------------------
 mahara | Mahara | /api/xmlrpc/server.php | /auth/xmlrpc/land.php
 moodle | Moodle | /mnet/xmlrpc/server.php | /auth/mnet/land.php
(2 rows)

3. Log in to Mahara as the SiteAdministrator
4. Add a new institution via Administration menu > Settings > Add institution button (used Institution name 'moodle")

5. Back in Terminal and Postgres, insert the (fake) moodle host details
mahara-master=# select * from host;
mahara-master=# insert into host values('http://moodle','Moodle', 'moodle','127.0.0.1','moodle','thisisfake','1568586997',0,0);
INSERT 0 1

6. Back in Mahara - create a new page view and note down it's id value (displayed at the end of the browser page URL e.g. address http://mahara.rdaymond.wgtn.cat-it.co.nz/view/blocks.php?id=7, is 7)

7. Update the new page's submittedhost field to the host URL value (see above)
mahara-master=# update view set submittedhost = 'http://moodle' where id = 7;
UPDATE 1

Test step:

SiteAdministrator navigates to Administration menu > Settings then selects the delete/tash can icon that is displayed to the right of the target institution's edit/cog icon.

Expected result: Once the SiteAdministrator confirms the institution delete, the row is removed from the Administer institutions tabe. ✔
When the user attempts to navigate to the created page view via its address (see example used above), a 'Page not found - You tried to access a page that does not exist.' ✔

Catalyst QA Approved ✔