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