-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replacing functional test for container metadata file
- Loading branch information
1 parent
40bc811
commit 4c4a1aa
Showing
17 changed files
with
645 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...s/testdata/taskdefinitions/container-metadata-file-validator-windows/task-definition.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"family": "ecsftest-container-metadata-file-validator-windows", | ||
"containerDefinitions": [{ | ||
"image": "amazon/amazon-ecs-container-metadata-file-validator-windows", | ||
"name": "container-metadata-file-validator", | ||
"memory": 512, | ||
"cpu": 1024, | ||
"healthCheck": { | ||
"command": ["CMD-SHELL", "echo hello"], | ||
"interval": 5, | ||
"timeout": 5, | ||
"retries": 2, | ||
"startPeriod": 1 | ||
}, | ||
"entryPoint": ["powershell"], | ||
"command": ["$env:AWS_REGION=\"$$$TEST_REGION$$$\";.\\container-metadata-file-validator-windows.exe; exit $LASTEXITCODE"], | ||
"logConfiguration": { | ||
"logDriver": "awslogs", | ||
"options": { | ||
"awslogs-group":"ecs-functional-tests", | ||
"awslogs-region":"$$$TEST_REGION$$$", | ||
"awslogs-stream-prefix":"$$$TEST_AWSLOGS_STREAM_PREFIX$$$" | ||
} | ||
} | ||
}] | ||
} | ||
|
24 changes: 24 additions & 0 deletions
24
...nal_tests/testdata/taskdefinitions/container-metadata-file-validator/task-definition.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"family": "ecsftest-container-metadata-file-validator", | ||
"containerDefinitions": [{ | ||
"image": "127.0.0.1:51670/amazon/amazon-ecs-container-metadata-file-validator:latest", | ||
"name": "container-metadata-file-validator", | ||
"memory": 50, | ||
"healthCheck": { | ||
"command": ["CMD-SHELL", "echo hello"], | ||
"interval": 5, | ||
"timeout": 5, | ||
"retries": 2, | ||
"startPeriod": 1 | ||
}, | ||
"logConfiguration": { | ||
"logDriver": "awslogs", | ||
"options": { | ||
"awslogs-group":"ecs-functional-tests", | ||
"awslogs-region":"$$$TEST_REGION$$$", | ||
"awslogs-stream-prefix":"$$$TEST_AWSLOGS_STREAM_PREFIX$$$" | ||
} | ||
} | ||
}] | ||
} | ||
|
10 changes: 0 additions & 10 deletions
10
...t/functional_tests/testdata/taskdefinitions/mdservice-validator-unix/task-definition.json
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
...unctional_tests/testdata/taskdefinitions/mdservice-validator-windows/task-definition.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...iner-metadata-file-validator-windows/container-metadata-file-validator-windows.dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"). You may | ||
# not use this file except in compliance with the License. A copy of the | ||
# License is located at | ||
# | ||
# http://aws.amazon.com/apache2.0/ | ||
# | ||
# or in the "license" file accompanying this file. This file is distributed | ||
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
# express or implied. See the License for the specific language governing | ||
# permissions and limitations under the License. | ||
|
||
FROM microsoft/windowsservercore:latest | ||
|
||
ADD container-metadata-file-validator-windows.exe container-metadata-file-validator-windows.exe |
Oops, something went wrong.