Skip to content

Conversation

RoseSecurity
Copy link
Contributor

@RoseSecurity RoseSecurity commented Jun 20, 2025

What

  • Add basic component test
  • Add disabled component test
  • Test component drifting
  • Add any additional use case tests

Why

  • Test basic component features
  • Verify that the component does not create any resources when input enabled: false set
  • Verify that the component does not drift on a second run with the same inputs
  • Add test for any additional than basic use cases for the component

References

Summary by CodeRabbit

  • New Features

    • Introduced comprehensive automated component tests for ElastiCache Redis, including enabled and disabled scenarios.
    • Added multiple YAML fixture files for VPC, DNS, account mapping, and Redis test scenarios to support robust testing.
    • Provided an example Atmos CLI configuration and vendor manifest for Terraform components.
  • Documentation

    • Expanded the test directory README with detailed setup instructions and dependency requirements.
  • Chores

    • Added Go module and dependency management files for the test suite.
    • Introduced a .gitignore to exclude generated and cache files from version control.
  • Bug Fixes

    • Set a default value for ingress_cidr_blocks to prevent undefined behavior.
  • Refactor

    • Removed obsolete test script (run.sh) to streamline the test directory.

Copy link
Contributor

coderabbitai bot commented Jun 20, 2025

Caution

Review failed

An error occurred during the review process. Please try again later.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch add-tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

mergify bot commented Jun 20, 2025

Important

Do not edit the README.md directly. It's auto-generated from the README.yaml

Please update the README.yaml file instead.

Could you fix it @RoseSecurity? 🙏

@mergify mergify bot added the triage Needs triage label Jun 20, 2025
Copy link

There are no real tests for this component. So we set terratest statuses to successful execution without running any tests

@RoseSecurity RoseSecurity added the wip Work in Progress: Not ready for final review or merge label Jun 20, 2025
@mergify mergify bot removed the wip Work in Progress: Not ready for final review or merge label Jun 20, 2025
@RoseSecurity RoseSecurity marked this pull request as ready for review June 20, 2025 18:16
@RoseSecurity
Copy link
Contributor Author

/terratest

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments (7)
test/test_suite.yaml (1)

3-3: Avoid static randomidentifier configuration.

Using a hardcoded randomidentifier reduces test isolation and may lead to resource naming collisions across runs. Consider generating this dynamically or injecting via environment.

test/fixtures/stacks/catalog/account-map.yaml (2)

11-22: Remove or clarify commented S3 backend block.

The large commented-out remote_state_backend for Cloud Posse internal use may confuse future readers. If it’s not needed by this team, consider removing it or moving it to a separate “internal” snippet.


23-31: Document required environment variables.

The static backend notes that TEST_ACCOUNT_ID must be set but the README doesn’t mention it. Please call out this requirement in the test documentation or add an explicit env: block.

test/README.md (2)

3-9: Add instructions for required env vars.

You’ve listed Terraform, Atmos, Go, and AWS credentials. The account-map fixture also needs TEST_ACCOUNT_ID exported. Please add a note here to set that environment variable before running tests.


10-15: Link to Atmos CLI docs and version pinning.

Consider specifying a minimum supported Atmos CLI version and linking to its docs so users don’t run into unexplained compatibility issues.

test/fixtures/stacks/catalog/usecase/basic.yaml (1)

7-18: Cross-check var names and defaults.

  • family: valkey8 should match your module’s family variable (e.g., parameter group family).
  • Confirm that omitting ingress_cidr_blocks is acceptable when allow_ingress_from_this_vpc: true.
  • Consider formatting the egress_cidr_blocks list over multiple lines for readability.
test/component_test.go (1)

20-20: Remove unused constant.

The awsRegion constant is declared but never used in the test. Consider removing it to clean up the code.

-	const awsRegion = "us-east-2"
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 36568ca and d440784.

