Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Fix for the dashboard test failures #711

Merged
merged 1 commit into from
Dec 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM quay.io/centos/centos:stream8

# List of chromedriver versions for download - https://chromedriver.chromium.org/downloads
ARG CHROMEDRIVER_VER=106.0.5249.21
ARG CHROMEDRIVER_VER=108.0.5359.71
ARG ORG=opendatahub-io
ARG BRANCH=master
ARG ODS_CI_REPO=https://github.com/red-hat-data-services/ods-ci
Expand Down
7 changes: 6 additions & 1 deletion tests/basictests/dashboard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ ODH_DASHBOARD_URL=

os::test::junit::declare_suite_start "$MY_SCRIPT"

function check_crds() {
header "Checking for ODH Dashboard dependencies - CustomResourceDefinitions"
os::cmd::try_until_not_text "oc get crd odhdashboardconfigs.opendatahub.io" "NotFound" $odhdefaulttimeout $odhdefaultinterval
}

function check_resources() {
header "Testing dashboard installation"
os::cmd::expect_success "oc project ${ODHPROJECT}"
os::cmd::try_until_text "oc get odh-dashboard odh-dashboard" "odh-dashboard" $odhdefaulttimeout $odhdefaultinterval
os::cmd::try_until_text "oc get crd odhdashboardconfigs " "odhdashboardconfigs" $odhdefaulttimeout $odhdefaultinterval
os::cmd::try_until_text "oc get role odh-dashboard" "odh-dashboard" $odhdefaulttimeout $odhdefaultinterval
os::cmd::try_until_text "oc get rolebinding odh-dashboard" "odh-dashboard" $odhdefaulttimeout $odhdefaultinterval
os::cmd::try_until_text "oc get route odh-dashboard" "odh-dashboard" $odhdefaulttimeout $odhdefaultinterval
Expand Down Expand Up @@ -67,6 +71,7 @@ function test_odh_dashboard_ui() {
popd
}

check_crds
check_resources
# Disabling the REST API check because it requires that the user account has cluster-admin permissions
# This test should be re-enabled when https://github.com/opendatahub-io/odh-dashboard/issues/548 is resolved
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Can Spawn Notebook
# We need to skip this testcase if the user has an existing pod
Fix Spawner Status
Capture Page Screenshot
Spawn Notebook With Arguments image=s2i-generic-data-science-notebook
Spawn Notebook With Arguments image=jupyter-datascience-notebook

Can Launch Python3 Smoke Test Notebook
[Documentation] Execute simple commands in the Jupyter notebook to verify basic functionality
Expand Down