GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - thin-edge/robotframework-aws: AWS Robotframework library for testing thin-edge.io with AWS

BranchesTags
Open more actions menu

Latest commit

 

History

69 Commits
69 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
AWS
AWS
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.pylintrc
.pylintrc
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
justfile
justfile
 
 
pyproject.toml
pyproject.toml
 
 
setup.py
setup.py
 
 

Repository files navigation

robotframework-aws

Robot Framework Library for AWS IoT in the context of thin-edge.io

Using it

  1. Install via pip

    pip install git+https://github.com/thin-edge/robotframework-aws.git@main

    Or add it to your requirements.txt file

    robotframework-aws @ git+https://github.com/thin-edge/robotframework-aws.git@main

    Then install it via

    pip install -r requirements.txt

    Alternatively you can install a specific version using:

    robotframework-aws @ git+https://github.com/thin-edge/[email protected]
  2. Create a .env file with the following environment variables

    AWS_ACCESS_KEY_ID=ABCDEFGHI
    AWS_SECRET_ACCESS_KEY=<secret>
    AWS_REGION=us-east-1
  3. Create a Robot test tests/Example.robot

    *** Settings ***
    Library    AWS
    Library    DeviceLibrary
    
    
    *** Test Cases ***
    Example
        ${device_name}=     DeviceLibrary.Setup
        ${aws}=     AWS.Create Thing With Self-Signed Certificate    name=${device_name}
        DeviceLibrary.Execute Command    printf -- '${aws.private_key}' > $(tedge config get device.key_path)
        DeviceLibrary.Execute Command    printf -- '${aws.public_key}' > $(tedge config get device.cert_path)
        DeviceLibrary.Execute Command    sudo tedge config set aws.url ${aws.url}
        ${stdout}=    DeviceLibrary.Execute Command    sudo tedge connect aws    retries=0

    Note

    The above example uses the robotframework-devicelibrary

  4. Run the test

    robot tests/Example.robot

Library docs

You can generate the docs yourself using:

libdoc AWS/AWS.py show > AWS/AWS.rst

Or the more interactive html documentation using:

libdoc AWS/AWS.py AWS/AWS.html

Development

Before submitting a PR, make sure you run the formatting and linting against your code to ensure you don't have an formatting or linting errors.

You can run the formatting and linting by first installing the development dependencies, using the following just tasks:

just venv
just install_dev

After the dependencies have been installed, run the linting/formatting task and check the output.

just lint

The pylint output should rate your code as 10.00/10. Below is an example of the console output:

Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

About

AWS Robotframework library for testing thin-edge.io with AWS

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

3 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.