|
|
|
@ -61,6 +61,7 @@ func TestHarmonyFlags(t *testing.T) { |
|
|
|
|
RosettaEnabled: false, |
|
|
|
|
RosettaPort: 9700, |
|
|
|
|
PrometheusEnabled: true, |
|
|
|
|
PrometheusIP: "0.0.0.0", |
|
|
|
|
PrometheusPort: 9900, |
|
|
|
|
}, |
|
|
|
|
WS: wsConfig{ |
|
|
|
@ -361,6 +362,7 @@ func TestRPCFlags(t *testing.T) { |
|
|
|
|
Port: defaultConfig.HTTP.Port, |
|
|
|
|
RosettaPort: defaultConfig.HTTP.RosettaPort, |
|
|
|
|
PrometheusEnabled: true, |
|
|
|
|
PrometheusIP: defaultConfig.HTTP.PrometheusIP, |
|
|
|
|
PrometheusPort: defaultConfig.HTTP.PrometheusPort, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
@ -373,6 +375,7 @@ func TestRPCFlags(t *testing.T) { |
|
|
|
|
Port: 9001, |
|
|
|
|
RosettaPort: defaultConfig.HTTP.RosettaPort, |
|
|
|
|
PrometheusEnabled: true, |
|
|
|
|
PrometheusIP: defaultConfig.HTTP.PrometheusIP, |
|
|
|
|
PrometheusPort: defaultConfig.HTTP.PrometheusPort, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
@ -385,6 +388,7 @@ func TestRPCFlags(t *testing.T) { |
|
|
|
|
Port: 9001, |
|
|
|
|
RosettaPort: 10001, |
|
|
|
|
PrometheusEnabled: true, |
|
|
|
|
PrometheusIP: defaultConfig.HTTP.PrometheusIP, |
|
|
|
|
PrometheusPort: defaultConfig.HTTP.PrometheusPort, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
@ -397,6 +401,7 @@ func TestRPCFlags(t *testing.T) { |
|
|
|
|
Port: defaultConfig.HTTP.Port, |
|
|
|
|
RosettaPort: 10001, |
|
|
|
|
PrometheusEnabled: true, |
|
|
|
|
PrometheusIP: defaultConfig.HTTP.PrometheusIP, |
|
|
|
|
PrometheusPort: defaultConfig.HTTP.PrometheusPort, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
@ -409,6 +414,7 @@ func TestRPCFlags(t *testing.T) { |
|
|
|
|
Port: 9501, |
|
|
|
|
RosettaPort: 9701, |
|
|
|
|
PrometheusEnabled: true, |
|
|
|
|
PrometheusIP: defaultConfig.HTTP.PrometheusIP, |
|
|
|
|
PrometheusPort: defaultConfig.HTTP.PrometheusPort + 1, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
@ -421,6 +427,20 @@ func TestRPCFlags(t *testing.T) { |
|
|
|
|
Port: defaultConfig.HTTP.Port, |
|
|
|
|
RosettaPort: defaultConfig.HTTP.RosettaPort, |
|
|
|
|
PrometheusEnabled: true, |
|
|
|
|
PrometheusIP: defaultConfig.HTTP.PrometheusIP, |
|
|
|
|
PrometheusPort: 20001, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
args: []string{"--http.prometheus.ip", "8.8.8.8", "--http.prometheus.port", "20001"}, |
|
|
|
|
expConfig: httpConfig{ |
|
|
|
|
Enabled: true, |
|
|
|
|
RosettaEnabled: false, |
|
|
|
|
IP: defaultConfig.HTTP.IP, |
|
|
|
|
Port: defaultConfig.HTTP.Port, |
|
|
|
|
RosettaPort: defaultConfig.HTTP.RosettaPort, |
|
|
|
|
PrometheusEnabled: true, |
|
|
|
|
PrometheusIP: "8.8.8.8", |
|
|
|
|
PrometheusPort: 20001, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|