Loading go-apps/meep-app-enablement/server/app-support/app-support.go +4 −2 Original line number Diff line number Diff line Loading @@ -130,8 +130,10 @@ func Run() (err error) { // Stop - Stop APP support func Stop() (err error) { // Flush all app-enablement instance data if baseKey != "" { key := baseKey + "*" _ = rc.DBFlush(key) } return nil } Loading go-apps/meep-app-enablement/server/service-mgmt/service-mgmt.go +4 −2 Original line number Diff line number Diff line Loading @@ -148,8 +148,10 @@ func Run() (err error) { // Stop - Stop Service Mgmt func Stop() (err error) { // Flush all app-enablement instance data if baseKey != "" { key := baseKey + "*" _ = rc.DBFlush(key) } return nil } Loading test/system/app-enablement_test.go +155 −157 Original line number Diff line number Diff line /* * Copyright (c) 2020 InterDigital Communications, Inc * Copyright (c) 2021 InterDigital Communications, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. Loading @@ -24,11 +24,10 @@ import ( "context" "time" log "github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-logger" smc "github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-service-mgmt-client" asc "github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-app-support-client" log "github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-logger" scc "github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-sandbox-ctrl-client" smc "github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-service-mgmt-client" ) var srvMgmtClient *smc.APIClient Loading Loading @@ -144,7 +143,7 @@ func servAvailSubscription(appInstanceId string, callbackReference string, serNa func terminateApp(instanceId string) error { _, err := sccCtrlClient.ApplicationsApi.ApplicationsAppInstanceIdDELETE(context.TODO(), instanceId); _, err := sccCtrlClient.ApplicationsApi.ApplicationsAppInstanceIdDELETE(context.TODO(), instanceId) if err != nil { log.Error("Failed to Terminate an edge application: ", err) return err Loading Loading @@ -346,4 +345,3 @@ func validateSerAvailabilityNotification(notification *smc.ServiceAvailabilityNo } return "" } Loading
go-apps/meep-app-enablement/server/app-support/app-support.go +4 −2 Original line number Diff line number Diff line Loading @@ -130,8 +130,10 @@ func Run() (err error) { // Stop - Stop APP support func Stop() (err error) { // Flush all app-enablement instance data if baseKey != "" { key := baseKey + "*" _ = rc.DBFlush(key) } return nil } Loading
go-apps/meep-app-enablement/server/service-mgmt/service-mgmt.go +4 −2 Original line number Diff line number Diff line Loading @@ -148,8 +148,10 @@ func Run() (err error) { // Stop - Stop Service Mgmt func Stop() (err error) { // Flush all app-enablement instance data if baseKey != "" { key := baseKey + "*" _ = rc.DBFlush(key) } return nil } Loading
test/system/app-enablement_test.go +155 −157 Original line number Diff line number Diff line /* * Copyright (c) 2020 InterDigital Communications, Inc * Copyright (c) 2021 InterDigital Communications, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. Loading @@ -24,11 +24,10 @@ import ( "context" "time" log "github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-logger" smc "github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-service-mgmt-client" asc "github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-app-support-client" log "github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-logger" scc "github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-sandbox-ctrl-client" smc "github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-service-mgmt-client" ) var srvMgmtClient *smc.APIClient Loading Loading @@ -144,7 +143,7 @@ func servAvailSubscription(appInstanceId string, callbackReference string, serNa func terminateApp(instanceId string) error { _, err := sccCtrlClient.ApplicationsApi.ApplicationsAppInstanceIdDELETE(context.TODO(), instanceId); _, err := sccCtrlClient.ApplicationsApi.ApplicationsAppInstanceIdDELETE(context.TODO(), instanceId) if err != nil { log.Error("Failed to Terminate an edge application: ", err) return err Loading Loading @@ -346,4 +345,3 @@ func validateSerAvailabilityNotification(notification *smc.ServiceAvailabilityNo } return "" }