Skip to content

Conversation

samcrudge
Copy link

This pull request introduces support for the v3 schema in Datadog service definitions, including validation, testing, and example configurations. The changes ensure compatibility with the new schema version and add comprehensive testing to validate its functionality.

Added support for v3 schema in service definitions:

Integration tests for v3 schema:

Example configuration for v3 schema:

This pull request is to deal with #2417

@samcrudge samcrudge requested review from a team as code owners July 29, 2025 14:43
- Add comprehensive validation tests for schema versions v2, v2.1, v2.2, v3, v3.1
- Verify validation correctly rejects v1 schemas and missing required fields
- Ensure backward compatibility with existing schema versions
- Test error handling for invalid YAML and missing schema-version
- Add tests to verify resource schema configuration and validation
- Test StateFunc YAML normalization for v3 schemas
- Ensure ValidateFunc works correctly with the full resource context
- Verify all resource contexts (Create, Read, Update, Delete) are properly configured
- Add TestAccDatadogServiceDefinition_BasicV3 acceptance test
- Add testAccCheckDatadogServiceDefinitionV3 test configuration
- Include v3-specific fields like tier, lifecycle, application, description
- Ensure v3 schema validation and API integration works correctly

Resolves DataDog#2417
- Add comprehensive v3 schema example in resource.tf
- Include v3-specific fields like tier, lifecycle, application, description
- Demonstrate proper v3 syntax and structure for users
- Maintain consistency with existing v2.x examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant