-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -24,19 +24,26 @@ jobs: | |
run: | | ||
openssl req -x509 -newkey rsa:4096 -nodes -out app/cert.pem -keyout app/key.pem -days 1 -subj "/C=PL/ST=State/L=/O=/OU=/CN=localhost" | ||
- name: Build and Run Docker image | ||
run: | | ||
IMAGE_NAME="zostaw/multiarch-home-page" | ||
IMAGE_TAG="latest" | ||
docker build -t $IMAGE_NAME:$IMAGE_TAG . | ||
docker compose up -d | ||
- name: Create Docker Network | ||
run: docker network create my-network | ||
|
||
- name: attach to network | ||
run: docker network connect my-network home-page-home-page-1 | ||
|
||
- name: Verify in next job | ||
run: | | ||
sleep 10 | ||
sleep 3 | ||
docker ps | ||
- name: wget localhost | ||
- name: Wget localhost | ||
run: | | ||
wget --no-check-certificate --mirror --page-requisites --convert-links \ | ||
--no-parent -P downloaded-site https://localhost:8080 | ||
|
@@ -45,6 +52,7 @@ jobs: | |
uses: joonvena/[email protected] | ||
with: | ||
browser: chrome | ||
network: my-network | ||
|
||
- name: Upload test results | ||
uses: actions/upload-artifact@v1 | ||
|
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
*** Settings *** | ||
Documentation Simple example using SeleniumLibrary. | ||
Documentation Open Page using SeleniumLibrary. | ||
Library SeleniumLibrary | ||
|
||
*** Variables *** | ||
${LOGIN URL} https://localhost:8080/ | ||
${URL} https://home-page-home-page-1:8080 | ||
${BROWSER} Chrome | ||
${Options} options=add_argument("--ignore-certificate-errors") | ||
|
||
*** Test Cases *** | ||
Valid Login | ||
Open Page | ||
Welcome Page Should Be Open | ||
[Teardown] Close Browser | ||
|
||
*** Keywords *** | ||
|
||
Welcome Page Should Be Open | ||
Open Browser ${LOGIN URL} ${BROWSER} ${Options} | ||
Open Browser ${URL} ${BROWSER} ${Options} | ||
Title Should Be Mateusz Kowalkowski |