2X the points gained during the growth doubling period
Points
Get points: use points for successful completion of experiments, challenges and learning route courses:points can unlock advanced features such as: discovery mode, schedule experiments, extended experiments, VIP experiments, etc.
Number of active activities
Each time you complete an experiment, challenge, or course, you increase the number of active activities to earn a higher level
The system detects that you've not completed the task
Quick path - Complete any of the following experiments
1. Discovery provides longer time for your experience;you are home free 2. Data will be cleared after the end of discovery 3. It is needed to finish the experiment and challenge first to start your discovery
Please start your challenge after you finish the experiment
Please start your discovery after you finish the challenge.
Please start your discovery after you finish the experiment.
Experiment Manual
The following content is displayed on the same screen for your experiment so that you can make any necessary reference in experiment. Start your experiment now!
Test preparation(Duration: 2 mins)
Demo Diagram
Before the experiment, you can check the return information of the host service by calling the default (unmodified) host service with the following command: Execute it under current user directory: cat check.sh (View the service call command) The output is as follows: curl -XPOST -H "Content-Type:application/json" http://zsystem.lab.csc:3000x/zosConnect/services/Region?action=invoke ./check.sh (Execute the script call service) You will see the following return information: {"TESTCOMM":{"DATAFLD":"HELLO FROM LAB"}}
Log into Gitlab to create a new branch(Duration: 5 mins)
Click Sign in in the browser, and accesshttps://zansible.lab.csc:7443 via Git Account test00x/password. If login is successful, you will see the Gitlab project named "test00x". As shown in the following figure, Note: test001 is used as an example in the figure, and the current actual project name is test00x
Enter the project and you can see that the project has two branches: master and base. Click New branch as shown below, and create a new branch as shown below. In Branch Name, enter CTBR0x , and create from base as the source for the new branch, and then click Create branch to create a branch.
Check the COBOL application code(Duration: 5 mins)
Click on the COBOL app that we are about to modify TESTA.cbl , and COMPILE is a compilation task.
Click Edit to modify TESTA.cbl. Note: Check it to make sure that it was modified under branch CTBR0x. We customize the HELLO Message field, ’HELLO FROM LAB‘, for instance, 'HELLO FROM CSC' . Note: The total length of the string here is no more than 20 characters, and the extra long part will be truncated. After modification, click Commit changes to submit the change.
Log into Ansible AWX to view the information of playbook(Duration: 5 mins)
Enter the following address in the browser to access Ansible AWX: http://zansible.lab.csc and the account number is test00x/password. Click Login to access the home page of AWX. Any modification to your new branch "CTBR0x" will automatically trigger the execution of template playbook_CTBR0x in Ansible AWX. You can click on Tasks on the top to view the historical execution tasks of the playbook in the lower right part of the AWX homepage, which was automatically triggered after you just submitted the modification for TESTA.cbl. Click playbook_CTBR0x on the top to view the Log information of the specific execution of playbook.
After browsing the Log information on the right, you will know that the main functions of the playbook are as follows:
ssh to Host System
Create a temporary directory under z/osuss for storing project code pulled from gitlab
Clone code from gitlab to replace source file directory and destination load module directory in a COMPILE task
Create z/os dataset to store TESTA program and COMPILE task
Copy the TESTA program and COMPILE task under z/osuss into the z/os dataset already built in the previous step
Submit the COMPILE task to compile and generate load module
Delete the temporary directory under z/osuss
Call zowe cics plugin on localhost to deploy a new version of the TESTA program to the corresponding CICS region
--------The following are for reference-------- Attached below is an ansible script with playbook_CTBR0x.yml as an example, and you will better understand the entire automated deployment process with the help of the script and the execution Log:
Test the result of code modification(Duration: 1 min)
You can review the return information of the host service by calling the host service again with the following command: ./check.sh You will see the following return information: {"TESTCOMM":{"DATAFLD":"您更改的消息信息"}} For instance: {"TESTCOMM":{"DATAFLD":"HELLO FROM CSC"}} Congratulations! You have completed this experiment! If you want to modify the code again, you can repeat steps (3) to (5).