Skip to content

Commit

Permalink
feat:proto message调整
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiaolulu committed Sep 26, 2024
1 parent 29b2f00 commit 72ed214
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 69 deletions.
33 changes: 18 additions & 15 deletions unit-backend/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 19 additions & 10 deletions unit-backend/api/services/protos/executor.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,27 @@ message Extract {
string env = 4;
}

message Parameters {
string count = 1;
string key_variable = 2;
string operator = 3;
string value_variable = 4;
string timeout = 5;
}

message ApiDocRequest {
string mode = 1;
string title = 2;
Interface interface = 3;
map<string, string> headers = 4;
Request request = 5;
string setup_script = 6;
string teardown_script = 7;
repeated Extract extract = 8;
repeated Validators validators = 9;
repeated ApiDocRequest children = 10;
string type = 1;
string mode = 2;
string title = 3;
Interface interface = 4;
map<string, string> headers = 5;
Request request = 6;
string setup_script = 7;
string teardown_script = 8;
repeated Extract extract = 9;
repeated Validators validators = 10;
repeated ApiDocRequest children = 11;
Parameters parameters = 12;
}

message ValidateExtractor {
Expand Down
36 changes: 19 additions & 17 deletions unit-backend/api/services/protos/executor_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions unit-backend/logs/EasyPost_collect.log
Original file line number Diff line number Diff line change
Expand Up @@ -3564,3 +3564,9 @@ Traceback (most recent call last):
django.core.exceptions.SuspiciousFileOperation: The joined path (C:\Users\86135\Desktop\EasyPost\backend\api\templates\media\default.png) is located outside of the base path component (C:\Users\86135\Desktop\EasyPost\unit-backend\api\templates\media)
WARNING [2024-09-26 10:23:31,136] [58b782256439499585a4469d4c4848ba] django.request: Not Found: /media/C:/Users/86135/Desktop/EasyPost/unit-backend/api/templates/media/default.png
WARNING [2024-09-26 10:23:31,152] [e586f3be2c734cd4a5dad6a1aaecdc5f] django.request: Bad Request: /media/C:/Users/86135/Desktop/EasyPost/backend/api/templates/media/default.png
INFO [2024-09-26 10:40:01,373] [none] django.utils.autoreload: C:\Users\86135\Desktop\EasyPost\unit-backend\api\services\protos\executor_pb2_grpc.py changed, reloading.
INFO [2024-09-26 10:40:01,427] [none] django.utils.autoreload: C:\Users\86135\Desktop\EasyPost\unit-backend\api\services\protos\executor_pb2.py changed, reloading.
INFO [2024-09-26 10:40:01,695] [none] django.utils.autoreload: C:\Users\86135\Desktop\EasyPost\unit-backend\api\services\protos\executor_pb2_grpc.py changed, reloading.
INFO [2024-09-26 10:40:02,821] [none] django.utils.autoreload: Watching for file changes with StatReloader
INFO [2024-09-26 10:40:02,824] [none] django.utils.autoreload: Watching for file changes with StatReloader
INFO [2024-09-26 10:40:02,972] [none] django.utils.autoreload: Watching for file changes with StatReloader
29 changes: 19 additions & 10 deletions unit-executor/protos/executor.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,27 @@ message Extract {
string env = 4;
}

message Parameters {
string count = 1;
string key_variable = 2;
string operator = 3;
string value_variable = 4;
string timeout = 5;
}

message ApiDocRequest {
string mode = 1;
string title = 2;
Interface interface = 3;
map<string, string> headers = 4;
Request request = 5;
string setup_script = 6;
string teardown_script = 7;
repeated Extract extract = 8;
repeated Validators validators = 9;
repeated ApiDocRequest children = 10;
string type = 1;
string mode = 2;
string title = 3;
Interface interface = 4;
map<string, string> headers = 5;
Request request = 6;
string setup_script = 7;
string teardown_script = 8;
repeated Extract extract = 9;
repeated Validators validators = 10;
repeated ApiDocRequest children = 11;
Parameters parameters = 12;
}

message ValidateExtractor {
Expand Down
Loading

0 comments on commit 72ed214

Please sign in to comment.