diff options
Diffstat (limited to 'src/orchestrator/pkg/appcontext/appcontext_test.go')
-rw-r--r-- | src/orchestrator/pkg/appcontext/appcontext_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/orchestrator/pkg/appcontext/appcontext_test.go b/src/orchestrator/pkg/appcontext/appcontext_test.go index 07a13d0b..05c73703 100644 --- a/src/orchestrator/pkg/appcontext/appcontext_test.go +++ b/src/orchestrator/pkg/appcontext/appcontext_test.go @@ -84,6 +84,13 @@ func (c *MockRunTimeContext) RtcAddLevel(handle interface{}, level string, value } +func (c *MockRunTimeContext) RtcAddOneLevel(handle interface{}, level string, value interface{}) (interface{}, error) { + str := fmt.Sprintf("%v", handle) + level + "/" + c.Items[str] = value + return nil, c.Err + +} + func (c *MockRunTimeContext) RtcAddResource(handle interface{}, resname string, value interface{}) (interface{}, error) { str := fmt.Sprintf("%v", handle) + "resource" + "/" + resname + "/" c.Items[str] = value |