diff options
author | Chibuikem Amaechi <cramaechi@me.com> | 2018-01-23 09:37:24 -0500 |
---|---|---|
committer | Yves Duhem <yves.duhem@mongodb.com> | 2018-01-23 09:37:31 -0500 |
commit | ad0ab27807a29e025b36a82ede139c975ad65cfb (patch) | |
tree | 0e49543bf6ea18510e468467dcb2f45356f509e1 /buildscripts/tests | |
parent | 805c28ebf2d1df9fefdf9f16726ea5b1ab77c5e9 (diff) | |
download | mongo-ad0ab27807a29e025b36a82ede139c975ad65cfb.tar.gz |
SERVER-31942 Truncate test lifecycle JIRA issue description
Closes #1204
Signed-off-by: Yves Duhem <yves.duhem@mongodb.com>
Diffstat (limited to 'buildscripts/tests')
-rw-r--r-- | buildscripts/tests/test_update_test_lifecycle.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/buildscripts/tests/test_update_test_lifecycle.py b/buildscripts/tests/test_update_test_lifecycle.py index f92c0141419..feca9e577ee 100644 --- a/buildscripts/tests/test_update_test_lifecycle.py +++ b/buildscripts/tests/test_update_test_lifecycle.py @@ -1009,6 +1009,17 @@ class TestJiraIssueCreator(unittest.TestCase): expected = "_None_" self.assertEqual(expected, desc) + def test_truncate_description(self): + desc = "a" * (update_test_lifecycle.JiraIssueCreator._MAX_DESCRIPTION_SIZE - 1) + self.assertTrue(desc == update_test_lifecycle.JiraIssueCreator._truncate_description(desc)) + + desc += "a" + self.assertTrue(desc == update_test_lifecycle.JiraIssueCreator._truncate_description(desc)) + + desc += "a" + self.assertTrue(len(update_test_lifecycle.JiraIssueCreator._truncate_description(desc)) <= + update_test_lifecycle.JiraIssueCreator._MAX_DESCRIPTION_SIZE) + class TestTagsConfigWithChangelog(unittest.TestCase): def setUp(self): |