This repository has been archived by the owner on Apr 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
/
coreDataTest.sh
executable file
·87 lines (65 loc) · 4.34 KB
/
coreDataTest.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/bash
NAMESFILE=$(dirname "$0")/files.sh
COLLECTION_PATH="collections/core-data.postman_collection.json"
ENV_PATH="environment/core-data${ENV_SUFFIX}.postman_environment.json"
if [ -f $NAMESFILE ]; then
. $NAMESFILE
else
echo "Error: Names file does not exist."
exit $?
fi
echo "Info: Initiating Coredata Test."
echo "[info] ---------- use docker-compose run newman ----------"
docker-compose -f ${docker_compose_test_tools} run --rm postman run ${COLLECTION_PATH} \
--folder="reading" --iteration-data="data/readingData.json" --environment=${ENV_PATH} \
--reporters="junit,cli"
docker-compose -f ${docker_compose_test_tools} run --rm postman run ${COLLECTION_PATH} \
--folder="reading_error_4xx" --iteration-data="data/readingData.json" --environment=${ENV_PATH} \
--reporters="junit,cli"
docker-compose -f ${docker_compose_test_tools} run --rm postman run ${COLLECTION_PATH} \
--folder="valuedescriptor" --iteration-data="data/valueDescriptorData.json" --environment=${ENV_PATH} \
--reporters="junit,cli"
docker-compose -f ${docker_compose_test_tools} run --rm postman run ${COLLECTION_PATH} \
--folder="valuedescriptor_error_4xx" --iteration-data="data/valueDescriptorData.json" --environment=${ENV_PATH} \
--reporters="junit,cli"
docker-compose -f ${docker_compose_test_tools} run --rm postman run ${COLLECTION_PATH} \
--folder="event" --iteration-data="data/eventData.json" --environment=${ENV_PATH} \
--reporters="junit,cli"
docker-compose -f ${docker_compose_test_tools} run --rm postman run ${COLLECTION_PATH} \
--folder="event_error_4xx" --iteration-data="data/eventData.json" --environment=${ENV_PATH} \
--reporters="junit,cli"
#docker run --rm --user="1000" -v "${PWD}/bin/postman-test":/etc/newman --network=${DOCKER_NETWORK} postman/newman_ubuntu1404 run ${COLLECTION_PATH} \
# --folder="event" --iteration-data="data/eventData.json" --environment=${ENV_PATH} \
# --reporters="junit,cli"
#docker run --rm --user="1000" -v "${PWD}/bin/postman-test":/etc/newman --network=${DOCKER_NETWORK} postman/newman_ubuntu1404 run ${COLLECTION_PATH} \
# --folder="event_error_4xx" --iteration-data="data/eventData.json" --environment=${ENV_PATH} \
# --reporters="junit,cli"
#
#docker run --rm --user="1000" -v "${PWD}/bin/postman-test":/etc/newman --network=${DOCKER_NETWORK} postman/newman_ubuntu1404 run ${COLLECTION_PATH} \
# --folder="reading" --iteration-data="data/readingData.json" --environment=${ENV_PATH} \
# --reporters="junit,cli"
#docker run --rm --user="1000" -v "${PWD}/bin/postman-test":/etc/newman --network=${DOCKER_NETWORK} postman/newman_ubuntu1404 run ${COLLECTION_PATH} \
# --folder="reading_error_4xx" --iteration-data="data/readingData.json" --environment=${ENV_PATH} \
# --reporters="junit,cli"
#
#docker run --rm --user="1000" -v "${PWD}/bin/postman-test":/etc/newman --network=${DOCKER_NETWORK} postman/newman_ubuntu1404 run ${COLLECTION_PATH} \
# --folder="valuedescriptor" --iteration-data="data/valueDescriptorData.json" --environment=${ENV_PATH} \
# --reporters="junit,cli"
#docker run --rm --user="1000" -v "${PWD}/bin/postman-test":/etc/newman --network=${DOCKER_NETWORK} postman/newman_ubuntu1404 run ${COLLECTION_PATH} \
# --folder="valuedescriptor_error_4xx" --iteration-data="data/valueDescriptorData.json" --environment=${ENV_PATH} \
# --reporters="junit,cli"
# WORKSPACE=/Users/bruce/Documents/eclipse-workspace/deploy-edgeX/
#
# echo "[info] not jenkins build"
#newman run $COREDATACOLLFILE --folder event -d $EVENTDATAFILE -e $COREDATAENVFILE -r cli,html --reporter-html-export $EVENTREPORT200FILE
#
#newman run $COREDATACOLLFILE --folder reading -d $READINGDATAFILE -e $COREDATAENVFILE -r cli,html --reporter-html-export $READINGREPORT200FILE
#
#newman run $COREDATACOLLFILE --folder valuedescriptor -d $VDDATAFILE -e $COREDATAENVFILE -r cli,html --reporter-html-export $VDREPORT200FILE
#
#newman run $COREDATACOLLFILE --folder event_error_4xx -d $EVENTDATAFILE -e $COREDATAENVFILE -r cli,html --reporter-html-export $EVENTREPORT4XXFILE
#
#newman run $COREDATACOLLFILE --folder reading_error_4xx -d $READINGDATAFILE -e $COREDATAENVFILE -r cli,html --reporter-html-export $READINGREPORT4XXFILE
#
#newman run $COREDATACOLLFILE --folder valuedescriptor_error_4xx -d $VDDATAFILE -e $COREDATAENVFILE -r cli,html --reporter-html-export $VDREPORT4XXFILE
echo "Info:Coredata Test Completed."