Skip to content

Commit 1843d00

Browse files
authored
Merge pull request #571 from pjbreaux/bugfix.test_profiles_11_5_4
During functional testing in 11.5.4 in ltm/profile some tests fail at setup
2 parents d648642 + 7a19506 commit 1843d00

2 files changed

Lines changed: 18 additions & 10 deletions

File tree

f5/bigip/mixins.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ def _check_supported_versions(self, container, attribute):
118118
minimum = attribute._meta_data['minimum_version']
119119
if LooseVersion(tmos_v) < LooseVersion(minimum):
120120
error = "There was an attempt to access resource: \n{}\n which " \
121-
"is not implemented in the device's TMOS version: {}. "\
122-
"The minimum TMOS version in which this resource *is*"\
121+
"is not implemented in the device's TMOS version: {}. " \
122+
"The minimum TMOS version in which this resource *is* " \
123123
"supported is {}".format(
124124
attribute._meta_data['uri'],
125125
tmos_v,

test/functional/tm/ltm/test_profile.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,8 @@ def test_CURDL_11_5_4_and_less(self, request, bigip):
231231
ldap = HelperTest(end_lst, 2)
232232
with pytest.raises(UnsupportedTmosVersion) as ex:
233233
ldap.test_CURDL(request, bigip)
234-
assert 'Minimum TMOS version supported is 11.6.0' in ex.value.message
234+
assert 'minimum TMOS version in which this resource *is* supported ' \
235+
'is 11.6.0' in ex.value.message
235236

236237
# End ClientLdap tests
237238

@@ -268,7 +269,8 @@ def test_CURDL_11_5_4_and_less(self, request, bigip):
268269
dhcpv4 = HelperTest(end_lst, 4)
269270
with pytest.raises(UnsupportedTmosVersion) as ex:
270271
dhcpv4.test_CURDL(request, bigip)
271-
assert 'Minimum TMOS version supported is 11.6.0' in ex.value.message
272+
assert 'minimum TMOS version in which this resource *is* supported ' \
273+
'is 11.6.0' in ex.value.message
272274

273275

274276
# End Dhcpv4 tests
@@ -295,7 +297,8 @@ def test_CURDL_11_5_4_and_less(self, request, bigip):
295297
dhcpv4 = HelperTest(end_lst, 5)
296298
with pytest.raises(UnsupportedTmosVersion) as ex:
297299
dhcpv4.test_CURDL(request, bigip)
298-
assert 'Minimum TMOS version supported is 11.6.0' in ex.value.message
300+
assert 'minimum TMOS version in which this resource *is* supported ' \
301+
'is 11.6.0' in ex.value.message
299302
# End Dhcpv6 tests
300303

301304
# Begin Diameter tests
@@ -440,7 +443,8 @@ def test_CURDL_11_5_4_and_less(self, request, bigip):
440443
dhcpv4 = HelperTest(end_lst, 13)
441444
with pytest.raises(UnsupportedTmosVersion) as ex:
442445
dhcpv4.test_CURDL(request, bigip)
443-
assert 'Minimum TMOS version supported is 11.6.0' in ex.value.message
446+
assert 'minimum TMOS version in which this resource *is* supported ' \
447+
'is 11.6.0' in ex.value.message
444448

445449

446450
# End GTP tests
@@ -500,7 +504,8 @@ def test_CURDL_11_5_4_and_less(self, request, bigip):
500504
dhcpv4 = HelperTest(end_lst, 17)
501505
with pytest.raises(UnsupportedTmosVersion) as ex:
502506
dhcpv4.test_CURDL(request, bigip)
503-
assert 'Minimum TMOS version supported is 11.6.0' in ex.value.message
507+
assert 'minimum TMOS version in which this resource *is* supported ' \
508+
'is 11.6.0' in ex.value.message
504509

505510

506511
# End HTTP tests
@@ -682,7 +687,8 @@ def test_CURDL_11_6_and_less(self, request, bigip):
682687
trustedCa='/Common/ca-bundle.crt',
683688
useProxyServer='disabled'
684689
)
685-
assert 'Minimum TMOS version supported is 11.6.0' in ex.value.message
690+
assert 'minimum TMOS version in which this resource *is* supported ' \
691+
'is 11.6.0' in ex.value.message
686692

687693
# End Ocsp Stapling Params tests
688694

@@ -919,7 +925,8 @@ def test_CURDL_11_5_4_and_less(self, request, bigip):
919925
dhcpv4 = HelperTest(end_lst, 35)
920926
with pytest.raises(UnsupportedTmosVersion) as ex:
921927
dhcpv4.test_CURDL(request, bigip)
922-
assert 'Minimum TMOS version supported is 11.6.0' in ex.value.message
928+
assert 'minimum TMOS version in which this resource *is* supported ' \
929+
'is 11.6.0' in ex.value.message
923930

924931

925932
# End Server Ldap tests
@@ -968,7 +975,8 @@ def test_CURDL_11_5_4_and_less(self, request, bigip):
968975
dhcpv4 = HelperTest(end_lst, 38)
969976
with pytest.raises(UnsupportedTmosVersion) as ex:
970977
dhcpv4.test_CURDL(request, bigip)
971-
assert 'Minimum TMOS version supported is 11.6.0' in ex.value.message
978+
assert 'minimum TMOS version in which this resource *is* supported ' \
979+
'is 11.6.0' in ex.value.message
972980

973981

974982
# End Smtp tests

0 commit comments

Comments
 (0)