From 319a331e513a57ce1419b11f1a618158a5e33870 Mon Sep 17 00:00:00 2001 From: Eric Wehrmeister Date: Fri, 4 Mar 2016 11:53:08 -0600 Subject: [PATCH] Improved TestRecordsetNegative Added a parent to the class and hardcoded the zone id and name in one of the tests. Change-Id: I8f973e52561d4644821148690430be4c0c1944c0 --- designateclient/functionaltests/v2/test_recordsets.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/designateclient/functionaltests/v2/test_recordsets.py b/designateclient/functionaltests/v2/test_recordsets.py index 6be2a2d1..e104ba40 100644 --- a/designateclient/functionaltests/v2/test_recordsets.py +++ b/designateclient/functionaltests/v2/test_recordsets.py @@ -102,11 +102,12 @@ class TestRecordset(BaseDesignateTest): self.assertEqual(rset.ttl, 'None') -class TestRecordsetNegative(object): +class TestRecordsetNegative(BaseDesignateTest): def test_invalid_option_on_recordset_create(self): - cmd = 'recordset create {0} aaa.{1} --type A --records 1.2.3.4 ' \ - '--invalid "not valid"'.format(self.zone.id, self.zone.name) + cmd = 'recordset create de47d30b-41c5-4e38-b2c5-e0b908e19ec7 ' \ + 'aaa.desig.com. --type A --records 1.2.3.4 ' \ + '--invalid "not valid"' self.assertRaises(CommandFailed, self.clients.openstack, cmd) def test_invalid_recordset_command(self):