-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge nitinsyadav:cluster_transfer #305
- Loading branch information
Showing
6 changed files
with
61 additions
and
3 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
...g-the-cluster-transferring-files/02-join-red-hat-developer-portal/assignment.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
41 changes: 41 additions & 0 deletions
41
...g-the-cluster-transferring-files/02-join-red-hat-developer-portal/check-rhd-login-3882386
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.