Skip to content

Commit e8f2722

Browse files
authored
Use latest Version of Operator for Testing (#2650)
1 parent 8346fe4 commit e8f2722

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

portal-ui/tests/permissions-2/inspect.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,9 @@ const inspectScreenUrl = `${testDomainUrl}${IAM_PAGES.SUPPORT_INSPECT}`;
4848

4949
const loginSubmitBtn = Selector("form button");
5050

51-
export const supportSidebarEl = Selector(".MuiPaper-root")
51+
export const inspectEl = Selector(".MuiPaper-root")
5252
.find("ul")
53-
.child("#support");
54-
55-
export const supportChildren = Selector("#support-children");
56-
export const inspectEl = supportChildren
57-
.find("a")
58-
.withAttribute("href", IAM_PAGES.SUPPORT_INSPECT);
53+
.child("#inspect");
5954

6055
export const inspect_volume_input = Selector('[data-test-id="inspect_volume"]');
6156
export const inspect_path_input = Selector('[data-test-id="inspect_path"]');

tests/common.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,17 @@ function setup_kind() {
3737
try kubectl get nodes
3838
}
3939

40+
function get_latest_release() {
41+
curl --silent "https://api.github.com/repos/$1/releases/latest" |
42+
grep '"tag_name":' |
43+
sed -E 's/.*"([^"]+)".*/\1/'
44+
}
45+
4046
function install_operator() {
4147

42-
echo " Load minio/operator image to the cluster"
43-
try kubectl apply -k github.com/minio/operator/
48+
OPR_LATEST=$(get_latest_release minio/operator)
49+
echo " Load minio/operator image ($OPR_LATEST) to the cluster"
50+
try kubectl apply -k github.com/minio/operator/\?ref\=$OPR_LATEST
4451
echo "Waiting for k8s api"
4552
sleep 10
4653
echo "Waiting for Operator Pods to come online (2m timeout)"

0 commit comments

Comments
 (0)