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:23:14 UTC

[sling-whiteboard] branch master updated: Move URL setup to config file

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 da37e2f  Move URL setup to config file
da37e2f is described below

commit da37e2f8176ff1f3ce72019a512d23beab632e1e
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Fri Jul 27 15:23:06 2018 +0200

    Move URL setup to config file
---
 literate-http-testing/karate/src/test/java/karate-config.js           | 2 +-
 .../test/java/sling/postservlet/createcontent/createContent.feature   | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/literate-http-testing/karate/src/test/java/karate-config.js b/literate-http-testing/karate/src/test/java/karate-config.js
index 1c5e763..e1b5b8a 100644
--- a/literate-http-testing/karate/src/test/java/karate-config.js
+++ b/literate-http-testing/karate/src/test/java/karate-config.js
@@ -6,7 +6,7 @@ function() {
   }
   var config = {
     env: env,
-	myVarName: 'someValue'
+    baseURL: 'http://localhost:8080'
   }
   if (env == 'dev') {
     // customize
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 a0967f5..6c105c4 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
@@ -4,9 +4,7 @@ Feature: create content using the Sling POST Servlet
 Background:
 # ------------------------------------------------------------------------
 
-# TODO for now you need to start Sling manually
-# TODO get the URL from the environment
-* url 'http://localhost:8080'
+* url baseURL
 
 # Use admin credentials for all requests
 * def encodedAuth = call read('basic-auth.js') { username: 'admin', password: 'admin' }