diff options
author | DR695H <dr695h@att.com> | 2019-07-11 11:57:29 -0400 |
---|---|---|
committer | DR695H <dr695h@att.com> | 2019-07-11 11:57:29 -0400 |
commit | 335a1c8082c8e7788e56307a9c03a8511500a687 (patch) | |
tree | 6c19adff23737743bac2651ae747db50f982e794 /robotframework-onap/ONAPLibrary/PreloadSDNCKeywords.py | |
parent | 1afa01d5848f9a7a99c436397ebc019cee7fb362 (diff) |
moving basic rest calls to requestshelper
Issue-ID: TEST-173
Change-Id: I76736b52a48510ce0a6f44607401b8e127a87476
Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robotframework-onap/ONAPLibrary/PreloadSDNCKeywords.py')
-rw-r--r-- | robotframework-onap/ONAPLibrary/PreloadSDNCKeywords.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/robotframework-onap/ONAPLibrary/PreloadSDNCKeywords.py b/robotframework-onap/ONAPLibrary/PreloadSDNCKeywords.py index baf58d4..c42f06c 100644 --- a/robotframework-onap/ONAPLibrary/PreloadSDNCKeywords.py +++ b/robotframework-onap/ONAPLibrary/PreloadSDNCKeywords.py @@ -11,12 +11,10 @@ # 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 ONAPLibrary.BaseSDNCKeywords import BaseSDNCKeywords -from ONAPLibrary.UUIDKeywords import UUIDKeywords + +from ONAPLibrary.RequestsHelper import RequestsHelper from ONAPLibrary.TemplatingKeywords import TemplatingKeywords from robot.api.deco import keyword -from robot.libraries.BuiltIn import BuiltIn -from robot.libraries.OperatingSystem import OperatingSystem class PreloadSDNCKeywords(object): @@ -25,11 +23,7 @@ class PreloadSDNCKeywords(object): def __init__(self): super(PreloadSDNCKeywords, self).__init__() - self.application_id = "robot-ete" - self.builtin = BuiltIn() - self.base_keywords = BaseSDNCKeywords() - self.utilities = UUIDKeywords() - self.os = OperatingSystem() + self.reqs = RequestsHelper() self.templating = TemplatingKeywords() @keyword @@ -37,4 +31,4 @@ class PreloadSDNCKeywords(object): """Runs an SDNC request to preload certain data.""" self.templating.create_environment("sdnc", templates_folder) data = self.templating.apply_template("sdnc", template, preload_dictionary) - return self.base_keywords.post_request(endpoint, data_path, data) + return self.reqs.post_request("sdnc", endpoint, data_path, data) |