You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2018/07/27 13:37:17 UTC
[sling-whiteboard] branch master updated: Cleanup test folder
This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git
The following commit(s) were added to refs/heads/master by this push:
new f96ac30 Cleanup test folder
f96ac30 is described below
commit f96ac30acce34426a46cffb85dacc89d7801255b
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Fri Jul 27 15:37:09 2018 +0200
Cleanup test folder
---
.../sling/postservlet/createcontent/createContent.feature | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/literate-http-testing/karate/src/test/java/sling/postservlet/createcontent/createContent.feature b/literate-http-testing/karate/src/test/java/sling/postservlet/createcontent/createContent.feature
index 97bb063..1a88cb8 100644
--- a/literate-http-testing/karate/src/test/java/sling/postservlet/createcontent/createContent.feature
+++ b/literate-http-testing/karate/src/test/java/sling/postservlet/createcontent/createContent.feature
@@ -12,6 +12,7 @@ Background:
* configure headers = call read('basic-auth-header.js') { username: 'admin', password: 'admin' }
* def testID = '' + java.util.UUID.randomUUID()
+* def testFolderPath = '/createContentTest' + testID
# ------------------------------------------------------------------------
Scenario: Check access to the Sling instance under test
@@ -25,7 +26,7 @@ Then status 200
# ------------------------------------------------------------------------
# Create a resource
-Given path '/createContentTest/*'
+Given path testFolderPath + '/*'
And form field f1 = 'v1A' + testID
And form field f2 = 'v2A'
When method POST
@@ -64,3 +65,12 @@ Then status 204
Given path resourcePath
When method GET
Then status 404
+
+# Cleanup test folder
+Given path testFolderPath
+When method DELETE
+Then status 204
+
+Given path testFolderPath
+When method GET
+Then status 404
\ No newline at end of file