Add simple Redfish tests

Added Redfish tests to validate connection between Redfish
Telemetry that is implemented in bmcweb and Telemetry service.

Change-Id: Iacc63aeb7f2852d5acac5d5615f98b402f7c4417
Signed-off-by: Wludzik, Jozef <jozef.wludzik@intel.com>
diff --git a/redfish-tests/conftest.py b/redfish-tests/conftest.py
new file mode 100644
index 0000000..d5ed4ae
--- /dev/null
+++ b/redfish-tests/conftest.py
@@ -0,0 +1,36 @@
+import pytest
+import redfish_requests
+
+
+def pytest_addoption(parser):
+    parser.addoption('--host_addr', action='store',
+                     default='https://localhost:4443')
+    parser.addoption('--username', action='store', default='root')
+    parser.addoption('--password', action='store', default='0penBmc')
+    parser.addoption('--metric_limit', action='store', default=200)
+
+
+@pytest.fixture(scope='session')
+def redfish(request):
+    host_addr = request.config.getoption('--host_addr')
+    username = request.config.getoption('--username')
+    password = request.config.getoption('--password')
+    return redfish_requests.RedfishRequest(host_addr, username, password)
+
+
+@pytest.fixture(scope='session')
+def telemetry(request, redfish):
+    metric_limit = request.config.getoption('--metric_limit')
+    return redfish_requests.TelemetryService(redfish, metric_limit)
+
+
+@pytest.fixture(scope='function')
+def report_definitions(redfish):
+    report_definitions = redfish_requests.ReportDef(redfish)
+    print('Cleaning reports before test')
+    for report in report_definitions.get_collection():
+        report_definitions.delete_report(report)
+    yield report_definitions
+    print('Cleaning reports after test')
+    for report in report_definitions.get_collection():
+        report_definitions.delete_report(report)