You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bv...@apache.org on 2021/01/01 13:06:38 UTC

[camel-examples] branch improve-camel-example-spring-security-scripts created (now 2a23556)

This is an automated email from the ASF dual-hosted git repository.

bvahdat pushed a change to branch improve-camel-example-spring-security-scripts
in repository https://gitbox.apache.org/repos/asf/camel-examples.git.


      at 2a23556  improve the scripts of camel-example-spring-security

This branch includes the following new commits:

     new 2a23556  improve the scripts of camel-example-spring-security

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel-examples] 01/01: improve the scripts of camel-example-spring-security

Posted by bv...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bvahdat pushed a commit to branch improve-camel-example-spring-security-scripts
in repository https://gitbox.apache.org/repos/asf/camel-examples.git

commit 2a235566af03369bd17aba77fd66880f36af283c
Author: Babak Vahdat <bv...@apache.org>
AuthorDate: Fri Jan 1 14:06:18 2021 +0100

    improve the scripts of camel-example-spring-security
---
 examples/camel-example-spring-security/client/access-admin-as-bob.sh   | 3 ++-
 examples/camel-example-spring-security/client/access-admin-as-jim.sh   | 3 ++-
 .../client/{access-user-no-auth.sh => access-admin-no-auth.sh}         | 3 ++-
 .../client/{access-admin-as-bob.sh => access-user-as-bob.sh}           | 3 ++-
 examples/camel-example-spring-security/client/access-user-as-jim.sh    | 3 ++-
 examples/camel-example-spring-security/client/access-user-no-auth.sh   | 3 ++-
 6 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/examples/camel-example-spring-security/client/access-admin-as-bob.sh b/examples/camel-example-spring-security/client/access-admin-as-bob.sh
index 1ba3e31..4c3f450 100755
--- a/examples/camel-example-spring-security/client/access-admin-as-bob.sh
+++ b/examples/camel-example-spring-security/client/access-admin-as-bob.sh
@@ -18,5 +18,6 @@
 
 rm -rf work
 mkdir work
-wget --http-user=bob --http-password=bobspassword --directory-prefix=work  --output-file=work/log.txt http://localhost:8080/camel/admin
+POM_VERSION=$(mvn -f ../pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout)
+wget --http-user=bob --http-password=bobspassword --directory-prefix=work  --output-file=work/log.txt http://localhost:8080/camel-example-spring-security-$POM_VERSION/camel/admin
 cat -n work/* | less
diff --git a/examples/camel-example-spring-security/client/access-admin-as-jim.sh b/examples/camel-example-spring-security/client/access-admin-as-jim.sh
index 314da06..a4a9fdb 100755
--- a/examples/camel-example-spring-security/client/access-admin-as-jim.sh
+++ b/examples/camel-example-spring-security/client/access-admin-as-jim.sh
@@ -18,5 +18,6 @@
 
 rm -rf work
 mkdir work
-wget --http-user=jim --http-password=jimspassword --directory-prefix=work  --output-file=work/log.txt http://localhost:8080/camel/admin
+POM_VERSION=$(mvn -f ../pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout)
+wget --http-user=jim --http-password=jimspassword --directory-prefix=work  --output-file=work/log.txt http://localhost:8080/camel-example-spring-security-$POM_VERSION/camel/admin
 cat -n work/* | less
diff --git a/examples/camel-example-spring-security/client/access-user-no-auth.sh b/examples/camel-example-spring-security/client/access-admin-no-auth.sh
similarity index 84%
copy from examples/camel-example-spring-security/client/access-user-no-auth.sh
copy to examples/camel-example-spring-security/client/access-admin-no-auth.sh
index 748d626..505a90b 100755
--- a/examples/camel-example-spring-security/client/access-user-no-auth.sh
+++ b/examples/camel-example-spring-security/client/access-admin-no-auth.sh
@@ -18,5 +18,6 @@
 
 rm -rf work
 mkdir work
-wget --directory-prefix=work  --output-file=work/log.txt http://localhost:8080/camel/user
+POM_VERSION=$(mvn -f ../pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout)
+wget --directory-prefix=work  --output-file=work/log.txt http://localhost:8080/camel-example-spring-security-$POM_VERSION/camel/admin
 cat -n work/* | less
diff --git a/examples/camel-example-spring-security/client/access-admin-as-bob.sh b/examples/camel-example-spring-security/client/access-user-as-bob.sh
similarity index 87%
copy from examples/camel-example-spring-security/client/access-admin-as-bob.sh
copy to examples/camel-example-spring-security/client/access-user-as-bob.sh
index 1ba3e31..13aeff5 100755
--- a/examples/camel-example-spring-security/client/access-admin-as-bob.sh
+++ b/examples/camel-example-spring-security/client/access-user-as-bob.sh
@@ -18,5 +18,6 @@
 
 rm -rf work
 mkdir work
-wget --http-user=bob --http-password=bobspassword --directory-prefix=work  --output-file=work/log.txt http://localhost:8080/camel/admin
+POM_VERSION=$(mvn -f ../pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout)
+wget --http-user=bob --http-password=bobspassword --directory-prefix=work  --output-file=work/log.txt http://localhost:8080/camel-example-spring-security-$POM_VERSION/camel/user
 cat -n work/* | less
diff --git a/examples/camel-example-spring-security/client/access-user-as-jim.sh b/examples/camel-example-spring-security/client/access-user-as-jim.sh
index db0f3d3..670de11 100755
--- a/examples/camel-example-spring-security/client/access-user-as-jim.sh
+++ b/examples/camel-example-spring-security/client/access-user-as-jim.sh
@@ -18,5 +18,6 @@
 
 rm -rf work
 mkdir work
-wget --http-user=jim --http-password=jimspassword --directory-prefix=work  --output-file=work/log.txt http://localhost:8080/camel/user
+POM_VERSION=$(mvn -f ../pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout)
+wget --http-user=jim --http-password=jimspassword --directory-prefix=work  --output-file=work/log.txt http://localhost:8080/camel-example-spring-security-$POM_VERSION/camel/user
 cat -n work/* | less
diff --git a/examples/camel-example-spring-security/client/access-user-no-auth.sh b/examples/camel-example-spring-security/client/access-user-no-auth.sh
index 748d626..44061d2 100755
--- a/examples/camel-example-spring-security/client/access-user-no-auth.sh
+++ b/examples/camel-example-spring-security/client/access-user-no-auth.sh
@@ -18,5 +18,6 @@
 
 rm -rf work
 mkdir work
-wget --directory-prefix=work  --output-file=work/log.txt http://localhost:8080/camel/user
+POM_VERSION=$(mvn -f ../pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout)
+wget --directory-prefix=work  --output-file=work/log.txt http://localhost:8080/camel-example-spring-security-$POM_VERSION/camel/user
 cat -n work/* | less