@@ -71,6 +71,8 @@ func TestSchema_Unmarshal(t *testing.T) {
7171 "GatewayUnauthenticatedRequestRateLimitPerIP": "1rps:100",
7272 "GatewayIncomingPayloadSizeLimit": "14kb",
7373 "GatewayVaultManagementEnabled": "true",
74+ "GatewayConfidentialRelayGlobalRate": "20rps:7",
75+ "GatewayConfidentialRelayPerNodeRate": "4rps:2",
7476 "PerOrg": {
7577 "ZeroBalancePruningTimeout": "48h"
7678 },
@@ -122,6 +124,8 @@ func TestSchema_Unmarshal(t *testing.T) {
122124 assert .Equal (t , 500 , cfg .WorkflowLimit .DefaultValue )
123125 assert .Equal (t , 14 * config .KByte , cfg .GatewayIncomingPayloadSizeLimit .DefaultValue )
124126 assert .Equal (t , true , cfg .GatewayVaultManagementEnabled .DefaultValue )
127+ assert .Equal (t , config.Rate {Limit : rate .Limit (20 ), Burst : 7 }, cfg .GatewayConfidentialRelayGlobalRate .DefaultValue )
128+ assert .Equal (t , config.Rate {Limit : rate .Limit (4 ), Burst : 2 }, cfg .GatewayConfidentialRelayPerNodeRate .DefaultValue )
125129 assert .Equal (t , 48 * time .Hour , cfg .PerOrg .ZeroBalancePruningTimeout .DefaultValue )
126130 assert .Equal (t , 99 , cfg .PerOwner .WorkflowExecutionConcurrencyLimit .DefaultValue )
127131 assert .Equal (t , 250 * config .MByte , cfg .PerWorkflow .WASMMemoryLimit .DefaultValue )
0 commit comments