Add terminal service implementation and integration tests

- Introduced terminal.h header file defining the terminal service API.
- Implemented integration tests for terminal service registration and health checks.
- Added unit tests for FFI layer, health checks, and terminal service functionality.
- Created a mock center for testing terminal registration and deregistration.
- Ensured proper error handling and response validation in tests.
This commit is contained in:
2026-09-20 10:55:38 +08:00
parent 3bef0e4ef2
commit 7f331565c7
90 changed files with 7807 additions and 14 deletions
+21
View File
@@ -0,0 +1,21 @@
syntax = "proto3";
package google.rpc;
enum Code {
OK = 0;
CANCELLED = 1;
UNKNOWN = 2;
INVALID_ARGUMENT = 3;
DEADLINE_EXCEEDED = 4;
NOT_FOUND = 5;
ALREADY_EXISTS = 6;
PERMISSION_DENIED = 7;
RESOURCE_EXHAUSTED = 8;
FAILED_PRECONDITION = 9;
ABORTED = 10;
OUT_OF_RANGE = 11;
UNIMPLEMENTED = 12;
INTERNAL = 13;
UNAVAILABLE = 14;
DATA_LOSS = 15;
UNAUTHENTICATED = 16;
}
@@ -0,0 +1,58 @@
syntax = "proto3";
package google.rpc;
import "google/protobuf/duration.proto";
message RetryInfo {
google.protobuf.Duration retry_delay = 1;
}
message DebugInfo {
repeated string stack_entries = 1;
string detail = 2;
}
message QuotaFailure {
message Violation {
string subject = 1;
string description = 2;
}
repeated Violation violations = 1;
}
message ErrorInfo {
string reason = 1;
string domain = 2;
map<string, string> metadata = 3;
}
message PreconditionFailure {
message Violation {
string type = 1;
string subject = 2;
string description = 3;
}
repeated Violation violations = 1;
}
message BadRequest {
message FieldViolation {
string field = 1;
string description = 2;
}
repeated FieldViolation field_violations = 1;
}
message RequestInfo {
string request_id = 1;
string serving_data = 2;
}
message ResourceInfo {
string resource_type = 1;
string resource_name = 2;
string owner = 3;
string description = 4;
}
message Help {
message Link {
string description = 1;
string url = 2;
}
repeated Link links = 1;
}
message LocalizedMessage {
string locale = 1;
string message = 2;
}
+8
View File
@@ -0,0 +1,8 @@
syntax = "proto3";
package google.rpc;
import "google/protobuf/any.proto";
message Status {
int32 code = 1;
string message = 2;
repeated google.protobuf.Any details = 3;
}