diff --git a/tests/github/issues.sh b/tests/github/issues.sh index 59ed9a44..9432eda9 100755 --- a/tests/github/issues.sh +++ b/tests/github/issues.sh @@ -6,6 +6,7 @@ did="did --config" YEAR_2021="--since 2021-01-01 --until 2021-12-31" YEAR_2022="--since 2022-01-01 --until 2022-12-31" YEAR_2023="--since 2023-01-01 --until 2023-12-31" +CHECK_UNTIL="--since 2022-10-01 --until 2022-10-26" rlJournalStart @@ -51,6 +52,14 @@ rlJournalStart rlAssertNotGrep "teemtee/tmt#910 - Shall we introduce a uuid for tests?" $rlRun_LOG rlPhaseEnd + rlPhaseStartTest "Issues Created, check correct --until" + rlRun -s "$did ./config-default.ini --gh-issues-created $CHECK_UNTIL" + rlAssertGrep "Issues created on gh: 1$" $rlRun_LOG + rlAssertGrep "teemtee/tmt#1559 - Update the overview of essential classes$" $rlRun_LOG + rlAssertNotGrep 'teemtee/tmt#1648' $rlRun_LOG + rlAssertNotGrep 'teemtee/tmt#1650' $rlRun_LOG + rlPhaseEnd + # Issues Closed rlPhaseStartTest "Issues Closed" diff --git a/tests/github/pulls.sh b/tests/github/pulls.sh index c5d047a6..33deb060 100755 --- a/tests/github/pulls.sh +++ b/tests/github/pulls.sh @@ -5,6 +5,7 @@ did="did --config" YEAR_2022="--since 2022-01-01 --until 2022-12-31" YEAR_2021="--since 2021-01-01 --until 2021-12-31" +CHECK_UNTIL="--since 2022-10-01 --until 2022-10-26" rlJournalStart @@ -65,6 +66,14 @@ rlJournalStart rlAssertNotGrep "packit/packit.dev#399 - Update \`tmt\` examples" $rlRun_LOG rlPhaseEnd + rlPhaseStartTest "Pull Requests Created, check correct --until" + rlRun -s "$did ./config-default.ini --gh-pull-requests-created $CHECK_UNTIL" + rlAssertGrep "Pull requests created on gh: 7$" $rlRun_LOG + rlAssertGrep 'teemtee/tmt#1642 - Move the hardware specification into a separate page$' $rlRun_LOG + rlAssertNotGrep 'teemtee/tmt#1645' $rlRun_LOG + rlAssertNotGrep 'teemtee/tmt#1644' $rlRun_LOG + rlPhaseEnd + # Pull Requests Closed rlPhaseStartTest "Pull Requests Closed"