projects
/
osm
/
POL.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix black and cover errors
[osm/POL.git]
/
osm_policy_module
/
tests
/
integration
/
test_policy_agent.py
diff --git
a/osm_policy_module/tests/integration/test_policy_agent.py
b/osm_policy_module/tests/integration/test_policy_agent.py
index
0329b7c
..
73db304
100644
(file)
--- a/
osm_policy_module/tests/integration/test_policy_agent.py
+++ b/
osm_policy_module/tests/integration/test_policy_agent.py
@@
-375,7
+375,7
@@
vnfd_record_mock = {
"recovery-type": "automatic",
"action-on-recovery": "REDEPLOY_ONLY",
"cooldown-time": 180,
"recovery-type": "automatic",
"action-on-recovery": "REDEPLOY_ONLY",
"cooldown-time": 180,
- "day1": False
+ "day1": False
,
}
],
}
}
],
}
@@
-592,7
+592,7
@@
class PolicyModuleAgentTest(unittest.TestCase):
vnf_member_index="1",
threshold=20.0,
operation="LT",
vnf_member_index="1",
threshold=20.0,
operation="LT",
- action="{'webhook': ['localhost:9090', 'localhost:9090', 'localhost:9090']}"
+ action="{'webhook': ['localhost:9090', 'localhost:9090', 'localhost:9090']}"
,
)
create_alarm.assert_any_call(
metric_name="average_memory_utilization",
)
create_alarm.assert_any_call(
metric_name="average_memory_utilization",
@@
-601,7
+601,7
@@
class PolicyModuleAgentTest(unittest.TestCase):
vnf_member_index="2",
threshold=20.0,
operation="LT",
vnf_member_index="2",
threshold=20.0,
operation="LT",
- action="{'webhook': ['localhost:9090', 'localhost:9090', 'localhost:9090']}"
+ action="{'webhook': ['localhost:9090', 'localhost:9090', 'localhost:9090']}"
,
)
@patch.object(DbMongo, "db_connect", Mock())
)
@patch.object(DbMongo, "db_connect", Mock())