Skip to content

Commit beda46f

Browse files
committed
Updated lab 'developing-with-quarkus-spring' & SSO integration
1 parent 13ed0e5 commit beda46f

File tree

12 files changed

+69
-8
lines changed

12 files changed

+69
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
slug: join-red-hat-developer-portal
3+
id: bcqxuaxbhteq
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

instruqt-tracks/developing-with-quarkus-spring/02-02-create-data/assignment.md instruqt-tracks/developing-with-quarkus-spring/03-02-create-data/assignment.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ First, you need a data model.
4343

4444
`Step 3:` Click the `Create File` icon in the **Visual Editor** at directory `fruit-taster/src/main/java/org/acme/` and create a new file named `Fruit.java` as shown in the figure below.
4545

46-
![Create fruit.java](../assets/create-fruit-java.png)
46+
![Create fruit.java](..\assets\create-fruit-java.png)
4747

4848
----
4949

instruqt-tracks/developing-with-quarkus-spring/06-06-deploy-and-test/assignment.md instruqt-tracks/developing-with-quarkus-spring/07-06-deploy-and-test/assignment.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,13 @@ As mentioned previously, OpenShift ships with a web-based console that will allo
235235

236236
`Step 10:` Click on `OpenShift Web Console` tab on the horizontal menu bar over the terminal window to the left. You'll be presented with a login dialog as shown in the figure below.
237237

238-
![Login](../assets/web-console-login.png)
238+
![Login](..\assets\web-console-login.png)
239239

240240

241241
|NOTE:|
242242
|----|
243243
|You might see the following warning notification due to using an untrusted security certificate.
244-
![Security warning](../assets/security_warning.png)
244+
![Security warning](..\assets\security_warning.png)
245245
If you do get the warning, click the **Advanced** button to grant permission to access the OpenShift Web Console.|
246246

247247
----
@@ -265,15 +265,15 @@ You'll be presented with the Developer perspective when you login.
265265

266266
`Step 14:` Click the `quarkus-spring` project link as shown in the figure below.
267267

268-
![Topology View 1](../assets/topology-view-01.png)
268+
![Topology View 1](..\assets\topology-view-01.png)
269269

270270
You'll be presented with the Topology page for the `quarkus-spring`.
271271

272272
----
273273

274274
The Topology page for the `quarkus-spring` has two circular graphics as shown in the figure below.
275275

276-
![Openshift UI](../assets/open-shift-ui.png)
276+
![Openshift UI](..\assets\open-shift-ui.png)
277277

278278

279279
One graphic represents to the Fruit Taster demonstration application. The other circular graphic represents the Postgres database that's storing the fruit data. When you click on the center of the Fruit Taster graphic an information page will slide out from the right side of the web console.
@@ -315,7 +315,7 @@ deployment.apps/fruit-taster scaled
315315

316316
`Step 17:` Click the center of the circular graphic for the Fruit Taster in the **Topology** view of the web console as shown in the figure below.
317317

318-
![Scaling Up 1](../assets/scaling-up-01.png)
318+
![Scaling Up 1](..\assets\scaling-up-01.png)
319319

320320

321321
The information page for the Fruit Taster app will slide out from the right side.
@@ -324,7 +324,7 @@ The information page for the Fruit Taster app will slide out from the right side
324324

325325
`Step 18:` Click the **Details** tab in the horizontal menu bar of the Fruit Taster information page as shown in figure below.
326326

327-
![Scaling Up 2](../assets/scaling-up-02.png)
327+
![Scaling Up 2](..\assets\scaling-up-02.png)
328328

329329
Notice that the there is another circular graphic indicating that 10 instances of the Fruit Taster app are running as shown in the figure above.
330330

instruqt-tracks/developing-with-quarkus-spring/config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
version: "3"
2+
virtualbrowsers:
3+
- name: rhd-login
4+
url: https://developers.redhat.com/node/284339?auHash=5k9QV-yD0z-jAU7XkJyq1TUxhVyyZVLiuZz7tsfTz_s&offerid=3882338
25
virtualmachines:
36
- name: crc
47
image: rhd-devx-instruqt/openshift-4-14-7-97g8f

instruqt-tracks/developing-with-quarkus-spring/track.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ lab_config:
3232
position: right
3333
feedback_recap_enabled: true
3434
loadingMessages: true
35-
checksum: "15138661117912077030"
35+
checksum: "13691426508673264921"

0 commit comments

Comments
 (0)