moving basic rest calls to requestshelper
Issue-ID: TEST-173
Change-Id: I76736b52a48510ce0a6f44607401b8e127a87476
Signed-off-by: DR695H <dr695h@att.com>
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 @@
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 @@
"""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)