Skip to content

Commit

Permalink
verify docker ps
Browse files Browse the repository at this point in the history
  • Loading branch information
zostaw committed Oct 24, 2023
1 parent 607e709 commit be2c312
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -45,6 +52,7 @@ jobs:
uses: joonvena/[email protected]
with:
browser: chrome
network: my-network

- name: Upload test results
uses: actions/upload-artifact@v1
Expand Down
8 changes: 4 additions & 4 deletions robot_tests/home-https.robot
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

0 comments on commit be2c312

Please sign in to comment.