Skip to content

Instantly share code, notes, and snippets.

@TsuyoshiUshio
Last active January 20, 2020 07:40
Show Gist options
  • Save TsuyoshiUshio/28e10bcfc22596d9ee4a6464c5318da1 to your computer and use it in GitHub Desktop.
Save TsuyoshiUshio/28e10bcfc22596d9ee4a6464c5318da1 to your computer and use it in GitHub Desktop.
terratest with custom helper.
:
terraform.InitAndApply(t, terraformOptions)
var ActualCount int32 = 0
cluster, err := GetManagedCluster(expectedResourceGroupName, expectedClusterName) // Custom helper method
assert.Nil(t, err)
ActualCount = *(*cluster.ManagedClusterProperties.AgentPoolProfiles)[0].Count
// Write assert
assert.Equal(t, int32(expectedAagentCount), ActualCount)
:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment