GithubHelp home page GithubHelp logo

screwtsw / podman-desktop-e2e Goto Github PK

View Code? Open in Web Editor NEW

This project forked from containers/podman-desktop-e2e

0.0 0.0 0.0 3.18 MB

Podman desktop e2e tests

License: Apache License 2.0

Shell 6.15% Go 69.74% PowerShell 7.79% Makefile 13.54% Dockerfile 2.78%

podman-desktop-e2e's Introduction

podman-desktop-e2e

This project define a set of e2e tests around podman desktop, this is a complementary set of e2e tests for those user stories which requires interaction beyond the podman desktop app itself with some third party apps (i.e installers from extensions).

Overview

This project is intended for running without any extra dependecy, tests are self contained into a binary wich then will be run on a target host where podman dektop should be accessible.

To accomplish this dependent-less runtime the project uses goax which uses OS native accessibility APIs to interact with UX elements (not only the ones from podman desktop but any other UX element rendered by the OS).

Build

Currently the main two target OSs for the projects are Windows and MacOS: windows binary can be built on any platform, for building MacOS binary we need to build the binary on a MacOS machine (to ensure compatibilty it is recommended to build it on MacOS 12 Monterrey).

Following commands will build the binary (windows arm64 not supported):

# Build for mac amd64 (This need to be run on a MacOS)
ARCH=amd64 make build-darwin
# Binary will be located at
out/darwin-amd64/pd-e2e

# Build for mac arm64 (This need to be run on a MacOS)
ARCH=arm64 make build-darwin
# Binary will be located at
out/darwin-arm64/pd-e2e

# Build for windows amd64 
ARCH=amd64 make build-windows
# Binary will be located at
out/windows-amd64/pd-e2e.exe

Run

The binary can be executed localy on the target hosts, it requires some parameters (on Windows):

  • pdPath: Set the path where the podman desktop executable is located.
  • pdUrl: Set the url where podman desktop executable will be downloaded.
  • user-password: Set the password for the currrent user (this is needed for running installers which require elevated permissions).
  • junit-filename: This is an optional parameter in case we want to set the name of the junit resulting file (Default: junit_report.xml).

Following command will run the tests on a windows host:

pd-e2e.exe --pdPath /Users/rhqp/pd.exe --user-password MyPassword --junit-filename pd-e2e.xml 

Also the project is intended to be executed from a CI/CD system, here is a full explanation on how to use it.

Extend

The project is intended as an isolated project where e2e scenario can be defined and they would be implemented by interacting within the podman desktop application through goax.

Here are some guidelines on how current suite of tests are defined and how this can be extended to cover more functionality from podman desktop.

podman-desktop-e2e's People

Contributors

adrianriobo avatar benoitf avatar odockal avatar renovate[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.