Make create version tests easier 61/4061/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 6 Mar 2017 00:30:23 +0000 (19:30 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 6 Mar 2017 00:39:20 +0000 (19:39 -0500)
commit011aae5502790adf441c909afa344250e67811be
tree3cc06082c4993dfe614379fb1300019129248de0
parentbda84c60bfe2d7aaa43c5a4b16c738f6c61ee964
Make create version tests easier

This patch allows version tests to simply be placing files into a
directory and comparing the test results from an input pom and an
expected pom.

Also add a test to validate bump order.

Change-Id: Ide4da6f721223bc4d3edab79db9008e4cae730c6
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
13 files changed:
tests/fixtures/version_bump/bump_order/README [new file with mode: 0644]
tests/fixtures/version_bump/bump_order/pom.xml [new file with mode: 0644]
tests/fixtures/version_bump/bump_order/pom.xml.expected [new file with mode: 0644]
tests/fixtures/version_bump/release/README [new file with mode: 0644]
tests/fixtures/version_bump/release/pom.xml [moved from tests/fixtures/pom.xml.expected-release with 100% similarity]
tests/fixtures/version_bump/release/pom.xml.expected [moved from tests/fixtures/pom.xml.expected-release-bump with 100% similarity]
tests/fixtures/version_bump/snapshot/README [new file with mode: 0644]
tests/fixtures/version_bump/snapshot/pom.xml [moved from tests/fixtures/pom.xml with 100% similarity]
tests/fixtures/version_bump/snapshot/pom.xml.expected [moved from tests/fixtures/pom.xml.expected-bump with 100% similarity]
tests/fixtures/version_release/snapshot/README [new file with mode: 0644]
tests/fixtures/version_release/snapshot/pom.xml [new file with mode: 0644]
tests/fixtures/version_release/snapshot/pom.xml.expected [new file with mode: 0644]
tests/test_version.py