Skip to content

Commit

Permalink
Add tests that break in master for wron --until
Browse files Browse the repository at this point in the history
  • Loading branch information
Felixoid committed Oct 9, 2024
1 parent de72cc3 commit fe412f0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/github/issues.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"
Expand Down
9 changes: 9 additions & 0 deletions tests/github/pulls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit fe412f0

Please sign in to comment.