on master help sign in
Add Robot Framework syntax test file
commit9935c4984c754201fa6192da3d00ae6a95a8ed82 authorMohamed Abdelnour <mohamed.k.abdelnour@gmail.com> dateSun 30 May 2021, 09:11 (5 years ago) parenta0a5e30
3 files changed+87
tests/syntax-tests/highlighted/Robot Framework/recipe141_aws_simple_storage_service.robot+31 tests/syntax-tests/source/Robot Framework/LICENSE.md+25 tests/syntax-tests/source/Robot Framework/recipe141_aws_simple_storage_service.robot+31
tests/syntax-tests/highlighted/Robot Framework/recipe141_aws_simple_storage_service.robotnew file+31
@@ -0,0 +1,31 @@
1+*** Settings ***
2+Documentation PROBLEM:
3+... You want to test the existence of a file in an AWS S3 bucket
4+... without using lower level Python code or developing a custom library.
5+... DISCUSSION:
6+... This recipe demonstrates:
7+... - using a Suite Teardown to end the test suite cleanly
8+... - using keywords from an external library
9+... - accessing OS Environment Variables directly using %{} syntax
10+... This recipe has the following external dependencies:
11+... $ pip install --upgrade robotframework-aws
12+... This recipe also requires the following OS environment variables:
13+... AWS_ACCESS_KEY_ID
14+... AWS_SECRET_ACCESS_KEY
15+Suite Teardown  Delete All Sessions
16+Library  AWSLibrary
17+Force Tags  no-ci-testing
18+
19+*** Variables ***
20+${recipe} Recipe 14.1 AWS Simple Storage Service
21+${level} Intermediate
22+${category} External Library: AWSLibrary
23+${REGION} us-east-1
24+${BUCKET} YOUR_BUCKET_NAME_GOES_HERE
25+${KEY} YOUR_FILE_PATH_GOES_HERE
26+
27+*** Test Cases ***
28+Check Key Exists In Bucket
29+ Log Variables
30+ Create Session With Keys ${REGION} %{AWS_ACCESS_KEY_ID} %{AWS_SECRET_ACCESS_KEY}
31+ Key Should Exist ${BUCKET} ${KEY}
tests/syntax-tests/source/Robot Framework/LICENSE.mdnew file+25
@@ -0,0 +1,25 @@
1+The `recipe141_aws_simple_storage_service.robot` file has been added from https://github.com/adrianyorke/robotframework-cookbook under the following license:
2+
3+```text
4+MIT License
5+
6+Copyright (c) 2020 Adrian Yorke
7+
8+Permission is hereby granted, free of charge, to any person obtaining a copy
9+of this software and associated documentation files (the "Software"), to deal
10+in the Software without restriction, including without limitation the rights
11+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+copies of the Software, and to permit persons to whom the Software is
13+furnished to do so, subject to the following conditions:
14+
15+The above copyright notice and this permission notice shall be included in all
16+copies or substantial portions of the Software.
17+
18+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24+SOFTWARE.
25+```
tests/syntax-tests/source/Robot Framework/recipe141_aws_simple_storage_service.robotnew file+31
@@ -0,0 +1,31 @@
1+*** Settings ***
2+Documentation PROBLEM:
3+... You want to test the existence of a file in an AWS S3 bucket
4+... without using lower level Python code or developing a custom library.
5+... DISCUSSION:
6+... This recipe demonstrates:
7+... - using a Suite Teardown to end the test suite cleanly
8+... - using keywords from an external library
9+... - accessing OS Environment Variables directly using %{} syntax
10+... This recipe has the following external dependencies:
11+... $ pip install --upgrade robotframework-aws
12+... This recipe also requires the following OS environment variables:
13+... AWS_ACCESS_KEY_ID
14+... AWS_SECRET_ACCESS_KEY
15+Suite Teardown Delete All Sessions
16+Library AWSLibrary
17+Force Tags no-ci-testing
18+
19+*** Variables ***
20+${recipe} Recipe 14.1 AWS Simple Storage Service
21+${level} Intermediate
22+${category} External Library: AWSLibrary
23+${REGION} us-east-1
24+${BUCKET} YOUR_BUCKET_NAME_GOES_HERE
25+${KEY} YOUR_FILE_PATH_GOES_HERE
26+
27+*** Test Cases ***
28+Check Key Exists In Bucket
29+ Log Variables
30+ Create Session With Keys ${REGION} %{AWS_ACCESS_KEY_ID} %{AWS_SECRET_ACCESS_KEY}
31+ Key Should Exist ${BUCKET} ${KEY}