X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fxapp%2Fxapp_test.go;h=8b2a9524c54a95365ce41466ec2fbffb72d01d1a;hb=c2c130d71f20e44119f356f7ab4df92882f92c9d;hp=2c4c4fea9b0040c6ef02f1f2a2cd1f459ebcb438;hpb=dba83dfb6f135fb2f6987e55beec8552c6a8b74e;p=ric-plt%2Fxapp-frame.git diff --git a/pkg/xapp/xapp_test.go b/pkg/xapp/xapp_test.go index 2c4c4fe..8b2a952 100755 --- a/pkg/xapp/xapp_test.go +++ b/pkg/xapp/xapp_test.go @@ -21,6 +21,7 @@ package xapp import ( "bytes" + "io/ioutil" "net/http" "net/http/httptest" "os" @@ -434,6 +435,16 @@ func TestappconfigHandler(t *testing.T) { executeRequest(req, handleFunc) } +func TestConfigChange(t *testing.T) { + Logger.Error("CASE: TestConfigChange: %s", os.Getenv("CFG_FILE")) + + input, err := ioutil.ReadFile(os.Getenv("CFG_FILE")) + assert.Equal(t, err, nil) + + err = ioutil.WriteFile(os.Getenv("CFG_FILE"), input, 0644) + assert.Equal(t, err, nil) +} + func TestRegisterXapp(t *testing.T) { Logger.Error("CASE: TestRegisterXapp") doRegister()