⛔ Files ignored due to path filters (1)
  • test/go.sum is excluded by !**/*.sum
📒 Files selected for processing (15)
  • src/variables.tf (1 hunks)
  • test/README.md (1 hunks)
  • test/component_test.go (1 hunks)
  • test/fixtures/atmos.yaml (1 hunks)
  • test/fixtures/stacks/catalog/account-map.yaml (1 hunks)
  • test/fixtures/stacks/catalog/dns-delegated.yaml (1 hunks)
  • test/fixtures/stacks/catalog/dns-primary.yaml (1 hunks)
  • test/fixtures/stacks/catalog/usecase/basic.yaml (1 hunks)
  • test/fixtures/stacks/catalog/usecase/disabled.yaml (1 hunks)
  • test/fixtures/stacks/catalog/vpc.yaml (1 hunks)
  • test/fixtures/stacks/orgs/default/test/_defaults.yaml (1 hunks)
  • test/fixtures/stacks/orgs/default/test/tests.yaml (1 hunks)
  • test/fixtures/vendor.yaml (1 hunks)
  • test/go.mod (1 hunks)
  • test/test_suite.yaml (1 hunks)
🧰 Additional context used
🪛 golangci-lint (1.64.8)
test/component_test.go

20-20: const awsRegion is unused

(unused)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Summary
🔇 Additional comments (15)
src/variables.tf (1)

31-31: Add default ingress_cidr_blocks is good, but verify empty list handling.

Defaulting ingress_cidr_blocks to [] prevents undefined behavior and aligns with other defaults. Please confirm the module’s security group logic handles an empty list without generating unintended rules.

test/fixtures/stacks/catalog/dns-delegated.yaml (1)

1-10: Fixture structure looks correct.

The DNS delegated stack fixture defines the required component metadata and variables for dns-delegated. All fields appear accurate and valid.

test/fixtures/stacks/catalog/account-map.yaml (2)

1-9: Verify top-level structure and metadata.

The components.terraform.account-map.metadata and vars entries look correct for a static test fixture. Ensure the terraform_workspace and var defaults align with what the tests expect for IAM role lookups.


32-46: Validate static backend coverage.

The static block uses empty maps/lists for all entries. Verify that the account-map IAM-roles module doesn’t require additional fields in this config for the Redis component tests to pass.

test/fixtures/stacks/orgs/default/test/tests.yaml (1)

1-7: Ensure all imported fixtures exist and match paths.

The import: list references orgs/default/test/_defaults, catalog/vpc, catalog/dns-primary, catalog/dns-delegated, catalog/usecase/basic, and catalog/usecase/disabled. Please confirm that each corresponding *.yaml file is present under test/fixtures/stacks/... and that the names match exactly.

test/fixtures/stacks/catalog/dns-primary.yaml (1)

1-10: Confirm variable names against module interface.

The vars block uses domain_names and record_config. Validate that the Terraform module for dns-primary accepts exactly these parameter names (pluralization, types) and that an empty list for record_config is valid.

test/fixtures/stacks/catalog/usecase/basic.yaml (2)

1-3: Top-level keys structure looks good.


4-6: Verify metadata “component: target”.

Most catalog fixtures use metadata.component to identify the module. Confirm that the test runner expects target here to pick the Redis fixture as the test target.

test/fixtures/stacks/catalog/vpc.yaml (1)

1-20: LGTM! Well-structured VPC test fixture.

The VPC configuration is appropriate for testing with cost-conscious settings like disabled NAT gateways and a reasonable CIDR block. The inline comment explaining the private subnet configuration is helpful for maintainability.

test/fixtures/vendor.yaml (1)

1-55: LGTM! Proper vendor configuration for test dependencies.

The Atmos vendor configuration correctly defines all necessary component dependencies with appropriate version pinning and file inclusion patterns. The use of CloudPosse's official repositories ensures reliable component sources.

test/component_test.go (3)

17-50: Excellent test implementation with comprehensive coverage.

The TestBasic method provides thorough testing of the ElastiCache Redis component with:

  • Proper unique naming to avoid conflicts
  • Comprehensive Redis cluster configuration using Valkey engine
  • Appropriate instance type and parameters for testing
  • Proper cleanup with deferred destruction
  • Drift testing to ensure component stability

52-56: Good coverage of the enabled flag functionality.

The TestEnabledFlag method properly tests the disabled component behavior, ensuring no resources are created when the component is disabled.


58-76: Well-structured test suite setup with proper dependency management.

The TestRunSuite function correctly:

  • Initializes the test suite
  • Adds VPC dependency without custom inputs
  • Generates unique DNS subdomain to avoid conflicts
  • Adds DNS-delegated dependency with proper zone configuration
  • Runs the complete test suite
test/fixtures/stacks/orgs/default/test/_defaults.yaml (1)

1-67: LGTM! Comprehensive test stack defaults configuration.

The configuration provides a solid foundation for testing with:

  • Appropriate local backend for test isolation
  • Flexible environment variable usage for account ID
  • Comprehensive account-map static configuration
  • Proper label ordering and naming conventions
  • Well-structured descriptor formats for consistent naming
test/fixtures/atmos.yaml (1)

1-78: Excellent Atmos configuration with comprehensive settings.

This configuration file provides a robust foundation for the test environment with:

  • Clear documentation of configuration loading hierarchy
  • Comprehensive Terraform component settings with appropriate defaults
  • Proper stack configuration with glob patterns for test organization
  • Flexible environment variable overrides throughout
  • Template support enabling advanced configuration capabilities

The configuration is well-structured and thoroughly documented, making it easy to understand and maintain.

@mergify mergify bot added the needs-test Needs testing label Jun 23, 2025
@RoseSecurity
Copy link
Contributor Author

/terratest

@RoseSecurity
Copy link
Contributor Author

@goruha Is there a good way to trigger these in the pipeline as these tests fail locally for the hosted zone lookup?

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
test/component_test.go (1)

20-20: Remove unused constant.

The awsRegion constant is defined but never used in the test.

-	const awsRegion = "us-east-2"
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d440784 and 8e308d2.

📒 Files selected for processing (3)
  • test/component_test.go (1 hunks)
  • test/fixtures/stacks/orgs/default/test/tests.yaml (1 hunks)
  • test/fixtures/vendor.yaml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • test/fixtures/vendor.yaml
  • test/fixtures/stacks/orgs/default/test/tests.yaml
🧰 Additional context used
🪛 golangci-lint (1.64.8)
test/component_test.go

20-20: const awsRegion is unused

(unused)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Summary
🔇 Additional comments (5)
test/component_test.go (5)

1-11: LGTM! Well-structured imports for component testing.

The package structure and imports are appropriate for a Terraform component test using Atmos and terratest frameworks.


13-15: LGTM! Clean test suite structure.

The ComponentSuite struct properly embeds the helper.TestSuite, following standard Go testing patterns.


17-19: LGTM! Comprehensive basic component test.

The test properly:

  • Sets up unique identifiers to avoid conflicts
  • Configures ElastiCache Redis with Valkey engine
  • Ensures cleanup with deferred destruction
  • Validates deployment and runs drift testing

The configuration covers essential parameters including engine version, instance type, and extended Redis compatibility.

Also applies to: 21-50


52-56: LGTM! Important enabled flag validation.

This test ensures that no resources are created when the component is disabled, which is crucial for cost control and resource management.


58-76: LGTM! Proper test suite setup with dependency management.

The test suite correctly:

  • Sets up required infrastructure dependencies (VPC and DNS)
  • Creates unique identifiers to avoid test conflicts
  • Uses appropriate test environment configuration
  • Follows proper test initialization patterns

The hardcoded zone name appears intentional for the controlled test environment.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
test/component_test.go (1)

20-20: Remove unused constant.

The awsRegion constant is defined but never used in the code.

-	const awsRegion = "us-east-2"
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d440784 and 8e308d2.

📒 Files selected for processing (3)
  • test/component_test.go (1 hunks)
  • test/fixtures/stacks/orgs/default/test/tests.yaml (1 hunks)
  • test/fixtures/vendor.yaml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • test/fixtures/vendor.yaml
  • test/fixtures/stacks/orgs/default/test/tests.yaml
🧰 Additional context used
🪛 golangci-lint (1.64.8)
test/component_test.go

20-20: const awsRegion is unused

(unused)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Summary
🔇 Additional comments (5)
test/component_test.go (5)

1-11: LGTM! Clean package structure and appropriate imports.

The package declaration and imports are well-organized and appropriate for the testing requirements. The external dependencies (test-helpers, terratest, testify) are standard choices for infrastructure testing.


13-15: LGTM! Proper test suite embedding pattern.

The ComponentSuite struct correctly embeds the helper.TestSuite, following the established pattern for component testing.


17-50: LGTM! Well-structured test with proper cleanup and validation.

The TestBasic method demonstrates good testing practices:

  • Uses unique identifiers to avoid conflicts
  • Properly structured configuration inputs for Valkey engine
  • Includes cleanup via defer statement
  • Validates deployment success and runs drift testing

The configuration parameters are appropriate for testing Valkey compatibility with Redis.


52-56: LGTM! Concise and focused test.

The TestEnabledFlag method correctly tests the disabled component behavior using the helper's VerifyEnabledFlag method.


58-76: LGTM! Proper test suite setup with dependencies.

The TestRunSuite function correctly:

  • Initializes the test suite
  • Adds required dependencies (vpc and dns-delegated) with appropriate configurations
  • Uses unique subdomain generation to avoid conflicts
  • Properly orchestrates the test execution

The dependency setup ensures the required infrastructure components are available for the ElastiCache Redis tests.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (3)
test/component_test.go (3)

20-20: Remove unused constant awsRegion.

The awsRegion constant is defined but never used in the test method.

-	const awsRegion = "us-east-2"

22-33: Consider making engine configuration more flexible.

The engine is hardcoded as "valkey" but the test is for an "elasticache-redis" component. While Valkey is Redis-compatible, consider parameterizing the engine choice or adding a comment explaining the intentional use of Valkey.

+	// Using Valkey engine (Redis-compatible) for testing
 	engineName := "valkey"

68-68: Consider parameterizing the hardcoded DNS zone.

The DNS zone name is hardcoded which may limit test portability across different environments.

Consider adding this as a constant or making it configurable:

+	const testDNSZone = "components.cptest.test-automation.app"
+
 	inputs := map[string]any{
 		"zone_config": []map[string]any{
 			{
 				"subdomain": subdomain,
-				"zone_name": "components.cptest.test-automation.app",
+				"zone_name": testDNSZone,
 			},
 		},
 	}
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d440784 and 8e308d2.

📒 Files selected for processing (3)
  • test/component_test.go (1 hunks)
  • test/fixtures/stacks/orgs/default/test/tests.yaml (1 hunks)
  • test/fixtures/vendor.yaml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • test/fixtures/stacks/orgs/default/test/tests.yaml
  • test/fixtures/vendor.yaml
🧰 Additional context used
🪛 golangci-lint (1.64.8)
test/component_test.go

20-20: const awsRegion is unused

(unused)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Summary
🔇 Additional comments (6)
test/component_test.go (6)

1-11: LGTM! Clean import structure.

The package declaration and imports are well-organized and appropriate for a component test file. All imported packages serve clear purposes in the testing implementation.


13-15: LGTM! Proper test suite composition.

The ComponentSuite struct correctly embeds the TestSuite from the helper package, following Go composition patterns for extending functionality.


25-43: LGTM! Well-structured test inputs.

The test inputs are properly structured with unique naming and realistic configuration parameters. The use of random.UniqueId() prevents test conflicts and the Redis cluster configuration is appropriate for testing.


45-50: LGTM! Proper test lifecycle management.

Excellent use of defer for cleanup and the drift test ensures the component remains stable across multiple applies. The assertion on options validates successful deployment.


52-56: LGTM! Concise enabled flag test.

The test properly verifies that the component respects the enabled flag, which is crucial for conditional resource creation.


58-76: LGTM! Well-organized test suite setup.

The test suite properly manages dependencies with unique inputs to prevent conflicts. The use of random subdomains and proper dependency ordering demonstrates good testing practices.

@goruha
Copy link
Contributor

goruha commented Jun 24, 2025

@goruha Is there a good way to trigger these in the pipeline as these tests fail locally for the hosted zone lookup?

yes.

@goruha
Copy link
Contributor

goruha commented Jun 24, 2025

@goruha
Copy link
Contributor

goruha commented Jun 24, 2025

/terratest

@goruha
Copy link
Contributor

goruha commented Jun 24, 2025

@RoseSecurity
Copy link
Contributor Author

Awesome, thank you for this!

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (2)
test/component_test.go (2)

20-20: Remove unused constant.

The awsRegion constant is defined but never used in the code.

-	const awsRegion = "us-east-2"

33-34: Consider parameterizing hardcoded values for flexibility.

The engine version and instance type are hardcoded, which makes the tests less flexible and potentially outdated over time.

Consider moving these to constants or configuration:

+const (
+	defaultEngineVersion = "8.0"
+	defaultInstanceType  = "cache.t4g.small"
+)

 				"engine":             engineName,
-				"engine_version":     "8.0",
-				"instance_type":      "cache.t4g.small",
+				"engine_version":     defaultEngineVersion,
+				"instance_type":      defaultInstanceType,
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2518e61 and 4f7aa9b.

📒 Files selected for processing (3)
  • test/component_test.go (1 hunks)
  • test/fixtures/stacks/catalog/usecase/basic.yaml (1 hunks)
  • test/fixtures/stacks/catalog/usecase/disabled.yaml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • test/fixtures/stacks/catalog/usecase/basic.yaml
  • test/fixtures/stacks/catalog/usecase/disabled.yaml
🧰 Additional context used
🪛 golangci-lint (1.64.8)
test/component_test.go

20-20: const awsRegion is unused

(unused)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Summary
🔇 Additional comments (1)
test/component_test.go (1)

58-76: LGTM! Well-structured test suite setup.

The test suite initialization properly sets up dependencies and generates unique inputs for the DNS configuration.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

♻️ Duplicate comments (2)
test/component_test.go (2)

29-31: Fix inconsistent Redis cluster configuration.

The current configuration has conflicting settings that may cause deployment issues:

  • num_shards: 0 suggests non-cluster mode
  • replicas_per_shard: 1 is only applicable in cluster mode
  • num_replicas: 1 is typically for non-cluster mode

This mixed configuration could lead to unexpected behavior or deployment failures.


46-46: Handle deployment errors properly.

The error return value from DeployAtmosComponent is ignored, which could mask deployment failures and lead to unreliable tests.

🧹 Nitpick comments (2)
test/component_test.go (2)

20-20: Remove unused constant.

The awsRegion constant is declared but never used in the test logic.

-	const awsRegion = "us-east-2"

33-33: Consider updating Redis engine version for consistency.

The test uses Redis engine version "7.0", but the AI summary mentions "8.0" in the context. Consider verifying if this should be updated to use a more recent version for better test coverage.

-				"engine_version":     "7.0",
+				"engine_version":     "7.1",
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fae3a03 and b6a59eb.

📒 Files selected for processing (1)
  • test/component_test.go (1 hunks)
🧰 Additional context used
🪛 golangci-lint (1.64.8)
test/component_test.go

20-20: const awsRegion is unused

(unused)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Summary
🔇 Additional comments (4)
test/component_test.go (4)

1-11: LGTM!

Package declaration and imports are appropriate for a component test file. The imported packages provide the necessary functionality for testing Terraform components with Atmos.


13-15: LGTM!

Clean and simple test suite structure following the standard pattern of embedding the helper test suite.


52-56: LGTM!

Clean and focused test for verifying the enabled flag behavior. The use of VerifyEnabledFlag helper method ensures consistent testing patterns.


58-76: LGTM!

Well-structured test suite setup that properly manages dependencies and uses unique identifiers for test isolation. The dependency setup for VPC and DNS delegation is appropriate for ElastiCache testing.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

♻️ Duplicate comments (2)
test/component_test.go (2)

29-31: Fix inconsistent Redis cluster configuration.

The current configuration has conflicting settings that may cause deployment issues:

  • num_shards: 0 suggests non-cluster mode
  • replicas_per_shard: 1 is only applicable in cluster mode
  • num_replicas: 1 is typically for non-cluster mode

This mixed configuration could lead to unexpected behavior or deployment failures.

For a consistent non-cluster setup, apply this diff:

 				"num_shards":         0,
-				"replicas_per_shard": 1,
+				"replicas_per_shard": 0,
 				"num_replicas":       1,

Alternatively, for a cluster setup:

-				"num_shards":         0,
+				"num_shards":         1,
 				"replicas_per_shard": 1,
-				"num_replicas":       1,
+				"num_replicas":       0,

46-46: Handle deployment errors properly.

The error return value from DeployAtmosComponent is ignored, which could mask deployment failures and lead to unreliable tests.

-	options, _ := s.DeployAtmosComponent(s.T(), component, stack, &inputs)
+	options, err := s.DeployAtmosComponent(s.T(), component, stack, &inputs)
+	assert.NoError(s.T(), err)
🧹 Nitpick comments (1)
test/component_test.go (1)

20-20: Remove unused constant.

The awsRegion constant is declared but never used in the code.

-	const awsRegion = "us-east-2"
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b6a59eb and e3457b5.

📒 Files selected for processing (1)
  • test/component_test.go (1 hunks)
🧰 Additional context used
🪛 golangci-lint (1.64.8)
test/component_test.go

20-20: const awsRegion is unused

(unused)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Summary
🔇 Additional comments (2)
test/component_test.go (2)

52-56: LGTM! Clean enabled flag test implementation.

The test method correctly verifies the enabled flag behavior using the helper's VerifyEnabledFlag method.


58-76: LGTM! Well-structured test suite setup.

The test suite properly sets up dependencies and uses unique identifiers to avoid conflicts between test runs.

@RoseSecurity
Copy link
Contributor Author

/terratest

@mergify mergify bot removed the needs-test Needs testing label Jul 30, 2025
@goruha goruha added this pull request to the merge queue Aug 25, 2025
@mergify mergify bot removed the triage Needs triage label Aug 25, 2025
@mergify mergify bot requested review from a team August 25, 2025 15:51
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 25, 2025
@goruha goruha added this pull request to the merge queue Aug 25, 2025
github-merge-queue bot pushed a commit that referenced this pull request Aug 25, 2025
* chore: add tests

* fix: remove dns-primary

* Delete test/run.sh

* Delete test/test_suite.yaml

* fix: add gitignore

* fix: use redis family instead of valkey

* fix: adjust redis version to 6.2

* fix: update redis engine version

* fix: add parameter cluster-allow-pubsubshard-when-down

* fix: destroy with inputs

* fix: update redis family for disabled

* fix: add required fields to disabled

* fix: update deprecated egress arguments

---------

Co-authored-by: Igor Rodionov <goruha@gmail.com>
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 25, 2025
Copy link

mergify bot commented Sep 1, 2025

Heads up! This pull request looks stale. It will be closed soon, if there are no new commits. ⏳

@mergify mergify bot added stale This PR has gone stale and removed stale This PR has gone stale labels Sep 1, 2025
Copy link

mergify bot commented Sep 8, 2025

Heads up! This pull request looks stale. It will be closed soon, if there are no new commits. ⏳

@mergify mergify bot added stale This PR has gone stale and removed stale This PR has gone stale labels Sep 8, 2025
@goruha goruha added this pull request to the merge queue Sep 8, 2025
Merged via the queue into main with commit 1b2b457 Sep 8, 2025
15 checks passed
@goruha goruha deleted the add-tests branch September 8, 2025 18:23
Copy link

These changes were released in v1.537.0.

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.

2 participants