commit | 29c45d9cbc0ea1f4225dbd8b55ced650f9b06ef8 | [log] [tgz] |
---|---|---|
author | Robert Munteanu <rombert@apache.org> | Wed Jan 30 09:52:43 2019 +0100 |
committer | Robert Munteanu <rombert@apache.org> | Wed Jan 30 09:52:43 2019 +0100 |
tree | b4c0c59fe6bd48332c4637942de1c4aaf2c2069d | |
parent | 6ad88affa6d8ad495742655ed9c11cfcb0ef783a [diff] |
SLING-7245 - Validate pull requests using Jenkins
This module is part of the Apache Sling project.
Start a Sling launchpad
Install the org.apache.sling.validation.api
and org.apache.sling.validation.core
bundles:
cd ../api mvn clean package sling:install cd ../core mvn clean package sling:install cd ../examples mvn clean package sling:install
curl -u admin:admin -Fsling:resourceType=/apps/validationdemo/components/user -Fusername=johnsmith -FfirstName=John204 -FlastName=Smith http://127.0.0.1:8080/content/validationdemo/users/johnsmith.modify.html
Check that the resource has not been modified at http://127.0.0.1:8080/content/validationdemo/users/johnsmith.html.
curl -u admin:admin -Fsling:resourceType=/apps/validationdemo/components/user -Fusername=johnsmith -FfirstName=Johnny -FlastName=Bravo http://127.0.0.1:8080/content/validationdemo/users/johnsmith.modify.html
Check that the resource has been modified at http://127.0.0.1:8080/content/validationdemo/users/johnsmith.html.