Skip to content
Snippets Groups Projects
Commit 1d745154 authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

fixed resource invalidation

parent d171801e
No related branches found
No related tags found
2 merge requests!120Resolve "Code Quality",!90Develop
......@@ -27,8 +27,8 @@ var c *Core
func init() {
c = &Core{
database: database.Database{},
pndc: pndStore{},
sbic: sbiStore{},
pndc: pndStore{store{}},
sbic: sbiStore{store{}},
stopChan: make(chan os.Signal, 1),
}
......@@ -38,13 +38,6 @@ func init() {
// initialize does start-up housekeeping like reading controller config files
func initialize() error {
c.sbic = sbiStore{
store{},
}
c.pndc = pndStore{
store{},
}
if err := createSouthboundInterfaces(); err != nil {
return err
}
......
......@@ -11,7 +11,6 @@ import (
)
func testSetupHttp() {
testSetupPnd()
sbi = &OpenConfig{id: defaultSbiID}
sbi.Schema()
var err error
......@@ -31,11 +30,6 @@ func testSetupHttp() {
}
args = "&uuid=" + mdid.String() + "&pnd=" + defaultPndID.String() + "&sbi=" + defaultSbiID.String()
argsNotFound = "&uuid=" + uuid.New().String() + "&pnd=" + defaultPndID.String() + "&sbi=" + defaultSbiID.String()
c = &Core{
pndc: pndStore{store{}},
sbic: sbiStore{store{}},
}
if err := c.sbic.add(sbi); err != nil {
log.Fatal(err)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment