Robot Framework Remote Resource Allocator
Resource locking library for Robot Framework.
Usage
Library import
Library RobotLockable lock_folder=. resource_list_file=example/resource.json (hostname=hostname)
Available Keywords
| keyword | arguments | note |
|---|---|---|
lock |
<requirements> (<timeout_s>) |
Allocate resource using giving requirements |
unlock |
<resource> |
Release resource |
See more details using Remote library CLI to generate documentation:
python3 RobotLockable/Remote.py --doc
Remote server
Library provide command line util robot_lockable that provide robot remote
server for lockable functionality.
This is useful when resources located remotely
for test case.
robot_lockable --help
Usage: robot_lockable [OPTIONS]
main function for remote plugin
Options:
--port INTEGER RemoteLockable server Port
--host TEXT Interface to listen. Use "0.0.0.0" to get access
from external machines
--hostname TEXT Hostname
--resources_list_file TEXT Resources list file
--lock_folder TEXT Lock folder
--doc TEXT generate documentation. E.g. doc.html or list
--help Show this message and exit.
Run Remote Server In Docker Container
Docker container is run using command below. Replace path to resource.json and hostname with project specific values:
docker run \
-p 8270:8270 \
-v <local path to the resource.json folder>:/<path to resource.json folder> \
--hostname $(hostname) \
jussiva/robot-lockable:latest \
--resources_list_file <path to resource.json folder>
Full example
To run example resource allocator located in this repository, docker run command is:
docker run \
-p 8270:8270 \
-v $PWD/example:/example/ \
--hostname hostname \
--rm \
jussiva/robot-lockable:latest \
--resources_list_file /example/resource.json
Metadata
Release files for robot-lockable 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| robot-lockable-0.3.3.tar.gz | 12.4 kB | Without provenance | Details for robot-lockable-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| robot_lockable-0.3.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for robot_lockable-0.3.3-py2.py3-none-any.whl |
Total release size: 17.7 kB
Release files / robot-lockable-0.3.3.tar.gz
| Download URL | robot-lockable-0.3.3.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
407604d9ad6c1e3406adac19464bfffe96638a43a28b0d0e3f942cfa769085c7
|
|
BLAKE2b-256 checksum How to use checksums |
4b3074d98e3bedba877ecd94fc52572eae6a71476aedb417fa2c0f81837ee5c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.7.11
|
Release files / robot_lockable-0.3.3-py2.py3-none-any.whl
| Download URL | robot_lockable-0.3.3-py2.py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
38d213376669a37db99c7b1d87559ee07e2d88cf21a1e6dbee735052336e1be4
|
|
BLAKE2b-256 checksum How to use checksums |
cd0a1758fa93c39872a91a70735d286bd6732f3adb2d080b90db5afa9265c936
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.7.11
|
Security for robot-lockable 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.