@@ -23,7 +23,7 @@ func TestFromCommandProto(t *testing.T) {
23
23
Server : & mpi.ServerSettings {
24
24
Host : getAgentConfig ().Command .Server .Host ,
25
25
Port : int32 (getAgentConfig ().Command .Server .Port ),
26
- Type : 1 ,
26
+ Type : mpi . ServerSettings_SERVER_SETTINGS_TYPE_GRPC ,
27
27
},
28
28
Auth : & mpi.AuthSettings {},
29
29
Tls : & mpi.TLSSettings {
@@ -64,7 +64,7 @@ func TestFromCommandProto(t *testing.T) {
64
64
Server : & mpi.ServerSettings {
65
65
Host : getAgentConfig ().Command .Server .Host ,
66
66
Port : int32 (getAgentConfig ().Command .Server .Port ),
67
- Type : 1 , // gRPC
67
+ Type : mpi . ServerSettings_SERVER_SETTINGS_TYPE_GRPC ,
68
68
},
69
69
Tls : & mpi.TLSSettings {
70
70
Cert : getAgentConfig ().Command .TLS .Cert ,
@@ -86,7 +86,7 @@ func TestFromCommandProto(t *testing.T) {
86
86
Server : & mpi.ServerSettings {
87
87
Host : getAgentConfig ().Command .Server .Host ,
88
88
Port : int32 (getAgentConfig ().Command .Server .Port ),
89
- Type : 1 , // Change to HTTP when supported
89
+ Type : mpi . ServerSettings_SERVER_SETTINGS_TYPE_GRPC ,
90
90
},
91
91
Auth : & mpi.AuthSettings {},
92
92
},
@@ -132,7 +132,7 @@ func TestToCommandProto(t *testing.T) {
132
132
Server : & mpi.ServerSettings {
133
133
Host : getAgentConfig ().Command .Server .Host ,
134
134
Port : int32 (getAgentConfig ().Command .Server .Port ),
135
- Type : 2 ,
135
+ Type : mpi . ServerSettings_SERVER_SETTINGS_TYPE_GRPC ,
136
136
},
137
137
Auth : & mpi.AuthSettings {},
138
138
Tls : & mpi.TLSSettings {
@@ -174,7 +174,7 @@ func TestToCommandProto(t *testing.T) {
174
174
Server : & mpi.ServerSettings {
175
175
Host : getAgentConfig ().Command .Server .Host ,
176
176
Port : int32 (getAgentConfig ().Command .Server .Port ),
177
- Type : 2 , // gRPC
177
+ Type : mpi . ServerSettings_SERVER_SETTINGS_TYPE_GRPC ,
178
178
},
179
179
Tls : & mpi.TLSSettings {
180
180
Cert : getAgentConfig ().Command .TLS .Cert ,
@@ -196,7 +196,7 @@ func TestToCommandProto(t *testing.T) {
196
196
Server : & mpi.ServerSettings {
197
197
Host : getAgentConfig ().Command .Server .Host ,
198
198
Port : int32 (getAgentConfig ().Command .Server .Port ),
199
- Type : 2 ,
199
+ Type : mpi . ServerSettings_SERVER_SETTINGS_TYPE_GRPC ,
200
200
},
201
201
Auth : & mpi.AuthSettings {},
202
202
},
0 commit comments