mirror of
https://github.com/sharkdp/bat
synced 2024-11-16 21:25:56 +00:00
Add Robot Framework syntax test file
This commit is contained in:
parent
a0a5e30c39
commit
9935c4984c
@ -0,0 +1,31 @@
|
|||||||
|
[38;2;230;219;116m*** Settings ***[0m
|
||||||
|
[38;2;117;113;94mDocumentation PROBLEM:[0m
|
||||||
|
[38;2;117;113;94m... You want to test the existence of a file in an AWS S3 bucket[0m
|
||||||
|
[38;2;117;113;94m... without using lower level Python code or developing a custom library.[0m
|
||||||
|
[38;2;117;113;94m... DISCUSSION:[0m
|
||||||
|
[38;2;117;113;94m... This recipe demonstrates:[0m
|
||||||
|
[38;2;117;113;94m... - using a Suite Teardown to end the test suite cleanly[0m
|
||||||
|
[38;2;117;113;94m... - using keywords from an external library[0m
|
||||||
|
[38;2;117;113;94m... - accessing OS Environment Variables directly using %{} syntax[0m
|
||||||
|
[38;2;117;113;94m... This recipe has the following external dependencies:[0m
|
||||||
|
[38;2;117;113;94m... $ pip install --upgrade robotframework-aws[0m
|
||||||
|
[38;2;117;113;94m... This recipe also requires the following OS environment variables:[0m
|
||||||
|
[38;2;117;113;94m... AWS_ACCESS_KEY_ID[0m
|
||||||
|
[38;2;117;113;94m... AWS_SECRET_ACCESS_KEY[0m
|
||||||
|
[38;2;190;132;255mSuite Teardown [0m[38;2;248;248;242m Delete All Sessions[0m
|
||||||
|
[38;2;190;132;255mLibrary [0m[38;2;248;248;242m AWSLibrary[0m
|
||||||
|
[38;2;190;132;255mForce Tags [0m[38;2;248;248;242m no-ci-testing[0m
|
||||||
|
|
||||||
|
[38;2;230;219;116m*** Variables ***[0m
|
||||||
|
[4;38;2;102;217;239m${recipe}[0m[38;2;248;248;242m Recipe 14.1 AWS Simple Storage Service[0m
|
||||||
|
[4;38;2;102;217;239m${level}[0m[38;2;248;248;242m Intermediate[0m
|
||||||
|
[4;38;2;102;217;239m${category}[0m[38;2;248;248;242m External Library: AWSLibrary[0m
|
||||||
|
[4;38;2;102;217;239m${REGION}[0m[38;2;248;248;242m us-east-1[0m
|
||||||
|
[4;38;2;102;217;239m${BUCKET}[0m[38;2;248;248;242m YOUR_BUCKET_NAME_GOES_HERE[0m
|
||||||
|
[4;38;2;102;217;239m${KEY}[0m[38;2;248;248;242m YOUR_FILE_PATH_GOES_HERE[0m
|
||||||
|
|
||||||
|
[38;2;230;219;116m*** Test Cases ***[0m
|
||||||
|
[38;2;249;38;114mCheck Key Exists In Bucket[0m
|
||||||
|
[38;2;248;248;242m Log Variables[0m
|
||||||
|
[38;2;248;248;242m Create Session With Keys [0m[4;38;2;102;217;239m${REGION}[0m[38;2;248;248;242m [0m[3;38;2;253;151;31m%{AWS_ACCESS_KEY_ID}[0m[38;2;248;248;242m [0m[3;38;2;253;151;31m%{AWS_SECRET_ACCESS_KEY}[0m
|
||||||
|
[38;2;248;248;242m Key Should Exist [0m[4;38;2;102;217;239m${BUCKET}[0m[38;2;248;248;242m [0m[4;38;2;102;217;239m${KEY}[0m
|
25
tests/syntax-tests/source/Robot Framework/LICENSE.md
Normal file
25
tests/syntax-tests/source/Robot Framework/LICENSE.md
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
The `recipe141_aws_simple_storage_service.robot` file has been added from https://github.com/adrianyorke/robotframework-cookbook under the following license:
|
||||||
|
|
||||||
|
```text
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2020 Adrian Yorke
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
```
|
@ -0,0 +1,31 @@
|
|||||||
|
*** Settings ***
|
||||||
|
Documentation PROBLEM:
|
||||||
|
... You want to test the existence of a file in an AWS S3 bucket
|
||||||
|
... without using lower level Python code or developing a custom library.
|
||||||
|
... DISCUSSION:
|
||||||
|
... This recipe demonstrates:
|
||||||
|
... - using a Suite Teardown to end the test suite cleanly
|
||||||
|
... - using keywords from an external library
|
||||||
|
... - accessing OS Environment Variables directly using %{} syntax
|
||||||
|
... This recipe has the following external dependencies:
|
||||||
|
... $ pip install --upgrade robotframework-aws
|
||||||
|
... This recipe also requires the following OS environment variables:
|
||||||
|
... AWS_ACCESS_KEY_ID
|
||||||
|
... AWS_SECRET_ACCESS_KEY
|
||||||
|
Suite Teardown Delete All Sessions
|
||||||
|
Library AWSLibrary
|
||||||
|
Force Tags no-ci-testing
|
||||||
|
|
||||||
|
*** Variables ***
|
||||||
|
${recipe} Recipe 14.1 AWS Simple Storage Service
|
||||||
|
${level} Intermediate
|
||||||
|
${category} External Library: AWSLibrary
|
||||||
|
${REGION} us-east-1
|
||||||
|
${BUCKET} YOUR_BUCKET_NAME_GOES_HERE
|
||||||
|
${KEY} YOUR_FILE_PATH_GOES_HERE
|
||||||
|
|
||||||
|
*** Test Cases ***
|
||||||
|
Check Key Exists In Bucket
|
||||||
|
Log Variables
|
||||||
|
Create Session With Keys ${REGION} %{AWS_ACCESS_KEY_ID} %{AWS_SECRET_ACCESS_KEY}
|
||||||
|
Key Should Exist ${BUCKET} ${KEY}
|
Loading…
Reference in New Issue
Block a user