diff options
author | Liam Fallon <liam.fallon@est.tech> | 2021-11-03 14:27:31 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-11-03 14:27:31 +0000 |
commit | 39137c00704abf506878a7fdc8861d047e11cd37 (patch) | |
tree | ef2929a239becfa2ab57a790dd7c6dc2b5abbf10 /gui-clamp/ui-react/src/api/ControlLoopService.js | |
parent | 3ce3724d46c0c1d4d13613b1920e3da858117e23 (diff) | |
parent | ce0db169bce5d44ab36be7015a11c9a0205e05a1 (diff) |
Merge "Added tests to improve coverage"
Diffstat (limited to 'gui-clamp/ui-react/src/api/ControlLoopService.js')
-rw-r--r-- | gui-clamp/ui-react/src/api/ControlLoopService.js | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/gui-clamp/ui-react/src/api/ControlLoopService.js b/gui-clamp/ui-react/src/api/ControlLoopService.js index b3d987c..011d5ae 100644 --- a/gui-clamp/ui-react/src/api/ControlLoopService.js +++ b/gui-clamp/ui-react/src/api/ControlLoopService.js @@ -132,18 +132,6 @@ export default class ControlLoopService { return data; } - static async getToscaControlLoopDefinitions() { - - const response = await fetch(window.location.pathname + - 'restservices/clds/v2/toscaControlLoop/getElementDefinitions'); - - this.checkResponseForError(response); - - const data = await response; - - return data; - } - static async getCommonOrInstanceProperties(name, version, isCommon) { const params = { name: name, @@ -157,25 +145,4 @@ export default class ControlLoopService { return response; } - static async getToscaServiceTemplateSchema(section) { - - const params = { - section: section - } - - const response = await fetch(window.location.pathname + - 'restservices/clds/v2/toscaControlLoop/getJsonSchema' + '?' + (new URLSearchParams(params))); - - this.checkResponseForError(response); - - return response; - } - - static checkResponseForError(response) { - if (!response.ok) { - const message = `An error has occurred: ${ response.status }`; - throw new Error(message); - } - } - } |