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 <[email protected]> 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
