SYNOPSIS
Introducing .spec fixes is a core functionality
SCENARIOS
rdopkg fix - did not add description of changes
-
Given a distgit,
-
When I run rdopkg fix,
-
Then rdopkg state file is present
rdopkg fix
-
Given a distgit,
-
When I run rdopkg fix,
-
When I add description to .spec changelog,
-
When I run rdopkg --continue,
-
Then .spec file contains new changelog entry with 1 lines,
-
Then new commit was created,
-
Then rdopkg state file is not present,
-
Then last commit message is:
""" foo-bar-1.2.3-3 Changelog: - Description of a change """
rdopkg fix - did not add description of changes
-
Given a distgit,
-
When I run rdopkg fix,
-
When I run rdopkg --continue,
-
Then command output contains Description of changes is missing in %changelog.,
-
Then no new commit was created,
-
Then rdopkg state file is present
rdopkg fix - user reverted all changes
-
Given a distgit,
-
When I run rdopkg fix,
-
When I undo all changes,
-
When I run rdopkg --continue,
-
Then command output contains No distgit changes found,
-
Then no new commit was created,
-
Then rdopkg state file is present
rdopkg fix - user aborts
-
Given a distgit,
-
When I run rdopkg fix,
-
When I undo all changes,
-
When I run rdopkg --abort,
-
Then no new commit was created,
-
Then rdopkg state file is not present
rdopkg fix - user reruns
-
Given a distgit,
-
When I run rdopkg fix,
-
When I run rdopkg fix,
-
Then command output contains You’re in the middle of previous action: fix,
-
Then command output contains Please --continue or --abort,
-
Then no new commit was created,
-
Then rdopkg state file is present
rdopkg fix - user aborts and reruns
-
Given a distgit,
-
When I run rdopkg fix,
-
When I run rdopkg fix,
-
When I undo all changes,
-
When I run rdopkg --abort,
-
When I run rdopkg fix,
-
When I add description to .spec changelog,
-
When I run rdopkg --continue,
-
Then .spec file contains new changelog entry with 1 lines,
-
Then new commit was created,
-
Then rdopkg state file is not present,
-
Then last commit message is:
""" foo-bar-1.2.3-3 Changelog: - Description of a change """
rdopkg fix - Normal semver nvr bumps consistently
-
Given a distgit at Version 2.0.0 and Release 0.1,
-
When I run rdopkg fix,
-
Then .spec file tag Release is 0.2%{?dist}
rdopkg fix - Normal semver nvr bumps consistently - with dist macro specified
-
Given a distgit at Version 2.0.0 and Release 0.1%{?dist},
-
When I run rdopkg fix,
-
Then .spec file tag Release is 0.2%{?dist}
rdopkg fix - Normal semver nvr bumps consistently
-
Given a distgit at Version 2.0.0 and Release 1%{?dist},
-
When I run rdopkg fix,
-
Then .spec file tag Release is 2%{?dist}
rdopkg fix - Normal semver nvr bumps consistently
-
Given a distgit at Version 2.0.0 and Release 15%{?dist},
-
When I run rdopkg fix,
-
Then .spec file tag Release is 16%{?dist}
rdopkg fix - Normal semver nvr bumps consistently
-
Given a distgit at Version 2.0.0 and Release 15.0%{?dist},
-
When I run rdopkg fix,
-
Then .spec file tag Release is 15.1%{?dist}
rdopkg fix - Release with %{?dist} in the middle bumps correctly
-
Given a distgit at Version 2.0.0 and Release 1.0%{?dist}.1,
-
When I run rdopkg fix,
-
Then .spec file tag Release is 1.1%{?dist}.1