Skip to content

Commit

Permalink
Generated service package & fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mousavian committed Mar 7, 2023
1 parent 0e035be commit 85f15c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestAccElastiCacheReservedNodeOffering_basic(t *testing.T) {
{
Config: testAccReservedNodeOfferingConfig_basic(),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(dataSourceName, "cache_node_type", "cache.t2.micro"),
resource.TestCheckResourceAttr(dataSourceName, "cache_node_type", "cache.t4g.small"),
resource.TestCheckResourceAttr(dataSourceName, "duration", "31536000"),
resource.TestCheckResourceAttrSet(dataSourceName, "fixed_price"),
resource.TestCheckResourceAttrSet(dataSourceName, "offering_id"),
Expand All @@ -35,7 +35,7 @@ func TestAccElastiCacheReservedNodeOffering_basic(t *testing.T) {
func testAccReservedNodeOfferingConfig_basic() string {
return `
data "aws_elasticache_reserved_cache_node_offering" "test" {
cache_node_type = "cache.t2.micro"
cache_node_type = "cache.t4g.small"
duration = 31536000
offering_type = "No Upfront"
product_description = "redis"
Expand Down
2 changes: 1 addition & 1 deletion internal/service/elasticache/reserved_cache_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func testAccReservedInstanceExists(ctx context.Context, n string, reservation *e
func testAccReservedInstanceConfig_basic(rName string, cacheNodeCount string) string {
return fmt.Sprintf(`
data "aws_elasticache_reserved_cache_node_offering" "test" {
cache_node_type = "cache.t2.micro"
cache_node_type = "cache.t4g.small"
duration = 31536000
offering_type = "No Upfront"
product_description = "redis"
Expand Down
10 changes: 6 additions & 4 deletions internal/service/elasticache/service_package_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 85f15c8

Please sign in to comment.