geocloud2
geocloud2 copied to clipboard
Write more API tests
Tests in GC2 are performed with Codeception. There are some tests written for the APIs , but far from full coverage. This issue will be kept opened and new tests cases will be added over time
API tests are written here:
https://github.com/mapcentia/geocloud2/blob/master/app/tests/api/DatabaseManagementCest.php
WFS-t protected data source
Read (GET are covered ):
- [ ] Should get data from wfst as super user outside session using post
- [ ] Should not get data from wfst as super user outside session using post
- [ ] Should not get data from wfst as sub user outside session using post
- [ ] Should get data from wfst as super user inside session using post
- [ ] Should not get data from wfst as sub user inside session using post
- [ ] Should get data from wfst as sub user inside session using post
Write:
- [ ] should not write data over wfst as super user outside session
- [ ] should not write data over wfst as subUser outside session
- [x] Should not insert feature from wfst as sub user from with in session and without write privileges
- [x] Should not insert feature from wfst as sub user with basic auth and without write privileges
- [x] Should insert feature from wfst as sub user from with in session
- [x] Should update feature from wfst as sub user from with in session
- [x] Should delete feature from wfst as sub user from with in session
- [x] Should insert feature from wfst as sub user with basic auth