Skip to content

Commit

Permalink
merge nitinsyadav:cluster_transfer #305
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanj committed Jul 16, 2024
2 parents 586aee9 + cb5fc9a commit f1928e8
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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)

----

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
File renamed without changes.

0 comments on commit f1928e8

Please sign in to comment.