Skip to content

Dump synthetics private location config data on create #113

Dump synthetics private location config data on create

Dump synthetics private location config data on create #113

name: Run Integrations Tests
on:
pull_request:
branches:
- main
types:
- labeled
- unlabeled
- opened
- synchronize
- reopened
env:
DD_DESTINATION_API_KEY: ${{ secrets.DD_DESTINATION_API_KEY }}
DD_DESTINATION_APP_KEY: ${{ secrets.DD_DESTINATION_APP_KEY }}
DD_DESTINATION_API_URL: ${{ secrets.DD_DESTINATION_API_URL }}
DD_SOURCE_API_KEY: ${{ secrets.DD_SOURCE_API_KEY }}
DD_SOURCE_APP_KEY: ${{ secrets.DD_SOURCE_APP_KEY }}
DD_SOURCE_API_URL: ${{ secrets.DD_SOURCE_API_URL }}
DD_HTTP_CLIENT_RETRY_TIMEOUT: 300
jobs:
test-integrations:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'ci/integration')
services:
datadog-agent:
image: datadog/agent:latest
ports:
- 8126:8126
env:
DD_API_KEY: ${{ secrets.DD_API_KEY }}
DD_HOSTNAME: "none"
DD_INSIDE_CI: "true"
steps:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Checkout code
uses: actions/checkout@v2
- name: Install tox
run: pip install tox
- name: Run integration tests
run: tox -e integration
env:
DD_AGENT_HOST: localhost
DD_ENV: ci
DD_SERVICE: datadog-sync-cli
DD_TAGS: "team:integrations-tools-and-libraries"
DD_TRACE_ANALYTICS_ENABLED: "true"
RECORD: "none"
PYTEST_ADDOPTS: "--ddtrace"
- name: Cleanup
run: |
python -m pip install requests
python ./scripts/cleanup_org.py