Skip to content

Commit 4f2f864

Browse files
committed
fix typo, handle version bug
1 parent de2d8e2 commit 4f2f864

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

test/functional/tm/ltm/test_profile.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import copy
1818
from distutils.version import LooseVersion
1919
from f5.bigip.mixins import UnsupportedTmosVersion
20+
from icontrol.exceptions import iControlUnexpectedHTTPError
2021
from pprint import pprint as pp
2122
pp(__file__)
2223
import pytest
@@ -566,10 +567,17 @@ def test_MCURDL(self, request, bigip):
566567
# Begin Ipother tests
567568

568569

569-
class TestIother(object):
570+
class TestIpother(object):
570571
def test_MCURDL(self, request, bigip):
571572
ipoth = HelperTest('Ipothers')
572-
ipoth.test_MCURDL(request, bigip)
573+
if LooseVersion(pytest.config.getoption('--release')) <\
574+
LooseVersion('11.6.0'):
575+
with pytest.raises(iControlUnexpectedHTTPError) as iCUHEEIO:
576+
ipoth.test_MCURDL(request, bigip)
577+
assert 'Found unexpected json pair at configuration item' in\
578+
iCUHEEIO.message.value
579+
else:
580+
ipoth.test_MCURDL(request, bigip)
573581

574582

575583
# End Ipother tests

0 commit comments

Comments
 (0)