From 6944f7d31ecb57d22f11ca12e6a1a611419f74a8 Mon Sep 17 00:00:00 2001 From: "EMEA-MEDIA\\scabra02" Date: Fri, 23 Aug 2024 14:36:48 +0100 Subject: [PATCH] create release 1.0.0 --- docs/AWSLibrary.html | 2 +- docs/AWSLibrary.xml | 30 +------------------- setup.py | 6 ++-- src/AWSLibrary/__init__.py | 2 -- src/AWSLibrary/keywords/__init__.py | 2 -- src/AWSLibrary/keywords/resource.py | 43 ----------------------------- 6 files changed, 5 insertions(+), 80 deletions(-) delete mode 100644 src/AWSLibrary/keywords/resource.py diff --git a/docs/AWSLibrary.html b/docs/AWSLibrary.html index f27d808..60d9d90 100644 --- a/docs/AWSLibrary.html +++ b/docs/AWSLibrary.html @@ -1191,7 +1191,7 @@ jQuery.extend({highlight:function(e,t,n,r){if(e.nodeType===3){var i=e.data.match(t);if(i){var s=document.createElement(n||"span");s.className=r||"highlight";var o=e.splitText(i.index);o.splitText(i[0].length);var u=o.cloneNode(true);s.appendChild(u);o.parentNode.replaceChild(s,o);return 1}}else if(e.nodeType===1&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&!(e.tagName===n.toUpperCase()&&e.className===r)){for(var a=0;a diff --git a/docs/AWSLibrary.xml b/docs/AWSLibrary.xml index be90975..89d2f0f 100644 --- a/docs/AWSLibrary.xml +++ b/docs/AWSLibrary.xml @@ -1,5 +1,5 @@ - + 1.0.0 AWSLibrary is a testing library for Robot Framework that gives you the ability to use some of the AWS services in your tests. This robot library is made from Boto3 SDK @@ -623,34 +623,6 @@ could be used to list only the files inside a folder for example. | List Objects | bucket_name | folder_name/start_of_the_filename | *DEPRECATED - this keyword will be removed in version 2.0.0* use `S3 List Objects` instead - - - -path - - -*DEPRECATED - this keyword will be removed in version 2.0.0* - -Verifies Local File at the given path does exist -Requires: @param: ```path``` which is the bucket location/path name. - Example: - | Local File Should Exist | bucket | path | -*DEPRECATED - this keyword will be removed in version 2.0.0* - - - - -path - - -*DEPRECATED - this keyword will be removed in version 2.0.0* - -Verifies Local File at the given path does not exist -Requires: @param: ```path``` which is the bucket location/path name. - Example: - | Local File Should Not Exist | bucket | path | -*DEPRECATED - this keyword will be removed in version 2.0.0* - diff --git a/setup.py b/setup.py index 8fb8214..1773950 100644 --- a/setup.py +++ b/setup.py @@ -3,13 +3,13 @@ def readme(): with open('README.md') as f: - README = f.read() - return README + read_me = f.read() + return read_me setup( name='robotframework-aws', - version='0.2.0', + version='1.0.0', author="Dillan Teagle", author_email="softwaredeveloper@dillanteagle.me", description="A python package to test AWS services in Robot Framework", diff --git a/src/AWSLibrary/__init__.py b/src/AWSLibrary/__init__.py index bda0a0e..9382187 100644 --- a/src/AWSLibrary/__init__.py +++ b/src/AWSLibrary/__init__.py @@ -4,7 +4,6 @@ from AWSLibrary.keywords import ( SessionKeywords, S3Keywords, - ResourceKeywords, DynamoKeywords, CloudWatchKeywords ) @@ -45,7 +44,6 @@ def __init__(self): libraries = [ SessionKeywords(self), S3Keywords(self), - ResourceKeywords(self), DynamoKeywords(self), CloudWatchKeywords(self), SQSKeywords(self) diff --git a/src/AWSLibrary/keywords/__init__.py b/src/AWSLibrary/keywords/__init__.py index a9b8844..b91e7a1 100644 --- a/src/AWSLibrary/keywords/__init__.py +++ b/src/AWSLibrary/keywords/__init__.py @@ -1,6 +1,5 @@ from AWSLibrary.keywords.session import SessionKeywords from AWSLibrary.keywords.s3 import S3Keywords -from AWSLibrary.keywords.resource import ResourceKeywords from AWSLibrary.keywords.dynamo import DynamoKeywords from AWSLibrary.keywords.cloudWatch import CloudWatchKeywords from AWSLibrary.keywords.sqs import SQSKeywords @@ -9,7 +8,6 @@ __all__ = [ SessionKeywords, S3Keywords, - ResourceKeywords, DynamoKeywords, CloudWatchKeywords, SQSKeywords diff --git a/src/AWSLibrary/keywords/resource.py b/src/AWSLibrary/keywords/resource.py deleted file mode 100644 index df34a10..0000000 --- a/src/AWSLibrary/keywords/resource.py +++ /dev/null @@ -1,43 +0,0 @@ -from AWSLibrary.librarycomponent import LibraryComponent -from robot.api.deco import keyword -from robot.api import logger -import os - - -class ResourceKeywords(LibraryComponent): - - @keyword("Local File Should Exist") - def local_file_should_exist(self, path): - """ - *DEPRECATED - this keyword will be removed in version 2.0.0* - - Verifies Local File at the given path does exist - Requires: @param: ```path``` which is the bucket location/path name. - Example: - | Local File Should Exist | bucket | path | - """ - logger.warn("This Keyword 'Local File Should Exist' is deprecated. Use Robot Library 'OperatingSystem' instead") - try: - if os.path.exists(path) == 1: - logger.info("File exists at {}".format(path)) - return True - except FileNotFoundError: - raise Exception("File does not exist at {}".format(path)) - - @keyword("Local File Should Not Exist") - def local_file_should_not_exist(self, path): - """ - *DEPRECATED - this keyword will be removed in version 2.0.0* - - Verifies Local File at the given path does not exist - Requires: @param: ```path``` which is the bucket location/path name. - Example: - | Local File Should Not Exist | bucket | path | - """ - logger.warn("This Keyword 'Local File Should Not Exist' is deprecated. Use Robot Library 'OperatingSystem' instead") - try: - if os.path.exists(path) == 0: - logger.info("File does not exist at {}".format(path)) - return True - except FileNotFoundError: - raise Exception("File does exist at {}".format(path))