@@ -41,7 +41,7 @@ func TestCreateReceiver(t *testing.T) {
41
41
// have to enable at least one protocol for the jaeger receiver to be created
42
42
cfg .(* Config ).Protocols .GRPC = & configgrpc.GRPCServerSettings {
43
43
NetAddr : confignet.NetAddr {
44
- Endpoint : defaultGRPCBindEndpoint ,
44
+ Endpoint : "0.0.0.0:14250" ,
45
45
Transport : "tcp" ,
46
46
},
47
47
}
@@ -82,15 +82,15 @@ func TestCreateDefaultGRPCEndpoint(t *testing.T) {
82
82
83
83
cfg .(* Config ).Protocols .GRPC = & configgrpc.GRPCServerSettings {
84
84
NetAddr : confignet.NetAddr {
85
- Endpoint : defaultGRPCBindEndpoint ,
85
+ Endpoint : "0.0.0.0:14250" ,
86
86
Transport : "tcp" ,
87
87
},
88
88
}
89
89
set := receivertest .NewNopCreateSettings ()
90
90
r , err := factory .CreateTracesReceiver (context .Background (), set , cfg , nil )
91
91
92
92
assert .NoError (t , err , "unexpected error creating receiver" )
93
- assert .Equal (t , defaultGRPCBindEndpoint , r .(* jReceiver ).config .CollectorGRPCServerSettings .NetAddr .Endpoint , "grpc port should be default" )
93
+ assert .Equal (t , "0.0.0.0:14250" , r .(* jReceiver ).config .CollectorGRPCServerSettings .NetAddr .Endpoint , "grpc port should be default" )
94
94
}
95
95
96
96
func TestCreateTLSGPRCEndpoint (t * testing.T ) {
@@ -99,7 +99,7 @@ func TestCreateTLSGPRCEndpoint(t *testing.T) {
99
99
100
100
cfg .(* Config ).Protocols .GRPC = & configgrpc.GRPCServerSettings {
101
101
NetAddr : confignet.NetAddr {
102
- Endpoint : defaultGRPCBindEndpoint ,
102
+ Endpoint : "0.0.0.0:14250" ,
103
103
Transport : "tcp" ,
104
104
},
105
105
TLSSetting : & configtls.TLSServerSetting {
@@ -120,7 +120,7 @@ func TestCreateTLSThriftHTTPEndpoint(t *testing.T) {
120
120
cfg := factory .CreateDefaultConfig ()
121
121
122
122
cfg .(* Config ).Protocols .ThriftHTTP = & confighttp.HTTPServerConfig {
123
- Endpoint : defaultHTTPBindEndpoint ,
123
+ Endpoint : "0.0.0.0:14268" ,
124
124
TLSSetting : & configtls.TLSServerSetting {
125
125
TLSSetting : configtls.TLSSetting {
126
126
CertFile : "./testdata/server.crt" ,
@@ -143,33 +143,33 @@ func TestCreateInvalidHTTPEndpoint(t *testing.T) {
143
143
r , err := factory .CreateTracesReceiver (context .Background (), set , cfg , nil )
144
144
145
145
assert .NoError (t , err , "unexpected error creating receiver" )
146
- assert .Equal (t , defaultHTTPBindEndpoint , r .(* jReceiver ).config .CollectorHTTPSettings .Endpoint , "http port should be default" )
146
+ assert .Equal (t , "0.0.0.0:14268" , r .(* jReceiver ).config .CollectorHTTPSettings .Endpoint , "http port should be default" )
147
147
}
148
148
149
149
func TestCreateInvalidThriftBinaryEndpoint (t * testing.T ) {
150
150
factory := NewFactory ()
151
151
cfg := factory .CreateDefaultConfig ()
152
152
153
153
cfg .(* Config ).Protocols .ThriftBinary = & ProtocolUDP {
154
- Endpoint : defaultThriftBinaryBindEndpoint ,
154
+ Endpoint : "0.0.0.0:6832" ,
155
155
}
156
156
set := receivertest .NewNopCreateSettings ()
157
157
r , err := factory .CreateTracesReceiver (context .Background (), set , cfg , nil )
158
158
159
159
assert .NoError (t , err , "unexpected error creating receiver" )
160
- assert .Equal (t , defaultThriftBinaryBindEndpoint , r .(* jReceiver ).config .AgentBinaryThrift .Endpoint , "thrift port should be default" )
160
+ assert .Equal (t , "0.0.0.0:6832" , r .(* jReceiver ).config .AgentBinaryThrift .Endpoint , "thrift port should be default" )
161
161
}
162
162
163
163
func TestCreateInvalidThriftCompactEndpoint (t * testing.T ) {
164
164
factory := NewFactory ()
165
165
cfg := factory .CreateDefaultConfig ()
166
166
167
167
cfg .(* Config ).Protocols .ThriftCompact = & ProtocolUDP {
168
- Endpoint : defaultThriftCompactBindEndpoint ,
168
+ Endpoint : "0.0.0.0:6831" ,
169
169
}
170
170
set := receivertest .NewNopCreateSettings ()
171
171
r , err := factory .CreateTracesReceiver (context .Background (), set , cfg , nil )
172
172
173
173
assert .NoError (t , err , "unexpected error creating receiver" )
174
- assert .Equal (t , defaultThriftCompactBindEndpoint , r .(* jReceiver ).config .AgentCompactThrift .Endpoint , "thrift port should be default" )
174
+ assert .Equal (t , "0.0.0.0:6831" , r .(* jReceiver ).config .AgentCompactThrift .Endpoint , "thrift port should be default" )
175
175
}
0 commit comments