Sha256: da1979313976683510b493e86482d566c95d7c3f1eed96a9da04cccd3eb41f10

Contents?: true

Size: 1.8 KB

Versions: 37

Compression:

Stored size: 1.8 KB

Contents

# Development

This repository contains code that is autogenerated via the [`generator`](https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator) package.

As such, this repository should only contain development for adding or fixing tests, for improving development tooling and documentation.

## Testing

### Prerequisite

Export the following environment variables:
* `DD_TEST_CLIENT_API_KEY`: The Datadog API key to run integration tests against
* `DD_TEST_CLIENT_APP_KEY`: The Datadog Application key to run integration tests against

**IMPORTANT**: Do not use production keys.

<!---
Tests can be run againts different site (EU, staging, local):
* `DD_TEST_SITE`: The base URL for test site (e.g. `datadoghq.eu`)

**NOTE**: All recorded URLs will be replaced by `datadoghq.com`. Please make sure that you do NOT leak any
any sensitive information.
--->

### Commands

This project contains BDD tests.
__Never__ run the test suite against an organization with production data.

Tests can be executed via [`cucumber`](https://cucumber.io/docs/guides/).
You can optionally add `features/v<NUMBER>/<FILENAME>.feature:<LINE_NUMBER>` to filter individual tests.

By default integration tests use recorded API responses stored in cassettes. To record new API responses run the tests with `RECORD=true`. To run integration tests against API without recording cassettes, run the tests with `RECORD=none`.

**IMPORTANT**:
When creating a PR that adds or updates a test, __never__ commit
generated code, only commit test files being updated and any updated cassettes.

### CI

In rare ocassions, the test suite may fail due to a corrupted cache in `ruby/setup-ruby` action.
Please update `CACHE_VERSION` secret in https://github.com/DataDog/datadog-api-client-ruby/settings/secrets/actions/CACHE_VERSION with a new unique value.

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
datadog_api_client-2.30.0 DEVELOPMENT.md
datadog_api_client-2.29.1 DEVELOPMENT.md
datadog_api_client-2.28.1 DEVELOPMENT.md
datadog_api_client-2.27.1 DEVELOPMENT.md
datadog_api_client-2.26.1 DEVELOPMENT.md
datadog_api_client-2.26.0 DEVELOPMENT.md
datadog_api_client-2.25.0 DEVELOPMENT.md
datadog_api_client-2.24.0 DEVELOPMENT.md
datadog_api_client-2.22.0 DEVELOPMENT.md
datadog_api_client-2.21.0 DEVELOPMENT.md
datadog_api_client-2.20.0 DEVELOPMENT.md
datadog_api_client-2.19.0 DEVELOPMENT.md
datadog_api_client-2.18.0 DEVELOPMENT.md
datadog_api_client-2.17.0 DEVELOPMENT.md
datadog_api_client-2.16.0 DEVELOPMENT.md
datadog_api_client-2.15.0 DEVELOPMENT.md
datadog_api_client-2.14.0 DEVELOPMENT.md
datadog_api_client-2.13.0 DEVELOPMENT.md
datadog_api_client-2.12.0 DEVELOPMENT.md
datadog_api_client-2.11.0 DEVELOPMENT.md