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
| # there's no particular reason i used nova creds for auth_token, they just exist already | |
| # auth_section simply points one section to the other rather than repeat it | |
| [keystone_authtoken] | |
| auth_uri = http://localhost/identity | |
| auth_section = service_auth | |
| [service_auth] | |
| auth_type = password | |
| auth_url = http://localhost/identity |
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
| contrasjc-bastion ansible_ssh_host=169.45.80.29 | |
| [bastion] | |
| contrasjc-bastion |
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
| FROM ubuntu:latest | |
| MAINTAINER Jamie Lennox <[email protected]> | |
| RUN apt-get update && \ | |
| apt-get install -y gcc git python2.7 python2.7-dev wget && \ | |
| apt-get clean && \ | |
| rm -rf /var/lib/apt/lists/* && \ | |
| wget -O- https://bootstrap.pypa.io/get-pip.py | python2.7 | |
| RUN groupadd -r zuul && \ |
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
| body = """ | |
| { | |
| "action": "opened", | |
| "number": 13, | |
| "pull_request": { | |
| "url": "https://api.github.com/repos/BonnyCI/sandbox/pulls/13", | |
| "id": 97212551, | |
| "html_url": "https://github.com/BonnyCI/sandbox/pull/13", | |
| "diff_url": "https://github.com/BonnyCI/sandbox/pull/13.diff", |
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
| [mynewauth] | |
| auth_type=password | |
| auth_url=https://keystone.test.com | |
| username=user | |
| password=pass | |
| project_name=proj | |
| default_domain_name=domain |
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
| import thing | |
| import pytest | |
| import requests_mock as rm_module | |
| @pytest.fixture | |
| def requests_mock(request): | |
| m = rm_module.Mocker() | |
| m.start() |
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
| { | |
| "routing_key": "XXXXXXXXXXX", | |
| "event_action": "trigger", | |
| "payload": { | |
| "summary": "Search '$SearchName' fired an alert on 'Test Service' in SumoLogic.", | |
| "source": "sumologic", | |
| "severity": "info", | |
| "custom_details": { | |
| "name": "Sumo: $SearchName", | |
| "description": "$SearchDescription", |
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
| import requests | |
| import requests_mock | |
| def match_limited(request): | |
| return '"Limit":10' in request.text | |
| def match_limitless(request): | |
| return '"Limit":10' not in request.text | |
| limited_response = "limited" |
OlderNewer