-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrun-all
executable file
·101 lines (87 loc) · 3.41 KB
/
run-all
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/bin/bash
set -ex
DATABASE=sdk-test
DATABASE_CLONE=$DATABASE-clone
ENGINE=sdk-test-xs
# setup
python3 ./delete_database.py $DATABASE_CLONE
python3 ./delete_database.py $DATABASE
python3 ./delete_engine.py $ENGINE
# engines
python3 ./create_engine.py $ENGINE --size=XS
python3 ./get_engine.py $ENGINE
python3 ./list_engines.py
python3 ./list_engines.py --state=PROVISIONED
python3 ./list_engines.py --state=NONESENSE
# databases
python3 ./create_database.py $DATABASE
python3 ./get_database.py $DATABASE
python3 ./list_databases.py
python3 ./list_databases.py --state=CREATED
python3 ./list_databases.py --state=NONSENSE
python3 ./list_edbs.py $DATABASE $ENGINE
python3 ./list_models.py $DATABASE $ENGINE
python3 ./get_model.py $DATABASE $ENGINE stdlib
# run query
QUERY="x, x^2, x^3, x^4 from x in {1; 2; 3; 4; 5}"
python3 ./run_query.py $DATABASE $ENGINE "$QUERY"
python3 ./run_query.py $DATABASE $ENGINE "$QUERY" --readonly
python3 ./show_results.py $DATABASE $ENGINE
python3 ./show_problems.py $DATABASE $ENGINE
# load model
python3 ./install_models.py $DATABASE $ENGINE hello.rel
python3 ./get_model.py $DATABASE $ENGINE hello
python3 ./list_models.py $DATABASE $ENGINE
python3 ./delete_model.py $DATABASE $ENGINE hello
python3 ./list_models.py $DATABASE $ENGINE
# load_csv
python3 ./load_csv.py $DATABASE $ENGINE sample.csv -r sample_csv
python3 ./run_query.py $DATABASE $ENGINE sample_csv
python3 ./load_csv.py $DATABASE $ENGINE sample_no_header.csv --header-row=0 -r sample_no_header_csv
python3 ./run_query.py $DATABASE $ENGINE sample_no_header_csv
python3 ./load_csv.py $DATABASE $ENGINE sample_alt_syntax.csv --delim="|" --quotechar="'" -r sample_alt_syntax_csv
python3 ./run_query.py $DATABASE $ENGINE sample_alt_syntax_csv
python3 ./list_edbs.py $DATABASE $ENGINE
# load_json
python3 ./load_json.py $DATABASE $ENGINE sample.json -r sample_json
python3 ./run_query.py $DATABASE $ENGINE sample_json
python3 ./list_edbs.py $DATABASE $ENGINE
# clone database
python3 ./delete_database.py $DATABASE
python3 ./create_database.py $DATABASE
python3 ./load_json.py $DATABASE $ENGINE sample.json -r sample_json
python3 ./install_models.py $DATABASE $ENGINE hello.rel
python3 ./clone_database.py $DATABASE_CLONE $DATABASE
python3 ./get_database.py $DATABASE_CLONE
python3 ./list_databases.py
python3 ./list_databases.py --state=CREATED
python3 ./list_edbs.py $DATABASE_CLONE $ENGINE
python3 ./list_models.py $DATABASE_CLONE $ENGINE
python3 ./get_model.py $DATABASE_CLONE $ENGINE hello
# delete model
python3 ./list_models.py $DATABASE $ENGINE
python3 ./delete_model.py $DATABASE $ENGINE hello
python3 ./list_models.py $DATABASE $ENGINE
python3 ./list_edbs.py $DATABASE $ENGINE
# oauth-clients
CLIENTID=`python3 ./create_oauth_client.py sdk-test | jq -r '.id'`
python3 ./list_oauth_clients.py
python3 ./get_oauth_client.py $CLIENTID
python3 ./delete_oauth_client.py $CLIENTID
# users
python3 ./list_users.py
python3 ./create_user.py $EMAIL
python3 ./get_userid.py $EMAIL
USERID=`python3 ./get_userid.py $EMAIL`
python3 get_user.py $USERID
python3 disable_user.py $USERID
python3 enable_user.py $USERID
python3 update_user.py $USERID --status=INACTIVE
python3 update_user.py $USERID --status=ACTIVE
python3 update_user.py $USERID --roles=admin --roles=user
python3 update_user.py $USERID --status=INACTIVE --roles=user
# cleanup
python3 ./delete_database.py $DATABASE_CLONE
python3 ./delete_database.py $DATABASE
python3 ./delete_engine.py $ENGINE