terraform-res 2024-01-15
Add JSON merge tests and simplify locals
12 files · 164+ · 144-

JSON merge testing

6 files changed
  • merge.tf Terraform test for JSON record merging logic
  • domain_records.json Test input for domain records
  • override_records.json Test input for override records
  • merged_records.json Expected merge output
  • goal.txt Description of merge test goals
  • min_json.sh Helper script for JSON minification
  • Created merge-json test suite verifying the domain record override merging logic that combines base records with overridable_records qualify internal
    2 files
    • merge.tf
    • domain_records.json

Locals simplification

6 files changed
  • locals.tf Simplified by extracting repeated patterns and reducing complexity
  • main.tf Minor module call adjustment
  • main.tf Added website module functionality
  • neurotic-meme.json Updated site configuration
  • neurotic-meme.json Updated domain records
  • json-single-domain Updated example
  • Simplified locals.tf by reducing repeated patterns, removing over 100 lines while maintaining the same domain processing pipeline streamline behavioral
    1 file
    • locals.tf