Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/terraform-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ jobs:
with:
just-version: 1.51.0

- name: Create dummy lambda payload for tests
run: |
mkdir -p tests/unit/modules/aws/sensor
echo "mock content" > /tmp/mock.txt
zip -q tests/unit/modules/aws/sensor/lambda_payload.zip /tmp/mock.txt

- name: Run unit tests
run: just test-unit
env:
Expand Down
10 changes: 8 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,16 @@ just lint
### Test

```bash
cd tests/unit
go test -v ./...
# Run everything (Terraform unit tests, AWS Lambda Python tests, release tests)
just test

# Or run a single suite
just test-unit
```

Terraform tests live in `tests/` directories alongside each module and example
(e.g. `modules/aws/sensor/tests/`); `just test-unit` discovers and runs them.

## Module Standards

- Use `lowercase-with-hyphens` for module names
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ run "verify_basic_config_generation" {
command = plan

module {
source = "./modules/_shared/config/sensor"
source = "./."
}

variables {
Expand All @@ -34,7 +34,7 @@ run "verify_fleet_config" {
command = plan

module {
source = "./modules/_shared/config/sensor"
source = "./."
}

variables {
Expand Down Expand Up @@ -64,7 +64,7 @@ run "verify_gzip_option" {
command = plan

module {
source = "./modules/_shared/config/sensor"
source = "./."
}

variables {
Expand Down Expand Up @@ -92,7 +92,7 @@ run "verify_output_exists" {
command = plan

module {
source = "./modules/_shared/config/sensor"
source = "./."
}

variables {
Expand Down
3 changes: 0 additions & 3 deletions tests/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions tests/e2e/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions tests/e2e/aws-deployment-lifecycle/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions tests/e2e/cross-cloud-fleet/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions tests/fixtures/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions tests/integration/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions tests/integration/aws-sensor-with-enrichment/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions tests/integration/azure-full-stack/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions tests/integration/gcp-full-stack/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions tests/unit/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions tests/unit/aws-sensor-config-generation/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions tests/unit/iam-policy-validation/README.md

This file was deleted.

243 changes: 0 additions & 243 deletions tests/unit/modules/aws/sensor/sensor.tftest.hcl

This file was deleted.

3 changes: 0 additions & 3 deletions tests/unit/variable-validation/README.md

This file was deleted.

Loading