Skip to content

Commit

Permalink
Use latest Version of Operator for Testing (#2650)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvaldivia authored Feb 9, 2023
1 parent 8346fe4 commit e8f2722
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
9 changes: 2 additions & 7 deletions portal-ui/tests/permissions-2/inspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,9 @@ const inspectScreenUrl = `${testDomainUrl}${IAM_PAGES.SUPPORT_INSPECT}`;

const loginSubmitBtn = Selector("form button");

export const supportSidebarEl = Selector(".MuiPaper-root")
export const inspectEl = Selector(".MuiPaper-root")
.find("ul")
.child("#support");

export const supportChildren = Selector("#support-children");
export const inspectEl = supportChildren
.find("a")
.withAttribute("href", IAM_PAGES.SUPPORT_INSPECT);
.child("#inspect");

export const inspect_volume_input = Selector('[data-test-id="inspect_volume"]');
export const inspect_path_input = Selector('[data-test-id="inspect_path"]');
Expand Down
11 changes: 9 additions & 2 deletions tests/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,17 @@ function setup_kind() {
try kubectl get nodes
}

function get_latest_release() {
curl --silent "https://api.github.com/repos/$1/releases/latest" |
grep '"tag_name":' |
sed -E 's/.*"([^"]+)".*/\1/'
}

function install_operator() {

echo " Load minio/operator image to the cluster"
try kubectl apply -k github.com/minio/operator/
OPR_LATEST=$(get_latest_release minio/operator)
echo " Load minio/operator image ($OPR_LATEST) to the cluster"
try kubectl apply -k github.com/minio/operator/\?ref\=$OPR_LATEST
echo "Waiting for k8s api"
sleep 10
echo "Waiting for Operator Pods to come online (2m timeout)"
Expand Down

0 comments on commit e8f2722

Please sign in to comment.