Merge "RIC-208 - KA Decision: ask K8S to restart E2T instance - comment code of kuber...
[ric-plt/e2mgr.git] / E2Manager / configuration / configuration_test.go
index cad2254..695ed9a 100644 (file)
@@ -42,8 +42,8 @@ func TestParseConfigurationSuccess(t *testing.T) {
        assert.NotNil(t, config.GlobalRicId)
        assert.NotEmpty(t, config.GlobalRicId.PlmnId)
        assert.NotEmpty(t, config.GlobalRicId.RicNearRtId)
-       assert.NotEmpty(t, config.Kubernetes.KubeNamespace)
-       assert.NotEmpty(t, config.Kubernetes.ConfigPath)
+/*     assert.NotEmpty(t, config.Kubernetes.KubeNamespace)
+       assert.NotEmpty(t, config.Kubernetes.ConfigPath)*/
 }
 
 func TestStringer(t *testing.T) {
@@ -208,7 +208,7 @@ func TestGlobalRicIdConfigNotFoundFailure(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{}{"kubeNamespace": "test", "ConfigPath": "test"},
+               //"kubernetes":    map[string]interface{}{"kubeNamespace": "test", "ConfigPath": "test"},
        }
        buf, err := yaml.Marshal(yamlMap)
        if err != nil {
@@ -222,7 +222,7 @@ func TestGlobalRicIdConfigNotFoundFailure(t *testing.T) {
                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)
@@ -252,4 +252,4 @@ func TestKubernetesConfigNotFoundFailure(t *testing.T) {
        }
        assert.PanicsWithValue(t, "#configuration.populateKubernetesConfig - failed to populate Kubernetes configuration: The entry 'kubernetes' not found\n",
                func() { ParseConfiguration() })
-}
+}*/