aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/emssimulator/swm/conf.py
diff options
context:
space:
mode:
authorEnbo Wang <wangenbo@huawei.com>2019-04-23 13:42:21 +0000
committerEnbo Wang <wangenbo@huawei.com>2019-04-23 14:17:45 +0000
commit6ab8b62c35c6c850b95dbb3206de78a6ddb1206d (patch)
tree3d20b3abea69a298426e70e1fe68efa8015e7d13 /test/mocks/emssimulator/swm/conf.py
parentca2b87e4a1e01d1184b0793ea98ddd5385dec6a6 (diff)
Add an EMS simulator
Change-Id: I4fedf9a812e19033e7f9a1bff55eae264bc5122f Issue-ID: INT-1041 Signed-off-by: Enbo Wang <wangenbo@huawei.com>
Diffstat (limited to 'test/mocks/emssimulator/swm/conf.py')
-rw-r--r--test/mocks/emssimulator/swm/conf.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/test/mocks/emssimulator/swm/conf.py b/test/mocks/emssimulator/swm/conf.py
new file mode 100644
index 000000000..d7ba5b4d5
--- /dev/null
+++ b/test/mocks/emssimulator/swm/conf.py
@@ -0,0 +1,37 @@
+#!/usr/bin/python
+
+import sys
+
+SWM_DIR = sys.path[0]
+
+NE_INFO_TABLE = SWM_DIR + "/ems_db/ne_info_table.json"
+SW_SERVER_SIMULATOR = SWM_DIR + "/sw_server_simulator"
+PNF_SIMULATORS_DIR = SWM_DIR + "/pnf_simulators"
+PNF_SW_DOWNLOAD_DIR = "/opt/download"
+PNF_SW_INSTALL_DIR = "/opt/install"
+PNF_SW_FALLBACK_DIR = "/opt/fallback"
+MANIFEST_FILE = "manifest.json"
+INSTALLED_SW = "installed_sw.json"
+CURRENT_VERSION_DIR = "current"
+NOTIFICATION_DIR = "/tmp"
+
+MAX_INT = (2**32) - 1
+
+STATUS_DOWNLOADING = "Downloading"
+STATUS_INSTALLING = "Installing"
+STATUS_ACTIVATING = "Activating"
+STATUS_ACTIVATED = "Activated"
+
+STATUS_PRECHECKED = "PreChecked"
+STATUS_POSTCHECKED = "PostChecked"
+
+REQ_SUCCESS = "requestAccepted"
+REQ_FAILURE = "requestFailed"
+
+RET_CODE_SUCCESS = 0
+RET_CODE_FAILURE = 1
+
+RESULT_SUCCESS = "Success"
+RESULT_FAILURE = "Failure"
+RESULT_PARTLY = "Partly successful"
+