Skip to content

Commit 83fca01

Browse files
authored
Merge pull request #210 from DMTF/Doc-Updates
Various documentation updates; corrected handling of 'collectionlimit' when specified in a config file
2 parents 43664d6 + 02b470f commit 83fca01

File tree

5 files changed

+33
-132
lines changed

5 files changed

+33
-132
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,15 @@ jobs:
6363
.
6464
xit
6565
eof
66+
- name: Update the copyright year
67+
run: |
68+
find . -type f -exec sed -i -E 's/Copyright [0-9\-]+ DMTF/Copyright 2017-'$(date +'%Y')' DMTF/' {} \;
69+
find . -type f -exec sed -i -E 's/Copyright \(c\) [0-9\-]+,/Copyright (c) 2017-'$(date +'%Y')',/' {} \;
6670
- name: Commit and push the updates
6771
run: |
6872
git config user.name "GitHub Release Workflow"
6973
git config user.email "<>"
70-
git add CHANGELOG.md setup.py redfish_interop_validator/RedfishInteropValidator.py
74+
git add *
7175
git commit -s -m "${{github.event.inputs.version}} versioning"
7276
git push origin main
7377
- name: Make the release

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -51,42 +51,42 @@ Modify the config\example.ini file to enter the system details under below secti
5151

5252
### [Tool]
5353

54-
| Variable | Type | Definition |
55-
| :--- | :--- | :--- |
56-
| Version | string | Internal config version (optional) |
57-
| Copyright | string | _DMTF_ copyright (optional) |
58-
| verbose | int | level of verbosity (0-3) |
54+
| Variable | CLI Argument | Type | Definition |
55+
| :--- | :--- | :--- | :--- |
56+
| `verbose` | `-v` | integer | Verbosity of tool in stdout; 0 to 3, 3 being the greatest level of verbosity. |
5957

6058
### [Interop]
6159

62-
| Variable | Type | Definition |
63-
| :--- | :--- | :--- |
64-
| Profile | string | name of the testing profile (mandatory) |
65-
| Schema | string | name of json schema to test profile against |
60+
Note: These arguments are only supplied via the CLI to the tool and are not specified in the configuration file.
61+
62+
| CLI Argument | Type | Definition |
63+
| :--- | :--- | :--- |
64+
| `profile` | string | The name of the testing profile (mandatory). |
65+
| `--schema` | string | The filepath and name of the schema file to verify the format of the profile. |
6666

6767
### [Host]
6868

69-
| Variable | Type | Definition |
70-
| :--- | :--- | :--- |
71-
| ip | string | Host of testing system, formatted as https:// ip : port (can use http as well) |
72-
| username | string | Username for Basic authentication |
73-
| password | string | Password for Basic authentication (removed from logs) |
74-
| description | string | Description of system being tested (optional) |
75-
| forceauth | boolean | Force authentication even on http servers |
76-
| authtype | string | Authorization type (Basic | Session | Token | None) |
77-
| token | string | Token string for Token authentication |
69+
| Variable | CLI Argument | Type | Definition |
70+
| :--- | :--- | :--- | :--- |
71+
| `ip` | `-r` | string | The address of the Redfish service (with scheme); example: 'https://123.45.6.7:8000'. |
72+
| `username` | `-u` | string | The username for authentication. |
73+
| `password` | `-p` | string | The password for authentication. |
74+
| `description` | `--description` | string | The description of the system for identifying logs; if none is given, a value is produced from information in the service root. |
75+
| `forceauth` | `--forceauth` | boolean | Force authentication on unsecure connections; 'True' or 'False'. |
76+
| `authtype` | `--authtype` | string | Authorization type; 'None', 'Basic', 'Session', or 'Token'. |
77+
| `token` | `--token` | string | Token when 'authtype' is 'Token'. |
7878

7979
### [Validator]
8080

81-
| Variable | Type | Definition |
82-
| :--- | :--- | :--- |
83-
| payload | string | Option to test a specific payload or resource tree (see below) |
84-
| logdir | string | Place to save logs and run configs |
85-
| oemcheck | boolean | Whether to check Oem items on service |
86-
| online_profiles | boolean | Whether to download online profiles |
87-
| debugging | boolean | Whether to print debug to log |
88-
| required_profiles_dir | string | Option to set the root folder of required profiles |
89-
| collectionlimit | string | Sets a limit to links gathered from collections by type, e.g. `ComputerSystem 20` limits ComputerSystemCollection to 20 links |
81+
| Variable | CLI Argument | Type | Definition |
82+
| :--- | :--- | :--- | :--- |
83+
| `payload` | `--payload` | string | The mode to validate payloads ('Tree', 'Single', 'SingleFile', or 'TreeFile') followed by resource/filepath; see below. |
84+
| `logdir` | `--logdir` | string | The directory for generated report files; default: 'logs'. |
85+
| `oemcheck` | `--nooemcheck` | boolean | Whether to check OEM items on service; 'True' or 'False'. |
86+
| `online_profiles` | `--no_online_profiles` | boolean | Whether to download online profiles; 'True' or 'False'. |
87+
| `debugging` | `--debugging` | boolean | Output debug statements to text log, otherwise it only uses INFO; 'True' or 'False'. |
88+
| `required_profiles_dir` | `--required_profiles_dir` | string | Option to set the root folder of required profiles |
89+
| `collectionlimit` | `--collectionlimit` | string | Sets a limit to links gathered from collections by type (schema name).<br/>Example 1: `ComputerSystem 20` limits ComputerSystemCollection to 20 links.<br/>Example 2: `ComputerSystem 20 LogEntry 10` limits ComputerSystemCollection to 20 links and LogEntryCollection to 10 links. |
9090

9191
### Payload options
9292

SelfSignedCerts.md

Lines changed: 0 additions & 100 deletions
This file was deleted.

config/example.ini

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
[Tool]
2-
Version = 2
3-
Copyright = Redfish DMTF (c) 2021
42
verbose =
53

64
[Host]
@@ -19,4 +17,3 @@ oemcheck = True
1917
online_profiles = True
2018
debugging = False
2119
collectionlimit = LogEntry 20
22-

redfish_interop_validator/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def convert_config_to_args(args, config):
4949
if option.lower() not in ['version', 'copyright']:
5050
my_logger.error('Option {} not supported!'.format(option))
5151
elif my_config[section][option] not in ['', None]:
52-
if option.lower() == 'payload':
52+
if option.lower() == 'payload' or option.lower() == 'collectionlimit':
5353
setattr(args, option, my_config[section][option].split(' '))
5454
else:
5555
setattr(args, option, my_config[section][option])

0 commit comments

Comments
 (0)