Skip to content

Commit 139346d

Browse files
committed
Added new lab 'subsystems-container-internals-lab-2-0-part-7' & SSO integration
1 parent 13ed0e5 commit 139346d

File tree

11 files changed

+66
-2
lines changed

11 files changed

+66
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
slug: join-red-hat-developer-portal
3+
id: pyxffunx1js2
4+
type: challenge
5+
title: Join Red Hat Developer at no cost
6+
teaser: Join Red Hat Developer at no cost
7+
tabs:
8+
- title: Red Hat Login
9+
type: browser
10+
hostname: rhd-login
11+
difficulty: ""
12+
---
13+
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.
14+
15+
This will help us assess user satisfaction and enable us to provide more curated content.
16+
17+
Click on the `Check` button at the bottom once you have registered or logged in.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/bin/bash
2+
set -euxo pipefail
3+
echo 'logincheck'
4+
if [ "${LOGGEDIN-0}" = "1" ]; then
5+
echo 'loggedin'
6+
exit 0
7+
fi
8+
9+
rm -f /home/user/checkResult.json
10+
rm -f /home/user/checkAssets.json
11+
rm -f /home/user/checkError.txt
12+
13+
14+
echo 'dropdown check'
15+
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
16+
until [ -f /home/user/checkResult.json ]; do
17+
sleep 1
18+
done
19+
if grep "SUCCESS" /home/user/checkResult.json; then
20+
echo 'account dropdown'
21+
exit 0
22+
fi
23+
24+
25+
rm -f /home/user/checkResult.json
26+
rm -f /home/user/checkAssets.json
27+
rm -f /home/user/checkError.txt
28+
29+
30+
echo 'email check'
31+
echo '{"location":{"conditions":[]},"innerText":[{"selector":"html \u003e body","value":"Email address verification"}]}' > /home/user/checkAssets.json
32+
until [ -f /home/user/checkResult.json ]; do
33+
sleep 1
34+
done
35+
cat /home/user/checkResult.json
36+
if grep "SUCCESS" /home/user/checkResult.json; then
37+
echo 'email validation'
38+
exit 0
39+
fi
40+
fail-message "Please login and click 'Check' button."
41+
exit 1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
version: "3"
2+
virtualbrowsers:
3+
- name: rhd-login
4+
url: https://developers.redhat.com/node/284339?auHash=5k9QV-yD0z-jAU7XkJyq1TUxhVyyZVLiuZz7tsfTz_s&offerid=3882353
25
virtualmachines:
36
- name: rhel
47
image: instruqt-redhat/rhel-latest
58
shell: /bin/bash
69
environment:
710
TERM: xterm
8-
machine_type: n1-highmem-4
11+
machine_type: n1-highmem-4

instruqt-tracks/subsystems-container-internals-lab-2-0-part-7/track.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ developers:
3636
3737
3838
39+
maintenance: true
3940
lab_config:
4041
overlay: false
4142
width: 25
4243
position: right
43-
checksum: "534048997498659061"
44+
feedback_recap_enabled: true
45+
loadingMessages: true
46+
checksum: "1631815228435239697"

0 commit comments

Comments
 (0)