File tree 2 files changed +26
-4
lines changed
2 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ load fixtures/content
10
10
@test " try fetching container content" {
11
11
tPackageExists podman || tPackageInstall podman
12
12
podman login " ${HOSTNAME} " -u admin -p changeme
13
- CONTAINER_PULL_LABEL=$( echo " ${ORGANIZATION_LABEL} -${PRODUCT_LABEL} -${CONTAINER_REPOSITORY_LABEL} " | tr ' [:upper:]' ' [:lower:]' )
13
+ if tIsVersionNewer " ${KATELLO_VERSION} " 4.16
14
+ CONTAINER_PULL_LABEL=$( echo " ${ORGANIZATION_LABEL} /${PRODUCT_LABEL} /${CONTAINER_REPOSITORY_LABEL} " | tr ' [:upper:]' ' [:lower:]' )
15
+ else
16
+ CONTAINER_PULL_LABEL=$( echo " ${ORGANIZATION_LABEL} -${PRODUCT_LABEL} -${CONTAINER_REPOSITORY_LABEL} " | tr ' [:upper:]' ' [:lower:]' )
17
+ fi
14
18
podman pull " ${HOSTNAME} /${CONTAINER_PULL_LABEL} "
15
19
}
16
20
@@ -19,7 +23,11 @@ load fixtures/content
19
23
tContainerPushSupported
20
24
tPackageExists podman || tPackageInstall podman
21
25
podman login " ${HOSTNAME} " -u admin -p changeme
22
- CONTAINER_PULL_LABEL=$( echo " ${ORGANIZATION_LABEL} -${PRODUCT_LABEL} -${CONTAINER_REPOSITORY_LABEL} " | tr ' [:upper:]' ' [:lower:]' )
26
+ if tIsVersionNewer " ${KATELLO_VERSION} " 4.16
27
+ CONTAINER_PULL_LABEL=$( echo " ${ORGANIZATION_LABEL} /${PRODUCT_LABEL} /${CONTAINER_REPOSITORY_LABEL} " | tr ' [:upper:]' ' [:lower:]' )
28
+ else
29
+ CONTAINER_PULL_LABEL=$( echo " ${ORGANIZATION_LABEL} -${PRODUCT_LABEL} -${CONTAINER_REPOSITORY_LABEL} " | tr ' [:upper:]' ' [:lower:]' )
30
+ fi
23
31
CONTAINER_PUSH_LABEL=$( echo " ${ORGANIZATION_LABEL} /${PRODUCT_LABEL} /${CONTAINER_REPOSITORY_LABEL} -bats-$( date -u ' +%s' ) " | tr ' [:upper:]' ' [:lower:]' )
24
32
podman push " ${HOSTNAME} /${CONTAINER_PULL_LABEL} " " ${HOSTNAME} /${CONTAINER_PUSH_LABEL} "
25
33
# Sleep for 5 seconds due to an intermittent issue where pushed content
Original file line number Diff line number Diff line change @@ -48,8 +48,22 @@ tSkipIfOlderThan43() {
48
48
49
49
tContainerPushSupported () {
50
50
KATELLO_VERSION=$( tKatelloVersion)
51
- if ! tIsVersionNewer " ${KATELLO_VERSION} " 4.15; then
52
- skip " Container push is only supported on Katello 4.15+"
51
+ if ! tIsVersionNewer " ${KATELLO_VERSION} " 4.14; then
52
+ skip " Container push is only supported on Katello 4.14+"
53
+ fi
54
+ }
55
+
56
+ tContainerSlashesDefault () {
57
+ KATELLO_VERSION=$( tKatelloVersion)
58
+ if ! tIsVersionNewer " ${KATELLO_VERSION} " 4.16; then
59
+ skip " Container names have slashes by default only on Katello 4.16+"
60
+ fi
61
+ }
62
+
63
+ tContainerSlashesNotDefault () {
64
+ KATELLO_VERSION=$( tKatelloVersion)
65
+ if tIsVersionNewer " ${KATELLO_VERSION} " 4.16; then
66
+ skip " Container names have slashes by default only on Katello 4.16+"
53
67
fi
54
68
}
55
69
You can’t perform that action at this time.
0 commit comments