Skip to content

Commit 9a3e37c

Browse files
Merge pull request #108 from code0-tech/41-test-execution-endpoint
Test Execution Endpoint
2 parents 87bfec2 + 3383eac commit 9a3e37c

File tree

3 files changed

+48
-28
lines changed

3 files changed

+48
-28
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ services that Sagittarius must implement as a server.
5858
│ ├── flow - Flow service (handles flow updates)
5959
│ ├── flow_definition - FlowType service (handles flow_type updates)
6060
│ ├── ping - Ping service (performs life checks)
61-
│ └── runtime_function - Service for updating the runtime functions
61+
│ ├── runtime_function - Service for updating the runtime functions
62+
│ └── test_execution - Service and Types for the test execution
6263
└── shared
6364
├── data_type - Defines types for data types
6465
├── event - Defines types for events
6566
├── flow - Defines types for flows
6667
├── flow_definition - Defines a definition for a Flow
6768
├── runtime_function_definition - Defines types for runtime functions
6869
├── struct - Defines types for json representations
69-
├── test_execution - Defines types test execution
7070
└── translation - Contains translations with country codes and translated messages
7171
```
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
syntax = "proto3";
2+
3+
option ruby_package = "Tucana::Sagittarius";
4+
5+
package sagittarius;
6+
7+
import "shared.struct.proto";
8+
9+
message Logon {}
10+
11+
message TestExecutionRequest {
12+
int64 flow_id = 1;
13+
string execution_uuid = 2;
14+
shared.Value body = 3;
15+
}
16+
17+
message TestExecutionResponse {
18+
int64 flow_id = 1;
19+
string execution_uuid = 2;
20+
shared.Value result = 3;
21+
repeated Log logs = 4;
22+
}
23+
24+
message Log {
25+
string message = 1;
26+
string level = 2;
27+
string timestamp = 3;
28+
}
29+
30+
// Aquila sends a logon request to Sagittarius that initiates a stream
31+
// If the stream is initialized it will return the result after it received a request
32+
message ExecutionLogonRequest {
33+
oneof data {
34+
Logon logon = 1;
35+
TestExecutionResponse response = 2;
36+
}
37+
}
38+
39+
// Sagittarius sends execution requests
40+
message ExecutionLogonResponse {
41+
TestExecutionRequest request = 1;
42+
}
43+
44+
service ExecutionService {
45+
rpc Test (stream ExecutionLogonRequest) returns (stream ExecutionLogonResponse) {}
46+
}

proto/shared/shared.test_execution.proto

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)