Fix a test issue where the correct issue is not being verified for. (#162)

This commit is contained in:
Christina Kang - MSFT 2018-12-03 13:11:29 -08:00 коммит произвёл GitHub
Родитель 449e2959d5
Коммит 950b94a507
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -262,7 +262,7 @@ def sfctl_cluster_version_matches(cluster_version, sfctl_version):
if sfctl_version == '7.0.0':
return cluster_version.startswith('6.5')
return cluster_version.startswith('6.4')
# If we forget to update this code before a new release, the tests which call this method
# will fail.

Просмотреть файл

@ -61,7 +61,11 @@ class ClusterTests(unittest.TestCase):
# An exception will be raised if the current cluster version doesn't exist in the function
try:
sfctl_cluster_version_matches('6.4', current_sfctl_version)
self.assertTrue(sfctl_cluster_version_matches('6.4', current_sfctl_version),
msg='You are most likely getting this error because we need to '
'update the method sfctl_cluster_version_matches in '
'custom_cluster so that it works with the '
'current version of sfctl, or we need to update this test.')
except SFCTLInternalException as ex:
# Give a more test appropriate error message
self.fail(ex.message + ' You are most likely getting this error because we need to '