[BUILD-617] Test the ChangelogService Created: 21/Dec/21  Updated: 27/Oct/22

Status: Open
Project: Build
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Maxime Michel Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Epic Link: Release automation
Team: Foundation

 Description   

For instance:

    @Test
    void isInChangelogGroup() throws Exception {
        // GIVEN
        String jql = IOUtils.toString(getClass().getResourceAsStream("/jql.txt"), StandardCharsets.UTF_8); // real world changelog example
        String snapshotVersion = "6.2.12-SNAPSHOT";

        // WHEN - THEN
        assertTrue(jiraService.isInChangelogGroup(jql, "MGNLCE", snapshotVersion));
        assertTrue(jiraService.isInChangelogGroup(jql, "MGNLEE", snapshotVersion));
        assertTrue(jiraService.isInChangelogGroup(jql, "MGNLUI", snapshotVersion));
    } 

Generated at Sun Feb 11 23:43:32 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.