This repository was archived by the owner on Aug 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsample_run.py
48 lines (42 loc) · 1.75 KB
/
sample_run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright Notice:
# Copyright 2016-2019 DMTF. All rights reserved.
# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-Service-Conformance-Check/blob/main/LICENSE.md
###################################################################################################
# Name: sample_run
# Description: This sample module provides steps to run the client tool in order to run assertions
# on SUT.
#
# Verified/operational Python revisions (Windows OS) :
# 2.7.10
# 3.4.3
#
# Initial code released : 01/2016
# Steve Krig ~ Intel
# Fatima Saleem ~ Intel
# Priyanka Kumari ~ Texas Tech University
###################################################################################################
import rf_client
import rfs_test
import logger
def run(self):
# create logger obj
log = logger.Log()
# initialize assertions excel sheet at this point
log.init_xl()
## Open/initialize the log files
log.assertion_log('OPEN', None, self.SUT_prop, self.Redfish_URIs['Service_Root'])
rfs_test.TEST_protocol_details.Assertion_6_3_1(self, log)
## close log files
log.assertion_log('CLOSE', None)
if __name__ == "__main__":
SUTs = rf_client.get_sut_prop()
for sut_prop in SUTs:
if sut_prop:
#initalize tool before anything else..this sets up all the necc variables for this sut in this tool
sut = rf_client.setup_tool(sut_prop)
if sut:
#run(sut)
rfs_test.run(sut)
else:
print('No SUT found in properties.json. Please add an SUT following the format provided in readme.txt and try running the tool again')
exit(0)