Last active
August 18, 2021 02:14
-
-
Save mjmenger/7cf0402505b94075a10bed18bf64dc40 to your computer and use it in GitHub Desktop.
Inspec samples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # copyright: 2018, The Authors | |
| title "3-nic example tests" | |
| require_controls 'inspec-bigip' do | |
| control 'bigip-connectivity' | |
| #control 'bigip-licensed' | |
| #control 'bigip-declarative-onboarding' | |
| #control 'bigip-declarative-onboarding-version' | |
| #control 'bigip-application-services' | |
| #control 'bigip-application-services-version' | |
| #control 'bigip-telemetry-streaming' | |
| #control 'bigip-telemetry-streaming-version' | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: is-bigip-there | |
| title: InSpec Profile | |
| maintainer: Mark Menger, Cody Green | |
| copyright: F5 Networks, 2020 | |
| copyright_email: m.menger@f5.com, c.green@f5.com | |
| license: Apache-2.0 | |
| summary: BIG-IP Automation Toolchain testing profile | |
| version: 0.1.0 | |
| supports: | |
| platform: os | |
| depends: | |
| - name: inspec-bigip | |
| git: https://github.com/f5devcentral/big-ip-atc-ready | |
| tag: 1.0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # extract the BIG-IP addresses from the Terraform output | |
| export BIGIP_IPS=`terraform output --json | jq -cr '.bigip_mgmt_ips.value[]'` | |
| export BIGIP_USER=admin | |
| # extract the BIG-IP password from the Terraform state | |
| export BIGIP_PASSWORD=`terraform show -json | jq .values.root_module.resources[] | jq -r 'select(.address | contains("random_password")).values.result'` | |
| export DO_VERSION=1.11.1 | |
| export AS3_VERSION=3.13.2 | |
| export TS_VERSION=1.10.0 | |
| # call the Automation Toolchain test profile | |
| for ip in $BIGIP_IPS; do | |
| inspec exec bigip-atc --reporter cli --show-progress --input bigip_address=$ip bigip_port=443 user=$BIGIP_USER password=$BIGIP_PASSWORD do_version=$DO_VERSION as3_version=$AS3_VERSION ts_version=$TS_VERSION | |
| done | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # copyright: 2018, The Authors | |
| title "3-nic example tests" | |
| require_controls 'inspec-bigip' do | |
| control 'bigip-connectivity' | |
| control 'bigip-licensed' | |
| control 'bigip-declarative-onboarding' | |
| control 'bigip-declarative-onboarding-version' | |
| control 'bigip-application-services' | |
| # control 'bigip-application-services-version' | |
| control 'bigip-telemetry-streaming' | |
| # control 'bigip-telemetry-streaming-version' | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: bigip-atc | |
| title: InSpec Profile | |
| maintainer: Mark Menger, Cody Green | |
| copyright: F5 Networks, 2020 | |
| copyright_email: m.menger@f5.com, c.green@f5.com | |
| license: Apache-2.0 | |
| summary: BIG-IP Automation Toolchain testing profile | |
| version: 0.1.0 | |
| supports: | |
| platform: os | |
| depends: | |
| - name: inspec-bigip | |
| git: https://github.com/f5devcentral/big-ip-atc-ready | |
| tag: 1.0.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment