diff options
author | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2018-03-08 14:11:15 -0800 |
---|---|---|
committer | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2018-03-08 14:11:19 -0800 |
commit | 8c18c6463962cffd5eec869f7fa2aff6a6fdbec6 (patch) | |
tree | 16c9eaefa866158b8d5ef21ecc6f8c4440f5caf7 /sms-service | |
parent | 4df18682f5ce81cee1b4c2bfd90f0eb2e8800ae0 (diff) |
Adding url configuration for endpoint tests
URL is now a command line parameter for endpoint tests
Issue-ID: AAF-161
Change-Id: I6f740ad5cbbd3c73ee7e9a4556acef360a1aefa5
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'sms-service')
-rw-r--r-- | sms-service/src/sms/Gopkg.lock | 29 | ||||
-rw-r--r-- | sms-service/src/sms/Gopkg.toml | 6 | ||||
-rw-r--r-- | sms-service/src/sms/test/loop_test.sh | 27 |
3 files changed, 44 insertions, 18 deletions
diff --git a/sms-service/src/sms/Gopkg.lock b/sms-service/src/sms/Gopkg.lock index b69eb59..02e2de6 100644 --- a/sms-service/src/sms/Gopkg.lock +++ b/sms-service/src/sms/Gopkg.lock @@ -77,10 +77,11 @@ "api", "helper/compressutil", "helper/jsonutil", - "helper/parseutil" + "helper/parseutil", + "helper/strutil" ] - revision = "5acd6a21d5a69ab49d0f7c0bf540123a9b2c696d" - version = "v0.9.3" + revision = "36edb4d42380d89a897e7f633046423240b710d9" + version = "v0.9.5" [[projects]] branch = "master" @@ -95,6 +96,12 @@ revision = "b4575eea38cca1123ec2dc90c26529b5c5acfcff" [[projects]] + name = "github.com/ryanuber/go-glob" + packages = ["."] + revision = "572520ed46dbddaed19ea3d9541bdd0494163693" + version = "v0.1" + +[[projects]] branch = "master" name = "github.com/sethgrid/pester" packages = ["."] @@ -102,6 +109,20 @@ [[projects]] branch = "master" + name = "golang.org/x/crypto" + packages = [ + "cast5", + "openpgp", + "openpgp/armor", + "openpgp/elgamal", + "openpgp/errors", + "openpgp/packet", + "openpgp/s2k" + ] + revision = "85f98707c97e11569271e4d9b3d397e079c4f4d0" + +[[projects]] + branch = "master" name = "golang.org/x/net" packages = [ "http2", @@ -135,6 +156,6 @@ [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "c49b267ee83a36c520ae964867f725fc7d934296f38240152e6eec2842846ac0" + inputs-digest = "7308c3e7f4b4c4536cbae1a89e132c8512650127871bb669a679d81f4563ed92" solver-name = "gps-cdcl" solver-version = 1 diff --git a/sms-service/src/sms/Gopkg.toml b/sms-service/src/sms/Gopkg.toml index 6e40849..f811086 100644 --- a/sms-service/src/sms/Gopkg.toml +++ b/sms-service/src/sms/Gopkg.toml @@ -26,8 +26,12 @@ [[constraint]] name = "github.com/hashicorp/vault" - version = "0.9.3" + version = "0.9.4" [[constraint]] branch = "master" name = "github.com/hashicorp/go-uuid" + +[[constraint]] + branch = "master" + name = "golang.org/x/crypto" diff --git a/sms-service/src/sms/test/loop_test.sh b/sms-service/src/sms/test/loop_test.sh index 449d625..40fbfc5 100644 --- a/sms-service/src/sms/test/loop_test.sh +++ b/sms-service/src/sms/test/loop_test.sh @@ -1,57 +1,58 @@ #!/bin/bash RED='\033[0;31m' NC='\033[0m' +URL=$1 for i in `seq 1 2`; do echo -e "${RED}----------------BEGIN GET STATUS----------------${NC}" curl -i -w "\n" -H "Accept: application/json" --cacert auth/selfsignedca.pem --cert auth/client.cert --key auth/client.key -X GET \ - https://localhost:10443/v1/sms/status + https://${URL}:10443/v1/sms/status echo -e "${RED}----------------BEGIN CREATE SECRET DOMAIN------${NC}" curl -i -w "\n" -H "Accept: application/json" --cacert auth/selfsignedca.pem --cert auth/client.cert --key auth/client.key -X POST \ - -d @test/test_create_domain.json https://localhost:10443/v1/sms/domain + -d @test/test_create_domain.json https://${URL}:10443/v1/sms/domain echo -e "${RED}----------------BEGIN CREATE SECRET 1-----------${NC}" curl -i -w "\n" -H "Accept: application/json" --cacert auth/selfsignedca.pem --cert auth/client.cert --key auth/client.key -X POST \ - -d @test/test_create_secret1.json https://localhost:10443/v1/sms/domain/curltestdomain/secret + -d @test/test_create_secret1.json https://${URL}:10443/v1/sms/domain/curltestdomain/secret echo -e "${RED}----------------BEGIN CREATE SECRET 2-----------${NC}" curl -i -w "\n" -H "Accept: application/json" --cacert auth/selfsignedca.pem --cert auth/client.cert --key auth/client.key -X POST \ - -d @test/test_create_secret2.json https://localhost:10443/v1/sms/domain/curltestdomain/secret + -d @test/test_create_secret2.json https://${URL}:10443/v1/sms/domain/curltestdomain/secret echo -e "${RED}----------------BEGIN CREATE SECRET 3-----------${NC}" curl -i -w "\n" -H "Accept: application/json" --cacert auth/selfsignedca.pem --cert auth/client.cert --key auth/client.key -X POST \ - -d @test/test_create_secret3.json https://localhost:10443/v1/sms/domain/curltestdomain/secret + -d @test/test_create_secret3.json https://${URL}:10443/v1/sms/domain/curltestdomain/secret echo -e "${RED}----------------BEGIN LIST SECRET---------------${NC}" curl -i -w "\n" -H "Accept: application/json" --cacert auth/selfsignedca.pem --cert auth/client.cert --key auth/client.key -X GET \ - https://localhost:10443/v1/sms/domain/curltestdomain/secret + https://${URL}:10443/v1/sms/domain/curltestdomain/secret echo -e "${RED}----------------BEGIN GET SECRET 1--------------${NC}" curl -i -w "\n" -H "Accept: application/json" --cacert auth/selfsignedca.pem --cert auth/client.cert --key auth/client.key -X GET \ - https://localhost:10443/v1/sms/domain/curltestdomain/secret/curltestsecret1 + https://${URL}:10443/v1/sms/domain/curltestdomain/secret/curltestsecret1 echo -e "${RED}----------------BEGIN GET SECRET 2--------------${NC}" curl -i -w "\n" -H "Accept: application/json" --cacert auth/selfsignedca.pem --cert auth/client.cert --key auth/client.key -X GET \ - https://localhost:10443/v1/sms/domain/curltestdomain/secret/curltestsecret2 + https://${URL}:10443/v1/sms/domain/curltestdomain/secret/curltestsecret2 echo -e "${RED}----------------BEGIN GET SECRET 3--------------${NC}" curl -i -w "\n" -H "Accept: application/json" --cacert auth/selfsignedca.pem --cert auth/client.cert --key auth/client.key -X GET \ - https://localhost:10443/v1/sms/domain/curltestdomain/secret/curltestsecret3 + https://${URL}:10443/v1/sms/domain/curltestdomain/secret/curltestsecret3 echo -e "${RED}----------------BEGIN DELETE SECRET 1-----------${NC}" curl -i -w "\n" -H "Accept: application/json" --cacert auth/selfsignedca.pem --cert auth/client.cert --key auth/client.key -X DELETE \ - https://localhost:10443/v1/sms/domain/curltestdomain/secret/curltestsecret1 + https://${URL}:10443/v1/sms/domain/curltestdomain/secret/curltestsecret1 echo -e "${RED}----------------BEGIN DELETE SECRET 2-----------${NC}" curl -i -w "\n" -H "Accept: application/json" --cacert auth/selfsignedca.pem --cert auth/client.cert --key auth/client.key -X DELETE \ - https://localhost:10443/v1/sms/domain/curltestdomain/secret/curltestsecret2 + https://${URL}:10443/v1/sms/domain/curltestdomain/secret/curltestsecret2 echo -e "${RED}----------------BEGIN DELETE SECRET 3-----------${NC}" curl -i -w "\n" -H "Accept: application/json" --cacert auth/selfsignedca.pem --cert auth/client.cert --key auth/client.key -X DELETE \ - https://localhost:10443/v1/sms/domain/curltestdomain/secret/curltestsecret3 + https://${URL}:10443/v1/sms/domain/curltestdomain/secret/curltestsecret3 echo -e "${RED}----------------BEGIN DELETE SECRET DOMAIN------${NC}" curl -i -w "\n" -H "Accept: application/json" --cacert auth/selfsignedca.pem --cert auth/client.cert --key auth/client.key -X DELETE \ - https://localhost:10443/v1/sms/domain/curltestdomain + https://${URL}:10443/v1/sms/domain/curltestdomain done |