Skip to main content

Continuous testing & Linting Documentation Status Build Status Py Versions License

img-proof

overview

img-proof (IPA) provides a command line utility to test images in the Public Cloud (AWS, Azure, GCE, etc.).

With img-proof you can now test custom images in a cloud framework agnostic way with one tool and one API. In the first release, img-proof supports the openSUSE and SLES distributions. It also supports the three largest cloud frameworks (AWS, Azure and GCE). However, it is intended to be distribution agnostic and framework transparent so both are easily extensible.

For each distribution there are specific synchronization points that must be provided. These currently include soft reboot and system update. The synch points not only test functionality but also act as dividers to separate distinct sections of a test suite. For example you can run a test to ensure the proper repos exist before and after a system update. The system update synch point will guarantee the order of tests. Speaking of tests, if you're already familiar with Pytest conventions there's no need to learn a whole new unit testing framework. img-proof is written in Python and leverages the Pytest framework through Testinfra.

Installation

To install the package use the following commands as root:

$ zypper ar http://download.opensuse.org/repositories/Cloud:/Tools:/CI/<distribution>
$ zypper refresh
$ zypper in python-img-proof

Requirements

  • boto3
  • apache-libcloud
  • azure-common
  • azure-mgmt-compute
  • azure-mgmt-network
  • azure-mgmt-resource
  • Click
  • paramiko
  • pytest
  • PyYaml
  • testinfra
  • oci

Docs

Tests

img-proof uses the Testinfra package for writing unit tests. Testinfra leverages Pytest and provides modules such as Package, Process and Service to test the state of images. See the Testinfra Docs for more information on writing infrastructure tests.

img-proof currently passes the Pytest option -x (stop on first failure) through as --early-exit. If there's an interest or need for any other options/args please submit an issue to Github.

CLI Overview

The CLI provides multiple subcommands to initiate image testing:

  • img-proof test

    Test image in the given framework using the supplied test files.

  • img-proof results

    Invokes the default show subcommand img-proof results show 1.

  • img-proof results clear

    Clear the results from the history file.

  • img-proof results delete

    Delete the specified history item from the history log.

  • img-proof results list`

    Display list of results history.

  • img-proof results show

    Display the results or log file for a history item.

  • img-proof list

    Print a list of test files or test cases.

Issues/Enhancements

Please submit issues and requests to Github.

Contributing

Contributions to ipa are welcome and encouraged. See CONTRIBUTING for info on getting started.

License

Copyright (c) 2018 SUSE LLC.

Distributed under the terms of GPL-3.0+ license, see LICENSE for details.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

img_proof-9.19.0.tar.gz (111.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

img_proof-9.19.0-py3-none-any.whl (68.4 kB view details)

Uploaded Python 3

File details

Details for the file img_proof-9.19.0.tar.gz.

File metadata

  • Download URL: img_proof-9.19.0.tar.gz
  • Upload date:
  • Size: 111.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for img_proof-9.19.0.tar.gz
Algorithm Hash digest
SHA256 b86c0acb030164e848a36847bf847d0606674b430e7c5bac6c4b3bcfeca72596
MD5 241c1e3f73e5ba4847a0f46fc3d0e80b
BLAKE2b-256 d007d1fea22e35fb978a3886b72de2f0c8307ae87ac869a366b39172a7c7e281

See more details on using hashes here.

File details

Details for the file img_proof-9.19.0-py3-none-any.whl.

File metadata

  • Download URL: img_proof-9.19.0-py3-none-any.whl
  • Upload date:
  • Size: 68.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for img_proof-9.19.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f47275868b8116fba7ca3a223871c8b6d87bd602e255c9aec7d01fa794302d01
MD5 665d8f23ea1138d819386bfcc413486c
BLAKE2b-256 0c2c3d2c6323fb20105a3705eacac2f3659cbbaf2199fa179aea576bdc861849

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

9.19.0 This release

2 files

9.18.0

2 files

9.17.0

2 files

9.16.0

2 files

9.15.0

2 files

9.14.0

2 files

9.13.2

2 files

9.13.1

2 files

9.13.0

2 files

9.12.0

2 files

9.11.0

2 files

9.10.0

2 files

9.9.0

2 files

9.8.0

2 files

9.7.0

2 files

9.6.0

2 files

9.5.0

2 files

9.4.0

2 files

9.3.0

2 files

9.2.0

2 files

9.1.0

2 files

9.0.0

2 files

8.4.0

2 files

8.3.0

2 files

8.2.0

2 files

8.1.0

2 files

8.0.1

2 files

8.0.0

2 files

7.36.1

2 files

7.36.0

2 files

7.35.0

2 files

7.34.0

2 files

7.33.0

2 files

7.32.0

2 files

7.31.0

2 files

7.30.0

2 files

7.29.8

2 files

7.29.7

2 files

7.29.6

2 files

7.29.5

2 files

7.29.4

2 files

7.29.3

2 files

7.29.2

2 files

7.29.1

2 files

7.29.0

2 files

7.28.0

2 files

7.27.0

2 files

7.26.0

2 files

7.25.0

2 files

7.24.0

2 files

7.23.0

2 files

7.22.0

2 files

7.21.0

2 files

7.20.0

2 files

7.19.0

2 files

7.18.0

2 files

7.17.0

2 files

7.16.2

2 files

7.16.1

2 files

7.16.0

2 files

7.15.0

2 files

7.14.0

2 files

7.13.1

2 files

7.13.0

2 files

7.12.0

2 files

7.11.0

2 files

7.10.0

2 files

7.9.1

2 files

7.9.0

2 files

7.8.2

2 files

7.8.1

2 files

7.8.0

2 files

7.7.0

2 files

7.6.0

2 files

7.5.2

2 files

7.5.1

2 files

7.5.0

2 files

7.4.0

2 files

7.3.1

2 files

7.3.0

2 files

7.2.0

2 files

7.1.0

2 files

7.0.0

2 files

6.4.0

2 files

6.3.1

1 file

6.3.0

1 file

6.2.0

1 file

6.1.0

1 file

6.0.0

1 file

5.3.0

1 file

5.2.0

1 file

5.1.0

1 file

5.0.0

1 file

4.8.1

1 file

4.8.0

1 file

4.7.0

1 file

4.6.0

1 file

4.5.1

1 file

4.5.0

1 file

4.4.0

1 file

4.3.1

1 file

4.3.0

1 file

4.2.1

1 file

4.2.0

1 file

4.1.1

1 file

4.1.0

1 file

4.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page