summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/testcases/base.py
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2017-10-23 14:46:12 -0600
committerChad Smith <chad.smith@canonical.com>2017-10-23 14:46:12 -0600
commita7f478aafa570abde940037014fabcb0eab16502 (patch)
treed838e40b26684f33b3b05c24ead267e28bb1b5a3 /tests/cloud_tests/testcases/base.py
parent5443ede5e90c0be56f25ac729c5f341cdb4ad31c (diff)
parent17a15f9e0ae78e4fc4e24fab0caebdf78f06ef66 (diff)
downloadvyos-cloud-init-a7f478aafa570abde940037014fabcb0eab16502.tar.gz
vyos-cloud-init-a7f478aafa570abde940037014fabcb0eab16502.zip
merge from master at 17.1-25-g17a15f9e
Diffstat (limited to 'tests/cloud_tests/testcases/base.py')
-rw-r--r--tests/cloud_tests/testcases/base.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/cloud_tests/testcases/base.py b/tests/cloud_tests/testcases/base.py
index bb545ab9..1706f59b 100644
--- a/tests/cloud_tests/testcases/base.py
+++ b/tests/cloud_tests/testcases/base.py
@@ -16,10 +16,6 @@ class CloudTestCase(unittest.TestCase):
conf = None
_cloud_config = None
- def shortDescription(self):
- """Prevent nose from using docstrings."""
- return None
-
@property
def cloud_config(self):
"""Get the cloud-config used by the test."""
@@ -72,6 +68,14 @@ class CloudTestCase(unittest.TestCase):
result = self.get_status_data(self.get_data_file('result.json'))
self.assertEqual(len(result['errors']), 0)
+ def test_no_warnings_in_log(self):
+ """Warnings should not be found in the log."""
+ self.assertEqual(
+ [],
+ [l for l in self.get_data_file('cloud-init.log').splitlines()
+ if 'WARN' in l],
+ msg="'WARN' found inside cloud-init.log")
+
class PasswordListTest(CloudTestCase):
"""Base password test case class."""