Hot

Latest version: v0.5.9

Safety actively analyzes 681881 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

0.5.7

The [template-skeleton](https://github.com/heat-tools/template-skeleton) has been moved to a centralized location. This release updates the default skeleton location to reflect this change.

0.5.6

- add additional default logs for cloud-init in `get_artifacts()` (`/var/log/cloud-init.log` & `/var/log/cloud-init-output.log`)
- hide aborted log artifact transfers in `get_artifacts()`

0.5.5

Adds the `--ci-parallel` switch which supports the use of [CircleCI](https://circleci.com) environment variable-based parallelization.

0.5.4

The utility functions now provide defaults for the `get_artifacts()` function. They include the default locations for any heat logs, and also discovery of all chef logs.

0.5.3

0.5.2

This release adds three new convenience functions for use in the Fabric testing scripts:
- `get_artifacts()` - Receives a list of strings of log files to pull from remote nodes.
- `http_check()` - Receives a URL and string and runs a HTTP check from the remote node.
- `local_http_check()` - Same as `http_check()`, but runs from the host running fabric.

Some example usage:

**get_artifacts()**


task
def artifacts():
env.platform_family = detect.detect()

Logs to pull
logs = ['/root/cfn-userdata.log',
'/root/heat-script.log']

get_artifacts(logs)


**http_check() and local_http_check()**


task
def check():
env.platform_family = detect.detect()

site = "http://localhost/"
string = "Apache2 Ubuntu Default Page"

assert http_check(site, string), "Apache is not responding."
assert local_http_check(env.host, string), "Apache is not responding remotely."


**Note:** See the usage of the fabric variable `env.host` which supplies the host string for the function.

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.