dmart 1.4.40.post16__py3-none-any.whl → 1.4.40.post17__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dmart/curl.pypi.sh +196 -0
- dmart/dmart.py +7 -1
- {dmart-1.4.40.post16.dist-info → dmart-1.4.40.post17.dist-info}/METADATA +1 -1
- {dmart-1.4.40.post16.dist-info → dmart-1.4.40.post17.dist-info}/RECORD +7 -6
- {dmart-1.4.40.post16.dist-info → dmart-1.4.40.post17.dist-info}/WHEEL +0 -0
- {dmart-1.4.40.post16.dist-info → dmart-1.4.40.post17.dist-info}/entry_points.txt +0 -0
- {dmart-1.4.40.post16.dist-info → dmart-1.4.40.post17.dist-info}/top_level.txt +0 -0
dmart/curl.pypi.sh
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
API_URL="http://127.0.0.1:8282"
|
|
4
|
+
CT="Content-Type: application/json"
|
|
5
|
+
SHORTNAME="97326c47"
|
|
6
|
+
|
|
7
|
+
source ./login_creds.sh
|
|
8
|
+
declare -i RESULT=0
|
|
9
|
+
|
|
10
|
+
# echo -n -e "Create user: \t\t"
|
|
11
|
+
# CREATE=$(jq -c -n --arg shortname "$SHORTNAME" --arg msisdn "$MSISDN" --arg password "$PASSWORD" '{resource_type: "user", subpath: "users", shortname: $shortname, attributes:{password: $password, msisdn:$msisdn, invitation: "hello"}}')
|
|
12
|
+
# curl -s -H "$CT" -d "$CREATE" "${API_URL}/user/create?invitation=$INVITATION" | jq .status
|
|
13
|
+
|
|
14
|
+
# #echo -n -e "Send OTP using MSISDN: \t"
|
|
15
|
+
# #curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d '{"msisdn": "'${MSISDN}'"}' ${API_URL}/user/otp-request | jq .
|
|
16
|
+
|
|
17
|
+
# #echo -n -e "Confirm OTP using MSISDN: \t"
|
|
18
|
+
# #curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d '{"msisdn": "'${MSISDN}'", "code": "'${OTP_CODE}'"}' ${API_URL}/user/otp-confirm | jq .
|
|
19
|
+
|
|
20
|
+
echo -n -e "Login with admin: \t\t" >&2
|
|
21
|
+
AUTH_TOKEN=$(curl -i -s -H "$CT" -d "$SUPERMAN" ${API_URL}/user/login | grep set-cookie | sed 's/^[^=]*=\(.*\); Http.*$/\1/g')
|
|
22
|
+
RESULT+=$?
|
|
23
|
+
echo "$AUTH_TOKEN" | cut -d '.' -f 1 | base64 -d | jq .typ >&2
|
|
24
|
+
RESULT+=$?
|
|
25
|
+
# curl -s -c mycookies.jar -H "$CT" -d "$LOGIN" ${API_URL}/user/login | jq .status
|
|
26
|
+
|
|
27
|
+
echo -n -e "Get profile: \t\t\t" >&2
|
|
28
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" $API_URL/user/profile | jq .status | tee /dev/stderr | grep -q "success"
|
|
29
|
+
RESULT+=$?
|
|
30
|
+
|
|
31
|
+
echo -n -e "Create user from admin: \t" >&2
|
|
32
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d '{"space_name":"management","request_type":"create","records":[{"resource_type":"user","subpath":"users","shortname":"distributor","attributes":{"roles": ["test_role"], "msisdn": "7895412658", "email": "dummy_unqiue@gmail.com"}}]}' ${API_URL}/managed/request | jq .status | tee /dev/stderr | grep -q "success"
|
|
33
|
+
RESULT+=$?
|
|
34
|
+
|
|
35
|
+
echo -n -e "update user from admin: \t" >&2
|
|
36
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d '{"space_name":"management","request_type":"update","records":[{"resource_type":"user","subpath":"users","shortname":"distributor","attributes":{"roles": ["test_role"], "msisdn": "7895412658", "email": "dummy_unqiue@gmail.com"}}]}' ${API_URL}/managed/request | jq .status | tee /dev/stderr | grep -q "success"
|
|
37
|
+
RESULT+=$?
|
|
38
|
+
|
|
39
|
+
echo -n -e "Verify Email/msisdn admin side: " >&2
|
|
40
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d '{"space_name":"management","request_type":"update","records":[{"resource_type":"user","subpath":"users","shortname":"distributor","attributes":{"is_email_verified":true,"is_msisdn_verified":true}}]}' ${API_URL}/managed/request | jq .status | tee /dev/stderr | grep -q "success"
|
|
41
|
+
RESULT+=$?
|
|
42
|
+
|
|
43
|
+
echo -n -e "Reset user from admin side\t" >&2
|
|
44
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d $'{"shortname": "distributor"}' ${API_URL}/user/reset | jq .status | tee /dev/stderr | grep -q "success"
|
|
45
|
+
RESULT+=$?
|
|
46
|
+
|
|
47
|
+
echo -n -e "Delete user from admin: \t" >&2
|
|
48
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d '{"space_name":"management","request_type":"delete","records":[{"resource_type":"user","subpath":"users","shortname":"distributor","attributes":{}}]}' ${API_URL}/managed/request | jq .status | tee /dev/stderr | grep -q "success"
|
|
49
|
+
RESULT+=$?
|
|
50
|
+
|
|
51
|
+
#echo -n -e "Health check: \t\t\t"
|
|
52
|
+
#curl -s -H "Authorization: Bearer $AUTH_TOKEN" ${API_URL}/managed/health/management | jq .status | tee /dev/stderr | grep -q "success"
|
|
53
|
+
#RESULT+=$?
|
|
54
|
+
|
|
55
|
+
echo -n -e "Collection Contacts Query: \t" >&2
|
|
56
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d '{"type": "search","space_name": "management","subpath": "users","retrieve_json_payload": true,"search": "","retrieve_attachments": true}' ${API_URL}/managed/query | jq .status | tee /dev/stderr | grep -q "success"
|
|
57
|
+
RESULT+=$?
|
|
58
|
+
|
|
59
|
+
# echo -n -e "Saved Queries for Report"
|
|
60
|
+
# curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d '{"attributes": {"limit": 10,"offcet": 0,"key_search": ""},"resource_type": "content","shortname": "info_service","subpath": "/reports"}' ${API_URL}/managed/excute/query/aftersales | jq
|
|
61
|
+
|
|
62
|
+
echo -n -e "JQ filter: \t\t\t" >&2
|
|
63
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d '{"type": "search","space_name": "applications","subpath": "/","filter_types": ["folder"],"search": "applications","jq_filter" : ".[].shortname_title"}' ${API_URL}/managed/query | jq .status | tee /dev/stderr | grep -q "success"
|
|
64
|
+
RESULT+=$?
|
|
65
|
+
|
|
66
|
+
echo -n -e "Reload security: \t\t" >&2
|
|
67
|
+
curl -s -b mycookies.jar -H "$CT" -H "Authorization: Bearer $AUTH_TOKEN" ${API_URL}/managed/reload-security-data | jq .status | tee /dev/stderr | grep -q "success"
|
|
68
|
+
RESULT+=$?
|
|
69
|
+
|
|
70
|
+
echo -n -e "Delete dummy space: \t\t" >&2
|
|
71
|
+
DELETE=$(jq -c -n '{ "space_name": "dummy", "request_type": "delete", "records": [{ "resource_type": "space", "subpath": "/", "shortname": "dummy","attributes": {} } ]}')
|
|
72
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d "$DELETE" ${API_URL}/managed/request | jq .status | tee /dev/stderr | grep -q "success"
|
|
73
|
+
# RESULT+=$?
|
|
74
|
+
|
|
75
|
+
echo -n -e "Create a new space (dummy): \t" >&2
|
|
76
|
+
CREATE=$(jq -c -n '{ "space_name": "dummy", "request_type": "create", "records": [{ "resource_type": "space", "subpath": "/", "shortname": "dummy","attributes": {"hide_space": true} } ]}')
|
|
77
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d "$CREATE" ${API_URL}/managed/request | jq .status | tee /dev/stderr | grep -q "success"
|
|
78
|
+
RESULT+=$?
|
|
79
|
+
|
|
80
|
+
echo -n -e "Query spaces: \t\t\t" >&2
|
|
81
|
+
RECORD=$(jq -c -n '{space_name: "dummy", type: "spaces", subpath: "/"}')
|
|
82
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d "$RECORD" ${API_URL}/managed/query | jq .status | tee /dev/stderr | grep -q "success"
|
|
83
|
+
RESULT+=$?
|
|
84
|
+
|
|
85
|
+
echo -n -e "Create TLF folder: \t\t" >&2
|
|
86
|
+
REQUEST=$(jq -c -n '{ space_name: "dummy", request_type:"create", records: [{resource_type: "folder", subpath: "/", shortname: "myfolder", attributes:{tags: ["one","two"], "description": {"en": "dummy","ar": "dummy","ku": "dummy"},"displayname" : {"en": "en","ar": "ar", "ku":"ku"}, "payload": { "content_type": "json", "schema_shortname": "folder_rendering", "body": { "shortname_title": "Schema Shortname", "content_schema_shortnames": ["meta_schema"], "index_attributes": [ { "key": "shortname", "name": "Schema Shortname" }], "allow_create": false, "allow_update": false, "allow_delete": false, "use_media": false }}}}]}')
|
|
87
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d "$REQUEST" ${API_URL}/managed/request | jq .status | tee /dev/stderr | grep -q "success"
|
|
88
|
+
RESULT+=$?
|
|
89
|
+
SUBPATH="posts"
|
|
90
|
+
|
|
91
|
+
echo -n -e "Create posts folder: \t\t" >&2
|
|
92
|
+
REQUEST=$(jq -c -n --arg subpath "/" --arg shortname "posts" '{ space_name: "dummy", request_type:"create", records: [{resource_type: "folder", subpath: "/", shortname: "posts", attributes:{tags: ["one","two"], is_active: true, "description": {"en": "dummy","ar": "dummy","ku": "dummy"},"displayname" : {"en": "en","ar": "ar", "ku":"ku"}, "payload": { "content_type": "json", "schema_shortname": "folder_rendering", "body": { "shortname_title": "Shortname", "content_schema_shortnames": ["content"], "index_attributes": [ { "key": "shortname", "name": "Shortname" }], "allow_create": false, "allow_update": false, "allow_delete": false, "use_media": false }}}}]}')
|
|
93
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d "$REQUEST" ${API_URL}/managed/request | jq .status | tee /dev/stderr | grep -q "success"
|
|
94
|
+
RESULT+=$?
|
|
95
|
+
|
|
96
|
+
echo -n -e "Create workflow folder: \t" >&2
|
|
97
|
+
REQUEST=$(jq -c -n '{ space_name: "dummy", request_type:"create", records: [{resource_type: "folder", subpath: "/", shortname: "workflows", attributes:{ "description": {"en": "dummy","ar": "dummy","ku": "dummy"},"displayname" : {"en": "en","ar": "ar", "ku":"ku"}, "payload": { "content_type": "json", "schema_shortname": "folder_rendering", "body": { "shortname_title": "Schema Shortname", "content_schema_shortnames": ["meta_schema"], "index_attributes": [ { "key": "shortname", "name": "Schema Shortname" }], "allow_create": false, "allow_update": false, "allow_delete": false, "use_media": false }}}}]}')
|
|
98
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d "$REQUEST" ${API_URL}/managed/request | jq .status | tee /dev/stderr | grep -q "success"
|
|
99
|
+
RESULT+=$?
|
|
100
|
+
SUBPATH="posts"
|
|
101
|
+
|
|
102
|
+
echo -n -e "Query folders: \t\t\t" >&2
|
|
103
|
+
REQUEST=$(jq -c -n '{ space_name: "dummy", type:"subpath", subpath: "/", }')
|
|
104
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d "$REQUEST" ${API_URL}/managed/query | jq .status | tee /dev/stderr | grep -q "success"
|
|
105
|
+
RESULT+=$?
|
|
106
|
+
|
|
107
|
+
echo -n -e "Create Schema for workflows: \t" >&2
|
|
108
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -F 'space_name="dummy"' 'request_type: "create"' -F 'request_record=@"./test/createschemawork.json"' -F 'payload_file=@"./test/workflow_schema.json"' ${API_URL}/managed/resource_with_payload | jq .status | tee /dev/stderr | grep -q "success"
|
|
109
|
+
RESULT+=$?
|
|
110
|
+
|
|
111
|
+
echo -n -e "Create content for workflows: \t" >&2
|
|
112
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -F 'space_name="dummy"' -F 'request_record=@"./test/createticket.json"' -F 'payload_file=@"./test/ticket_workflow.json"' ${API_URL}/managed/resource_with_payload | jq .status | tee /dev/stderr | grep -q "success"
|
|
113
|
+
RESULT+=$?
|
|
114
|
+
|
|
115
|
+
echo -n -e "Create Schema for ticket: \t" >&2
|
|
116
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -F 'space_name="dummy"' -F 'request_record=@"./test/createschema.json"' -F 'payload_file=@"./test/schema.json"' ${API_URL}/managed/resource_with_payload | jq .status | tee /dev/stderr | grep -q "success"
|
|
117
|
+
RESULT+=$?
|
|
118
|
+
|
|
119
|
+
# echo -n -e "Create QR Code: \t\t" >&2
|
|
120
|
+
# TEMP_FILE=$(mktemp)
|
|
121
|
+
# curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" --output $TEMP_FILE ${API_URL}/qr/generate/ticket/dummy/myfolder/an_example # | jq .status | tee /dev/stderr | grep -q "success"
|
|
122
|
+
# RESULT+=$?
|
|
123
|
+
# file -ib $TEMP_FILE >&2
|
|
124
|
+
# rm -f $TEMP_FILE
|
|
125
|
+
#curl -s -H "Authorization: Bearer $AUTH_TOKEN" -F ${API_URL}/qr/generate/ticket/dummy/myfolder/an_example | jq .status | tee /dev/stderr | grep -q "success"
|
|
126
|
+
|
|
127
|
+
echo -n -e "Create ticket: \t\t\t" >&2
|
|
128
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -F 'space_name="dummy"' 'request_type: "create"' -F 'request_record=@"./test/ticketcontent.json"' -F 'payload_file=@"./test/ticketbody.json"' ${API_URL}/managed/resource_with_payload | jq .status | tee /dev/stderr | grep -q "success"
|
|
129
|
+
RESULT+=$?
|
|
130
|
+
|
|
131
|
+
echo -n -e "Move ticket: \t\t\t" >&2
|
|
132
|
+
curl -s -H "$CT" -H "Authorization: Bearer $AUTH_TOKEN" -d '{"space_name": "dummy","request_type": "move","records": [{"resource_type": "ticket","subpath": "/myfolder","shortname": "an_example","attributes": {"src_subpath": "/myfolder","src_shortname": "an_example","dest_subpath": "/myfolder_new","dest_shortname": "an_example_new", "src_space_name": "dummy", "dest_space_name": "dummy", "is_active": true}}]}' ${API_URL}/managed/request | jq .status | tee /dev/stderr | grep -q "success"
|
|
133
|
+
|
|
134
|
+
echo -n -e "Move back to old: \t\t" >&2
|
|
135
|
+
curl -s -H "$CT" -H "Authorization: Bearer $AUTH_TOKEN" -d '{"space_name": "dummy","request_type": "move","records": [{"resource_type": "ticket","subpath": "/myfolder_new","shortname": "an_example_new","attributes": {"src_subpath": "/myfolder_new","src_shortname": "an_example_new","dest_subpath": "/myfolder","dest_shortname": "an_example", "src_space_name": "dummy", "dest_space_name": "dummy","is_active": true}}]}' ${API_URL}/managed/request | jq .status | tee /dev/stderr | grep -q "success"
|
|
136
|
+
|
|
137
|
+
echo -n -e "Lock ticket: \t\t\t" >&2
|
|
138
|
+
curl -s -X "PUT" -H "Authorization: Bearer $AUTH_TOKEN" ${API_URL}/managed/lock/ticket/dummy/myfolder/an_example | jq .status | tee /dev/stderr | grep -q "success"
|
|
139
|
+
|
|
140
|
+
echo -n -e "Unlock ticket: \t\t\t" >&2
|
|
141
|
+
curl -s -X "DELETE" -H "Authorization: Bearer $AUTH_TOKEN" ${API_URL}/managed/lock/dummy/myfolder/an_example | jq .status | tee /dev/stderr | grep -q "success"
|
|
142
|
+
|
|
143
|
+
echo -n -e "Create Content: \t\t" >&2
|
|
144
|
+
REQUEST=$(jq -c -n --arg subpath "$SUBPATH" --arg shortname "$SHORTNAME" '{ space_name: "dummy", request_type:"create", records: [{resource_type: "content", subpath: $subpath, shortname: $shortname, attributes:{payload: {body: {"message": "this content created from curl request for dummying"}, content_type: "json"}, tags: ["one","two"], "description": {"en": "dummy","ar": "dummy","ku": "dummy"},"displayname" : {"en": "en","ar": "ar", "ku":"ku"}}}]}')
|
|
145
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d "$REQUEST" ${API_URL}/managed/request | jq .status | tee /dev/stderr | grep -q "success"
|
|
146
|
+
RESULT+=$?
|
|
147
|
+
|
|
148
|
+
echo -n -e "Create content: \t\t" >&2
|
|
149
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -F 'space_name="dummy"' -F 'request_record=@"./test/createcontent.json"' -F 'payload_file=@"./test/data.json"' ${API_URL}/managed/resource_with_payload | jq .status | tee /dev/stderr | grep -q "success"
|
|
150
|
+
RESULT+=$?
|
|
151
|
+
|
|
152
|
+
echo -n -e "Comment on content: \t\t"
|
|
153
|
+
COMMENT_SHORTNAME="greatcomment"
|
|
154
|
+
COMMENT_SUBPATH="$SUBPATH/$SHORTNAME"
|
|
155
|
+
RECORD=$(jq -c -n --arg subpath "$COMMENT_SUBPATH" --arg shortname "$COMMENT_SHORTNAME" '{ space_name: "dummy", request_type:"create", records: [{resource_type: "comment", subpath: $subpath, shortname: $shortname, attributes:{body: "A comment insdie the content resource"}}]}')
|
|
156
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d "$RECORD" ${API_URL}/managed/request | jq .status | tee /dev/stderr | grep -q "success"
|
|
157
|
+
|
|
158
|
+
echo -n -e "Managed CSV: \t\t\t" >&2
|
|
159
|
+
curl -s -H "accept: text/csv" -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d '{"space_name":"dummy","subpath":"myfolder","type":"subpath","retrieve_json_payload":true,"limit":5}' ${API_URL}/managed/csv | wc -l | xargs -IN test N -ge 2 > /dev/null && echo '"success"' #| xargs -0 echo | jq .status | tee /dev/stderr | grep -q "success"
|
|
160
|
+
RESULT+=$?
|
|
161
|
+
|
|
162
|
+
echo -n -e "Update content: \t\t" >&2
|
|
163
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" --data-binary "@./test/updatecontent.json" ${API_URL}/managed/request | jq .status | tee /dev/stderr | grep -q "success"
|
|
164
|
+
RESULT+=$?
|
|
165
|
+
|
|
166
|
+
echo -n -e "Upload attachment: \t\t" >&2
|
|
167
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -F 'space_name="dummy"' -F 'request_record=@"./test/createmedia.json"' -F 'payload_file=@"./test/logo.jpeg"' ${API_URL}/managed/resource_with_payload | jq .status | tee /dev/stderr | grep -q "success"
|
|
168
|
+
RESULT+=$?
|
|
169
|
+
|
|
170
|
+
echo -n -e "Delete content: \t\t" >&2
|
|
171
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" --data-binary "@./test/deletecontent.json" ${API_URL}/managed/request | jq .status | tee /dev/stderr | grep -q "success"
|
|
172
|
+
RESULT+=$?
|
|
173
|
+
|
|
174
|
+
echo -n -e "Query content: \t\t\t" >&2
|
|
175
|
+
RECORD=$(jq -c -n --arg subpath "$SUBPATH" '{space_name: "dummy", type: "subpath", subpath: $subpath}')
|
|
176
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d "$RECORD" ${API_URL}/managed/query | jq .status | tee /dev/stderr | grep -q "success"
|
|
177
|
+
RESULT+=$?
|
|
178
|
+
|
|
179
|
+
#echo -n -e "reload redis data: \t\t"
|
|
180
|
+
#RECORD=$(jq -c -n --arg subpath "$SUBPATH" '{space_name: "dummy", for_schemas: ["dummy_schema"]}')
|
|
181
|
+
#curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d "$RECORD" ${API_URL}/managed/reload-redis-data | jq .status | tee /dev/stderr | grep -q "success"
|
|
182
|
+
|
|
183
|
+
#echo -n -e "Delete admin: \t\t"
|
|
184
|
+
#curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d '{}' $API_URL/user/delete | jq .status | tee /dev/stderr | grep -q "success"
|
|
185
|
+
|
|
186
|
+
echo -n -e "Delete dummy space: \t\t" >&2
|
|
187
|
+
DELETE=$(jq -c -n '{ "space_name": "dummy", "request_type": "delete", "records": [{ "resource_type": "space", "subpath": "/", "shortname": "dummy","attributes": {} } ]}')
|
|
188
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" -d "$DELETE" ${API_URL}/managed/request | jq .status | tee /dev/stderr | grep -q "success"
|
|
189
|
+
RESULT+=$?
|
|
190
|
+
|
|
191
|
+
echo -n -e "Server manifest: " >&2
|
|
192
|
+
curl -s -H "Authorization: Bearer $AUTH_TOKEN" -H "$CT" ${API_URL}/info/manifest | jq . >&2
|
|
193
|
+
RESULT+=$?
|
|
194
|
+
|
|
195
|
+
echo "Sum of exit codes = $RESULT" >&2
|
|
196
|
+
exit $RESULT
|
dmart/dmart.py
CHANGED
|
@@ -790,7 +790,7 @@ def main():
|
|
|
790
790
|
os.remove(temp_config_path)
|
|
791
791
|
case "test":
|
|
792
792
|
script_dir = Path(__file__).resolve().parent
|
|
793
|
-
source_script_path = script_dir / "curl.sh"
|
|
793
|
+
source_script_path = script_dir / "curl.pypi.sh"
|
|
794
794
|
|
|
795
795
|
if not source_script_path.exists():
|
|
796
796
|
print("Error: curl.sh not found in the package.")
|
|
@@ -803,6 +803,12 @@ def main():
|
|
|
803
803
|
if not target_script_path.exists():
|
|
804
804
|
shutil.copy2(source_script_path, target_script_path)
|
|
805
805
|
|
|
806
|
+
source_test_dir = script_dir / "sample" / "test"
|
|
807
|
+
target_test_dir = dmart_home_dir / "test"
|
|
808
|
+
|
|
809
|
+
if source_test_dir.exists() and not target_test_dir.exists():
|
|
810
|
+
shutil.copytree(source_test_dir, target_test_dir)
|
|
811
|
+
|
|
806
812
|
try:
|
|
807
813
|
subprocess.run(["bash", str(target_script_path)], check=True, cwd=dmart_home_dir)
|
|
808
814
|
except subprocess.CalledProcessError as e:
|
|
@@ -5,9 +5,10 @@ dmart/cli.py,sha256=TkZVc0bDT32nXJxNd_ZVqwKaq6pbMUOXxYRXfEaKYSI,41611
|
|
|
5
5
|
dmart/config.env.sample,sha256=CKd4KIBeUatoFcO2IefmrVNBohpaVMQMFcoPkNBvCeI,696
|
|
6
6
|
dmart/config.ini.sample,sha256=AADMdwG07zRV_cAGMoOorHQaqzTTL2WEIC_mPWjIslE,159
|
|
7
7
|
dmart/conftest.py,sha256=0ry_zeCmdBNLbm5q115b-pkOrUFYxdsOUXbIMkr7E5Y,362
|
|
8
|
+
dmart/curl.pypi.sh,sha256=KQ-kgV3_d5mwqoLd4XOwz5s2wRQ7LDVX3z-kvjvp9hA,15631
|
|
8
9
|
dmart/curl.sh,sha256=lmHSFVr5ft-lc5Aq9LfvKyWfntrfYbnirhzx1EGjp_A,15743
|
|
9
10
|
dmart/data_generator.py,sha256=CnE-VHEeX7-lAXtqCgbRqR9WHjTuOgeiZcviYrHAmho,2287
|
|
10
|
-
dmart/dmart.py,sha256=
|
|
11
|
+
dmart/dmart.py,sha256=C86gH9rslK4nSZTVfaTWM-GG6RrdyFFqEmWt9QKqQLE,32046
|
|
11
12
|
dmart/get_settings.py,sha256=Sbe2WCoiK398E7HY4SNLfDN_GmE8knR4M-YJWF31jcg,153
|
|
12
13
|
dmart/hypercorn_config.toml,sha256=-eryppEG8HBOM_KbFc4dTQePnpyfoW9ZG5aUATU_6yM,50
|
|
13
14
|
dmart/info.json,sha256=req6dipAaYTBTsFA1tGt-lQDOzrhW1HAGsn6KQimtCI,123
|
|
@@ -482,8 +483,8 @@ dmart/utils/ticket_sys_utils.py,sha256=9QAlW2iiy8KyxQRBDj_WmzS5kKb0aYJmGwd4qzmGV
|
|
|
482
483
|
dmart/utils/web_notifier.py,sha256=QM87VVid2grC5lK3NdS1yzz0z1wXljr4GChJOeK86W4,843
|
|
483
484
|
dmart/utils/templates/activation.html.j2,sha256=XAMKCdoqONoc4ZQucD0yV-Pg5DlHHASZrTVItNS-iBE,640
|
|
484
485
|
dmart/utils/templates/reminder.html.j2,sha256=aoS8bTs56q4hjAZKsb0jV9c-PIURBELuBOpT_qPZNVU,639
|
|
485
|
-
dmart-1.4.40.
|
|
486
|
-
dmart-1.4.40.
|
|
487
|
-
dmart-1.4.40.
|
|
488
|
-
dmart-1.4.40.
|
|
489
|
-
dmart-1.4.40.
|
|
486
|
+
dmart-1.4.40.post17.dist-info/METADATA,sha256=h4Z9pQkBzTa_Yu1X1V9ae0gXnZEWnqi5xgRBVpUXqtU,2555
|
|
487
|
+
dmart-1.4.40.post17.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
488
|
+
dmart-1.4.40.post17.dist-info/entry_points.txt,sha256=N832M4wG8d2GDw1xztKRVM3TnxpY2QDzvdFE8XaWaG8,43
|
|
489
|
+
dmart-1.4.40.post17.dist-info/top_level.txt,sha256=zJo4qk9fUW0BGIR9f4DCfpxaXbvQXH9izIOom6JsyAo,6
|
|
490
|
+
dmart-1.4.40.post17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|