Support pkg build for Managed Rel URLs, add tests 17/76617/6
authorDaniel Farrell <dfarrell@redhat.com>
Wed, 3 Oct 2018 19:06:38 +0000 (15:06 -0400)
committerDaniel Farrell <dfarrell@redhat.com>
Thu, 4 Oct 2018 21:04:43 +0000 (21:04 +0000)
commitfa510eb55f770978c030b6d09a3a498e99f1e20e
tree8ef2caf10486b617933e22bd56a3b71eb1572202
parentb4794292a297cc9458d650170c3ef073d3524ed0
Support pkg build for Managed Rel URLs, add tests

The new Managed Release Common Distribution, the distro that contains
both Managed and Self-Managed projects that we now bless as our official
releases (starting with Fluorine), uses a new distro name prefix.

The packaging build logic had support for using the correct distro name
prefix based on Karaf 3 or 4 version. Extend that logic to optionally,
but with priority, return the distro name prefix based on a download
URL. Include checks to cover MR URLs, thereby adding MR URL support.

Also add unittest coverage that finds this failure.

Jira: INTPAK-203
Change-Id: Ie1180fb78098eac6758224e3f166f6e0d1f8b629
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
packages/build.py
packages/lib.py
packages/test_lib.py