-
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #473 from ppodgorsek/issue-376
Issue #376 - Cannot install easily custom libraries
- Loading branch information
Showing
6 changed files
with
176 additions
and
56 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
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 |
---|---|---|
|
@@ -3,6 +3,9 @@ FROM fedora:39 | |
MAINTAINER Paul Podgorsek <[email protected]> | ||
LABEL description Robot Framework in Docker. | ||
|
||
# Set the Python dependencies' directory environment variable | ||
ENV ROBOT_DEPENDENCY_DIR /opt/robotframework/dependencies | ||
|
||
# Set the reports directory environment variable | ||
ENV ROBOT_REPORTS_DIR /opt/robotframework/reports | ||
|
||
|
@@ -155,6 +158,10 @@ RUN chmod ugo+w /var/log \ | |
# Update system path | ||
ENV PATH=/opt/robotframework/bin:/opt/robotframework/drivers:$PATH | ||
|
||
# Ensure the directory for Python dependencies exists | ||
RUN mkdir -p ${ROBOT_DEPENDENCY_DIR} \ | ||
&& chown ${ROBOT_UID}:${ROBOT_GID} ${ROBOT_DEPENDENCY_DIR} | ||
|
||
# Set up a volume for the generated reports | ||
VOLUME ${ROBOT_REPORTS_DIR} | ||
|
||
|
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
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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This test scenario was taken from https://github.com/FormulatedAutomation/robotframework-otp | ||
|
||
*** Settings *** | ||
Library OTP | ||
Library DateTime | ||
|
||
*** Variables *** | ||
${SECRET} base32secret | ||
|
||
*** Test Cases *** | ||
Get OTP from secret | ||
${otp}= Get OTP ${SECRET} | ||
Log To Console ${SECRET} | ||
Should Match Regexp ${otp} \\d{6} | ||
|
||
Get OTP from secret with time | ||
${timestamp}= Convert Date ${1402481262} epoch | ||
${otp}= Get OTP ${SECRET} ${timestamp} | ||
Should Match Regexp ${otp} \\d{6} | ||
Should Be Equal As Strings ${otp} 055118 |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pyotp==2.9.0 | ||
robotframework-otp==1.1.0 |