From cb5fc9a12090ab2d7129494b1bba87dcc7bd6e2a Mon Sep 17 00:00:00 2001 From: Nitin Yadav Date: Wed, 21 Feb 2024 18:41:55 +1100 Subject: [PATCH] Updated lab 'using-the-cluster-transferring-files' & SSO integration --- .../assignment.md | 17 ++++++++ .../check-rhd-login-3882386 | 41 +++++++++++++++++++ .../assignment.md | 2 +- .../assignment.md | 2 +- .../assignment.md | 2 +- .../assignment.md | 0 .../track.yml | 3 +- 7 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 instruqt-tracks/using-the-cluster-transferring-files/02-join-red-hat-developer-portal/assignment.md create mode 100644 instruqt-tracks/using-the-cluster-transferring-files/02-join-red-hat-developer-portal/check-rhd-login-3882386 rename instruqt-tracks/using-the-cluster-transferring-files/{02-02-downloading-files-from-a-container => 03-02-downloading-files-from-a-container}/assignment.md (99%) mode change 100755 => 100644 rename instruqt-tracks/using-the-cluster-transferring-files/{03-03-uploading-files-to-a-container => 04-03-uploading-files-to-a-container}/assignment.md (99%) mode change 100755 => 100644 rename instruqt-tracks/using-the-cluster-transferring-files/{04-04-synchronizing-files-with-a-container => 05-04-synchronizing-files-with-a-container}/assignment.md (99%) mode change 100755 => 100644 rename instruqt-tracks/using-the-cluster-transferring-files/{05-05-copying-files-to-a-persistent-volume => 06-05-copying-files-to-a-persistent-volume}/assignment.md (100%) mode change 100755 => 100644 diff --git a/instruqt-tracks/using-the-cluster-transferring-files/02-join-red-hat-developer-portal/assignment.md b/instruqt-tracks/using-the-cluster-transferring-files/02-join-red-hat-developer-portal/assignment.md new file mode 100644 index 00000000..26d994a1 --- /dev/null +++ b/instruqt-tracks/using-the-cluster-transferring-files/02-join-red-hat-developer-portal/assignment.md @@ -0,0 +1,17 @@ +--- +slug: join-red-hat-developer-portal +id: fwutdmfmbuuk +type: challenge +title: Join Red Hat Developer at no cost +teaser: Join Red Hat Developer at no cost +tabs: +- title: Red Hat Login + type: browser + hostname: rhd-login-3882386 +difficulty: "" +--- +Before you proceed with the next challenge, please take a moment to register for Red Hat Developer. If you already have a Red Hat account, you can use the same login credentials. + +This will help us assess user satisfaction and enable us to provide more curated content. + +Click on the `Check` button at the bottom once you have registered or logged in. diff --git a/instruqt-tracks/using-the-cluster-transferring-files/02-join-red-hat-developer-portal/check-rhd-login-3882386 b/instruqt-tracks/using-the-cluster-transferring-files/02-join-red-hat-developer-portal/check-rhd-login-3882386 new file mode 100644 index 00000000..53051468 --- /dev/null +++ b/instruqt-tracks/using-the-cluster-transferring-files/02-join-red-hat-developer-portal/check-rhd-login-3882386 @@ -0,0 +1,41 @@ +#!/bin/bash +set -euxo pipefail +echo 'logincheck' +if [ "${LOGGEDIN-0}" = "1" ]; then + echo 'loggedin' + exit 0 +fi + +rm -f /home/user/checkResult.json +rm -f /home/user/checkAssets.json +rm -f /home/user/checkError.txt + + +echo 'dropdown check' +echo '{"location":{"conditions":[{"url":"redhat.com","condition":"contains"}]},"innerText":[{"selector":"html \u003e body","value":"Please click on Check button in the bottom right of your screen to continue with the Lab."}]}' > /home/user/checkAssets.json +until [ -f /home/user/checkResult.json ]; do + sleep 1 +done +if grep "SUCCESS" /home/user/checkResult.json; then + echo 'account dropdown' + exit 0 +fi + + +rm -f /home/user/checkResult.json +rm -f /home/user/checkAssets.json +rm -f /home/user/checkError.txt + + +echo 'email check' +echo '{"location":{"conditions":[]},"innerText":[{"selector":"html \u003e body","value":"Email address verification"}]}' > /home/user/checkAssets.json +until [ -f /home/user/checkResult.json ]; do + sleep 1 +done +cat /home/user/checkResult.json +if grep "SUCCESS" /home/user/checkResult.json; then + echo 'email validation' + exit 0 +fi +fail-message "Please login and click 'Check' button." +exit 1 \ No newline at end of file diff --git a/instruqt-tracks/using-the-cluster-transferring-files/02-02-downloading-files-from-a-container/assignment.md b/instruqt-tracks/using-the-cluster-transferring-files/03-02-downloading-files-from-a-container/assignment.md old mode 100755 new mode 100644 similarity index 99% rename from instruqt-tracks/using-the-cluster-transferring-files/02-02-downloading-files-from-a-container/assignment.md rename to instruqt-tracks/using-the-cluster-transferring-files/03-02-downloading-files-from-a-container/assignment.md index 34f25ab3..1eaeb48c --- a/instruqt-tracks/using-the-cluster-transferring-files/02-02-downloading-files-from-a-container/assignment.md +++ b/instruqt-tracks/using-the-cluster-transferring-files/03-02-downloading-files-from-a-container/assignment.md @@ -131,7 +131,7 @@ Remember: The output shown above is special to this running instance of OpenShif Copy the URL returned in the output above and then copy it into a browser. The URL will take you to the SimpleMessage application's web page as shown in the figure below. -![Original Web Sites](../assets/original-web-output.png) +![Original Web Sites](..\assets\original-web-output.png) ---- diff --git a/instruqt-tracks/using-the-cluster-transferring-files/03-03-uploading-files-to-a-container/assignment.md b/instruqt-tracks/using-the-cluster-transferring-files/04-03-uploading-files-to-a-container/assignment.md old mode 100755 new mode 100644 similarity index 99% rename from instruqt-tracks/using-the-cluster-transferring-files/03-03-uploading-files-to-a-container/assignment.md rename to instruqt-tracks/using-the-cluster-transferring-files/04-03-uploading-files-to-a-container/assignment.md index b369f8eb..70f80ad7 --- a/instruqt-tracks/using-the-cluster-transferring-files/03-03-uploading-files-to-a-container/assignment.md +++ b/instruqt-tracks/using-the-cluster-transferring-files/04-03-uploading-files-to-a-container/assignment.md @@ -111,7 +111,7 @@ The output above is the URL to the SimpleMessage application running in this Ope `Step 7:` Copy the URL from the output above into your web browser's address bar. You will see the new message appear as shown in the figure below. -![Web Output](../assets/web-output.png) +![Web Output](..\assets\web-output.png) As you can see, the new message you created in `message.txt` is now displayed in the web page. diff --git a/instruqt-tracks/using-the-cluster-transferring-files/04-04-synchronizing-files-with-a-container/assignment.md b/instruqt-tracks/using-the-cluster-transferring-files/05-04-synchronizing-files-with-a-container/assignment.md old mode 100755 new mode 100644 similarity index 99% rename from instruqt-tracks/using-the-cluster-transferring-files/04-04-synchronizing-files-with-a-container/assignment.md rename to instruqt-tracks/using-the-cluster-transferring-files/05-04-synchronizing-files-with-a-container/assignment.md index aa389de5..ee331ac4 --- a/instruqt-tracks/using-the-cluster-transferring-files/04-04-synchronizing-files-with-a-container/assignment.md +++ b/instruqt-tracks/using-the-cluster-transferring-files/05-04-synchronizing-files-with-a-container/assignment.md @@ -133,7 +133,7 @@ http://simplemessage-myproject.crc-lgph7-master-0.crc.ai7oaxyso7ih.instruqt.io `Step 8:` Copy the URL you retrieved in the previous step into a web browser. You'll see a web page as shown in the figure below. -![Updated Web Page](../assets/updated-web-output.png) +![Updated Web Page](..\assets\updated-web-output.png) As you can see, the web page was updated. The container's file system will now be updated automatically, and the web page has the new message you entered in `message.txt`. diff --git a/instruqt-tracks/using-the-cluster-transferring-files/05-05-copying-files-to-a-persistent-volume/assignment.md b/instruqt-tracks/using-the-cluster-transferring-files/06-05-copying-files-to-a-persistent-volume/assignment.md old mode 100755 new mode 100644 similarity index 100% rename from instruqt-tracks/using-the-cluster-transferring-files/05-05-copying-files-to-a-persistent-volume/assignment.md rename to instruqt-tracks/using-the-cluster-transferring-files/06-05-copying-files-to-a-persistent-volume/assignment.md diff --git a/instruqt-tracks/using-the-cluster-transferring-files/track.yml b/instruqt-tracks/using-the-cluster-transferring-files/track.yml index 152fe29d..ac476fc8 100755 --- a/instruqt-tracks/using-the-cluster-transferring-files/track.yml +++ b/instruqt-tracks/using-the-cluster-transferring-files/track.yml @@ -38,5 +38,6 @@ lab_config: overlay: false width: 25 position: right + feedback_recap_enabled: true loadingMessages: true -checksum: "7689949945208204260" +checksum: "5515217209058270036"