summaryrefslogtreecommitdiffstats
path: root/robotframework-onap/eteutils
diff options
context:
space:
mode:
Diffstat (limited to 'robotframework-onap/eteutils')
-rw-r--r--robotframework-onap/eteutils/DNSUtils.py17
-rw-r--r--robotframework-onap/eteutils/SocketUtils.py15
-rw-r--r--robotframework-onap/eteutils/UUID.py15
-rw-r--r--robotframework-onap/eteutils/csvLibrary.py16
4 files changed, 0 insertions, 63 deletions
diff --git a/robotframework-onap/eteutils/DNSUtils.py b/robotframework-onap/eteutils/DNSUtils.py
deleted file mode 100644
index fd0cec3..0000000
--- a/robotframework-onap/eteutils/DNSUtils.py
+++ /dev/null
@@ -1,17 +0,0 @@
-import dns.message
-import dns.name
-import dns.query
-
-class DNSUtils:
- """ Utilities useful for DNS requests """
-
- def dns_request(self, domain, ns):
- """ return the ip address of the given domain name from the given nameserver """
- request = dns.message.make_query(domain, dns.rdatatype.A)
- request.flags |= dns.flags.AD
- request.find_rrset(request.additional, dns.name.root, 65535, dns.rdatatype.OPT, create=True, force_unique=True)
- response = dns.query.udp(request, ns)
-
- for answer in response.answer:
- for item in answer.items:
- return item
diff --git a/robotframework-onap/eteutils/SocketUtils.py b/robotframework-onap/eteutils/SocketUtils.py
deleted file mode 100644
index 0214a13..0000000
--- a/robotframework-onap/eteutils/SocketUtils.py
+++ /dev/null
@@ -1,15 +0,0 @@
-import socket
-
-
-class SocketUtils:
- """SocketUtils is common resource for simple socket keywords."""
-
- def __init__(self):
- pass
-
- def send_binary_data(self, host, port, data):
- """ send raw bytes over tcp socket"""
- sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- # Connect to server and send data
- sock.connect((host, int(port)))
- sock.sendall(bytes(data))
diff --git a/robotframework-onap/eteutils/UUID.py b/robotframework-onap/eteutils/UUID.py
deleted file mode 100644
index 1500076..0000000
--- a/robotframework-onap/eteutils/UUID.py
+++ /dev/null
@@ -1,15 +0,0 @@
-import uuid
-import time
-import datetime
-
-class UUID:
- """UUID is a simple library that generates a uuid"""
-
- def generate_UUID(self):
- """generate a uuid"""
- return uuid.uuid4()
-
- def generate_MilliTimestamp_UUID(self):
- """generate a millisecond timestamp uuid"""
- then = datetime.datetime.now()
- return int(time.mktime(then.timetuple())*1e3 + then.microsecond/1e3)
diff --git a/robotframework-onap/eteutils/csvLibrary.py b/robotframework-onap/eteutils/csvLibrary.py
deleted file mode 100644
index b38b4a5..0000000
--- a/robotframework-onap/eteutils/csvLibrary.py
+++ /dev/null
@@ -1,16 +0,0 @@
-import csv
-class csvLibrary(object):
-
- def read_csv_file(self, filename):
- '''This creates a keyword named "Read CSV File"
-
- This keyword takes one argument, which is a path to a .csv file. It
- returns a list of rows, with each row being a list of the data in
- each column.
- '''
- data = []
- with open(filename, 'rb') as csvfile:
- reader = csv.reader(csvfile)
- for row in reader:
- data.append(row)
- return data