Skip to content

Commit

Permalink
tests/resource/aws_eks_cluster: Update version acceptance test with t…
Browse files Browse the repository at this point in the history
…wo latest versions

Replacing 1.10 and 1.11, which are both deprecated:

- aws/containers-roadmap#300
- aws/containers-roadmap#464

Output from acceptance testing:

```
--- PASS: TestAccAWSEksCluster_Version (2292.24s)
```
  • Loading branch information
bflad committed Sep 5, 2019
1 parent 5213b40 commit a43cdfe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aws/resource_aws_eks_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ func TestAccAWSEksCluster_Version(t *testing.T) {
CheckDestroy: testAccCheckAWSEksClusterDestroy,
Steps: []resource.TestStep{
{
Config: testAccAWSEksClusterConfig_Version(rName, "1.10"),
Config: testAccAWSEksClusterConfig_Version(rName, "1.13"),
Check: resource.ComposeTestCheckFunc(
testAccCheckAWSEksClusterExists(resourceName, &cluster1),
resource.TestCheckResourceAttr(resourceName, "version", "1.10"),
resource.TestCheckResourceAttr(resourceName, "version", "1.13"),
),
},
{
Expand All @@ -139,11 +139,11 @@ func TestAccAWSEksCluster_Version(t *testing.T) {
ImportStateVerify: true,
},
{
Config: testAccAWSEksClusterConfig_Version(rName, "1.11"),
Config: testAccAWSEksClusterConfig_Version(rName, "1.14"),
Check: resource.ComposeTestCheckFunc(
testAccCheckAWSEksClusterExists(resourceName, &cluster2),
testAccCheckAWSEksClusterNotRecreated(&cluster1, &cluster2),
resource.TestCheckResourceAttr(resourceName, "version", "1.11"),
resource.TestCheckResourceAttr(resourceName, "version", "1.14"),
),
},
},
Expand Down

0 comments on commit a43cdfe

Please sign in to comment.