[SEBA-939] ATTWorkflowDriver Service Instances status message remains same as ONU not found in whitelist after pushing ONU Whitelist with wrong PON port
Change-Id: I8c76c5861ed10a3b626b24246cfb9384cbf3316d
diff --git a/VERSION b/VERSION
index 227cea2..38f77a6 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.0.0
+2.0.1
diff --git a/xos/synchronizer/model_policies/model_policy_att_workflow_driver_whitelistentry.py b/xos/synchronizer/model_policies/model_policy_att_workflow_driver_whitelistentry.py
index 348af76..a9e58e1 100644
--- a/xos/synchronizer/model_policies/model_policy_att_workflow_driver_whitelistentry.py
+++ b/xos/synchronizer/model_policies/model_policy_att_workflow_driver_whitelistentry.py
@@ -1,4 +1,3 @@
-
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -43,6 +42,8 @@
si=si,
onu_state=si.admin_onu_state,
authentication_state=si.authentication_state)
+
+ si.status_message = message
si.save_changed_fields(always_update_timestamp=True)
def handle_update(self, whitelist):
diff --git a/xos/synchronizer/model_policies/test_model_policy_att_workflow_driver_whitelistentry.py b/xos/synchronizer/model_policies/test_model_policy_att_workflow_driver_whitelistentry.py
index 8015a6b..66651af 100644
--- a/xos/synchronizer/model_policies/test_model_policy_att_workflow_driver_whitelistentry.py
+++ b/xos/synchronizer/model_policies/test_model_policy_att_workflow_driver_whitelistentry.py
@@ -76,7 +76,7 @@
save_si.assert_called_once()
save_si.assert_called_with(
always_update_timestamp=True, update_fields=[
- 'admin_onu_state', 'serial_number', 'updated'])
+ 'admin_onu_state', 'serial_number', 'status_message', 'updated'])
def test_disable_onu(self):
si = AttWorkflowDriverServiceInstance(serial_number="BRCM333", owner_id=self.service.id, valid="invalid")
@@ -89,7 +89,7 @@
save_si.assert_called_once()
save_si.assert_called_with(
always_update_timestamp=True, update_fields=[
- 'admin_onu_state', 'serial_number', 'updated'])
+ 'admin_onu_state', 'serial_number', 'status_message', 'updated'])
def test_whitelist_update(self):
si = AttWorkflowDriverServiceInstance(serial_number="BRCM333", owner_id=self.service.id)