assert.NotNil(t, config.GlobalRicId)
assert.NotEmpty(t, config.GlobalRicId.PlmnId)
assert.NotEmpty(t, config.GlobalRicId.RicNearRtId)
- /*assert.NotEmpty(t, config.Kubernetes.Namespace)
- assert.NotEmpty(t, config.Kubernetes.ConfigPath)*/
+ assert.NotEmpty(t, config.Kubernetes.KubeNamespace)
+ assert.NotEmpty(t, config.Kubernetes.ConfigPath)
}
func TestStringer(t *testing.T) {
"logging": map[string]interface{}{"logLevel": "info"},
"http": map[string]interface{}{"port": 3800},
"routingManager": map[string]interface{}{"baseUrl": "http://iltlv740.intl.att.com:8080/ric/v1/handles/"},
- //"kubernetes": map[string]interface{}{"namespace": "test", "ConfigPath": "test"},
+ "kubernetes": map[string]interface{}{"kubeNamespace": "test", "ConfigPath": "test"},
}
buf, err := yaml.Marshal(yamlMap)
if err != nil {
func() { ParseConfiguration() })
}
-/*func TestKubernetesConfigNotFoundFailure(t *testing.T) {
+func TestKubernetesConfigNotFoundFailure(t *testing.T) {
configPath := "../resources/configuration.yaml"
configPathTmp := "../resources/configuration.yaml_tmp"
err := os.Rename(configPath, configPathTmp)
}
assert.PanicsWithValue(t, "#configuration.populateKubernetesConfig - failed to populate Kubernetes configuration: The entry 'kubernetes' not found\n",
func() { ParseConfiguration() })
-}*/
+}