mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-30 18:17:55 +00:00 
			
		
		
		
	fixing command server tests (#6242)
This commit is contained in:
		 Chris Hoffman
					Chris Hoffman
				
			
				
					committed by
					
						 Brian Kassouf
						Brian Kassouf
					
				
			
			
				
	
			
			
			 Brian Kassouf
						Brian Kassouf
					
				
			
						parent
						
							6e96688719
						
					
				
				
					commit
					ec015ec6bb
				
			| @@ -48,11 +48,12 @@ func TestLoadConfigFile(t *testing.T) { | ||||
| 		}, | ||||
|  | ||||
| 		Telemetry: &Telemetry{ | ||||
| 			StatsdAddr:      "bar", | ||||
| 			StatsiteAddr:    "foo", | ||||
| 			DisableHostname: false, | ||||
| 			DogStatsDAddr:   "127.0.0.1:7254", | ||||
| 			DogStatsDTags:   []string{"tag_1:val_1", "tag_2:val_2"}, | ||||
| 			StatsdAddr:              "bar", | ||||
| 			StatsiteAddr:            "foo", | ||||
| 			DisableHostname:         false, | ||||
| 			DogStatsDAddr:           "127.0.0.1:7254", | ||||
| 			DogStatsDTags:           []string{"tag_1:val_1", "tag_2:val_2"}, | ||||
| 			PrometheusRetentionTime: prometheusDefaultRetentionTime, | ||||
| 		}, | ||||
|  | ||||
| 		DisableCache:             true, | ||||
| @@ -121,11 +122,13 @@ func TestLoadConfigFile_topLevel(t *testing.T) { | ||||
| 		}, | ||||
|  | ||||
| 		Telemetry: &Telemetry{ | ||||
| 			StatsdAddr:      "bar", | ||||
| 			StatsiteAddr:    "foo", | ||||
| 			DisableHostname: false, | ||||
| 			DogStatsDAddr:   "127.0.0.1:7254", | ||||
| 			DogStatsDTags:   []string{"tag_1:val_1", "tag_2:val_2"}, | ||||
| 			StatsdAddr:                 "bar", | ||||
| 			StatsiteAddr:               "foo", | ||||
| 			DisableHostname:            false, | ||||
| 			DogStatsDAddr:              "127.0.0.1:7254", | ||||
| 			DogStatsDTags:              []string{"tag_1:val_1", "tag_2:val_2"}, | ||||
| 			PrometheusRetentionTime:    30 * time.Second, | ||||
| 			PrometheusRetentionTimeRaw: "30s", | ||||
| 		}, | ||||
|  | ||||
| 		DisableCache:    true, | ||||
| @@ -202,6 +205,7 @@ func TestLoadConfigFile_json(t *testing.T) { | ||||
| 			CirconusCheckTags:                  "", | ||||
| 			CirconusBrokerID:                   "", | ||||
| 			CirconusBrokerSelectTag:            "", | ||||
| 			PrometheusRetentionTime:            prometheusDefaultRetentionTime, | ||||
| 		}, | ||||
|  | ||||
| 		MaxLeaseTTL:          10 * time.Hour, | ||||
| @@ -288,6 +292,8 @@ func TestLoadConfigFile_json2(t *testing.T) { | ||||
| 			CirconusCheckTags:                  "cat1:tag1,cat2:tag2", | ||||
| 			CirconusBrokerID:                   "0", | ||||
| 			CirconusBrokerSelectTag:            "dc:sfo", | ||||
| 			PrometheusRetentionTime:            30 * time.Second, | ||||
| 			PrometheusRetentionTimeRaw:         "30s", | ||||
| 		}, | ||||
| 	} | ||||
| 	if !reflect.DeepEqual(config, expected) { | ||||
| @@ -336,9 +342,10 @@ func TestLoadConfigDir(t *testing.T) { | ||||
| 		EnableRawEndpoint: true, | ||||
|  | ||||
| 		Telemetry: &Telemetry{ | ||||
| 			StatsiteAddr:    "qux", | ||||
| 			StatsdAddr:      "baz", | ||||
| 			DisableHostname: true, | ||||
| 			StatsiteAddr:            "qux", | ||||
| 			StatsdAddr:              "baz", | ||||
| 			DisableHostname:         true, | ||||
| 			PrometheusRetentionTime: prometheusDefaultRetentionTime, | ||||
| 		}, | ||||
|  | ||||
| 		MaxLeaseTTL:     10 * time.Hour, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user