Skip to content

Commit

Permalink
Closing few TODOs in functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yhlee-aws committed May 31, 2019
1 parent c792d67 commit e6e3a73
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
16 changes: 6 additions & 10 deletions agent/functional_tests/tests/functionaltests_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -788,13 +788,12 @@ func TestRunAWSVPCTaskWithENITrunkingEndPointValidation(t *testing.T) {
_, err := ECS.PutAccountSetting(&putAccountSettingInput)
assert.NoError(t, err)


os.Setenv("ECS_FTEST_FORCE_NET_HOST", "true")
agent := RunAgent(t, &AgentOptions{
EnableTaskENI: true,
ExtraEnvironment: map[string]string{
"ECS_ENABLE_TASK_IAM_ROLE": "true",
"ECS_ENABLE_HIGH_DENSITY_ENI": "true",
"ECS_ENABLE_TASK_IAM_ROLE": "true",
"ECS_ENABLE_HIGH_DENSITY_ENI": "true",
"ECS_AVAILABLE_LOGGING_DRIVERS": `["awslogs"]`,
},
})
Expand All @@ -815,7 +814,6 @@ func TestRunAWSVPCTaskWithENITrunkingEndPointValidation(t *testing.T) {
tdOverrides["$$$TASK_ROLE$$$"] = roleArn
tdOverrides["$$$TEST_REGION$$$"] = *ECS.Config.Region


numToRun := 5
tasks := make([]*TestTask, numToRun)

Expand Down Expand Up @@ -1532,8 +1530,7 @@ func TestRunGPUTask(t *testing.T) {
GPUEnabled: true,
})
defer agent.Cleanup()
// TODO: after release, change it to 1.24.0
agent.RequireVersion(">=1.22.0")
agent.RequireVersion(">=1.24.0")

testTask, err := agent.StartTask(t, "nvidia-gpu")
require.NoError(t, err)
Expand Down Expand Up @@ -1659,8 +1656,7 @@ func TestAppMeshCNIPlugin(t *testing.T) {
},
})
defer agent.Cleanup()
// TODO: after release, change it to 1.26.0
agent.RequireVersion(">=1.25.3")
agent.RequireVersion(">=1.26.0")

tdOverrides := make(map[string]string)
tdOverrides["$$$TEST_REGION$$$"] = *ECS.Config.Region
Expand Down Expand Up @@ -1724,12 +1720,12 @@ func TestTrunkENIAttachDetachWorkflow(t *testing.T) {
// Expect one more interface to be attached (i.e. the Trunk)
macs, err := GetNetworkInterfaceMacs()
require.NoError(t, err)
assert.Equal(t, existingInterfaceCount + 1, len(macs))
assert.Equal(t, existingInterfaceCount+1, len(macs))

// Check that there's one ENI attachment in DescribeContainerInstances response and it matches
// the one on the instance
resp, err := ECS.DescribeContainerInstances(&ecsapi.DescribeContainerInstancesInput{
Cluster: &agent.Cluster,
Cluster: &agent.Cluster,
ContainerInstances: aws.StringSlice([]string{agent.ContainerInstanceArn}),
})
require.NoError(t, err)
Expand Down
6 changes: 2 additions & 4 deletions agent/functional_tests/tests/functionaltests_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,7 @@ func TestAWSLogsDriverMultilinePattern(t *testing.T) {
agent := RunAgent(t, &agentOptions)
defer agent.Cleanup()

// TODO: Change the version required
agent.RequireVersion(">=1.16.1") //Required for awslogs driver multiline pattern option
agent.RequireVersion(">=1.17.0") //Required for awslogs driver multiline pattern option

tdOverrides := make(map[string]string)
tdOverrides["$$$TEST_REGION$$$"] = aws.StringValue(ECS.Config.Region)
Expand Down Expand Up @@ -284,8 +283,7 @@ func TestAWSLogsDriverDatetimeFormat(t *testing.T) {
agent := RunAgent(t, &agentOptions)
defer agent.Cleanup()

// TODO: Change the version required
agent.RequireVersion(">=1.16.1") //Required for awslogs driver datetime format option
agent.RequireVersion(">=1.17.0") //Required for awslogs driver datetime format option

tdOverrides := make(map[string]string)
tdOverrides["$$$TEST_REGION$$$"] = aws.StringValue(ECS.Config.Region)
Expand Down

0 comments on commit e6e3a73

Please sign in to comment.