X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fconfiguration%2Fconfiguration_test.go;h=cdbf338d1545e00d132f4293e956197c55db2925;hb=d916e2aef4c415d9865643fafa8c181a9fdfd65b;hp=ce0448dcacba7c9e69e38945c2c3542530082fc5;hpb=49144464f0450ce157a716010cbbd7c3143d332f;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/configuration/configuration_test.go b/E2Manager/configuration/configuration_test.go index ce0448d..cdbf338 100644 --- a/E2Manager/configuration/configuration_test.go +++ b/E2Manager/configuration/configuration_test.go @@ -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.Namespace) - assert.NotEmpty(t, config.Kubernetes.ConfigPath) + /*assert.NotEmpty(t, config.Kubernetes.Namespace) + 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{}{"namespace": "test", "ConfigPath": "test"}, + //"kubernetes": map[string]interface{}{"namespace": "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() }) -} +}*/