Skip to content

Commit

Permalink
Merge pull request #592 from DMTF/Doc-Updates
Browse files Browse the repository at this point in the history
Various documentation updates; corrected handling of 'collectionlimit' when specified in a config file
  • Loading branch information
mraineri authored Jun 28, 2024
2 parents fc6c288 + 57263a5 commit 90babbb
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 126 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,15 @@ jobs:
.
xit
eof
- name: Update the copyright year
run: |
find . -type f -exec sed -i -E 's/Copyright [0-9\-]+ DMTF/Copyright 2017-'$(date +'%Y')' DMTF/' {} \;
find . -type f -exec sed -i -E 's/Copyright \(c\) [0-9\-]+,/Copyright (c) 2017-'$(date +'%Y')',/' {} \;
- name: Commit and push the updates
run: |
git config user.name "GitHub Release Workflow"
git config user.email "<>"
git add CHANGELOG.md setup.py redfish_service_validator/RedfishServiceValidator.py
git add *
git commit -s -m "${{github.event.inputs.version}} versioning"
git push origin main
- name: Set up Python
Expand Down
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,36 +58,36 @@ At a minimum, the `ip`, `username`, and `password` options must be modified.

| Variable | CLI Argument | Type | Definition |
| :--- | :--- | :--- | :--- |
| `verbose` | `-v` | integer | Verbosity of tool in stdout |
| `verbose` | `-v` | integer | Verbosity of tool in stdout; 0 to 3, 3 being the greatest level of verbosity. |

### [Host]

| Variable | CLI Argument | Type | Definition |
| :--- | :--- | :--- | :--- |
| `ip` | `-r` | string | The address of the Redfish service (with scheme); example: 'https://123.45.6.7:8000' |
| `username` | `-u` | string | The username for authentication |
| `password` | `-p` | string | The password for authentication |
| `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 |
| `forceauth` | `--forceauth` | boolean | Force authentication on unsecure connections |
| `authtype` | `--authtype` | string | Authorization type; 'None', 'Basic', 'Session', or 'Token' |
| `token` | `--token` | string | Token when 'authtype' is 'Token' |
| `ext_http_proxy` | `--ext_http_proxy` | string | URL of the HTTP proxy for accessing external sites
| `ext_https_proxy` | `--ext_https_proxy` | string | URL of the HTTPS proxy for accessing external sites
| `serv_http_proxy` | `--serv_http_proxy` | string | URL of the HTTP proxy for accessing the service
| `serv_https_proxy` | `--serv_https_proxy` | string | URL of the HTTPS proxy for accessing the service
| `ip` | `-r` | string | The address of the Redfish service (with scheme); example: 'https://123.45.6.7:8000'. |
| `username` | `-u` | string | The username for authentication. |
| `password` | `-p` | string | The password for authentication. |
| `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. |
| `forceauth` | `--forceauth` | boolean | Force authentication on unsecure connections; 'True' or 'False'. |
| `authtype` | `--authtype` | string | Authorization type; 'None', 'Basic', 'Session', or 'Token'. |
| `token` | `--token` | string | Token when 'authtype' is 'Token'. |
| `ext_http_proxy` | `--ext_http_proxy` | string | URL of the HTTP proxy for accessing external sites. |
| `ext_https_proxy` | `--ext_https_proxy` | string | URL of the HTTPS proxy for accessing external sites. |
| `serv_http_proxy` | `--serv_http_proxy` | string | URL of the HTTP proxy for accessing the service. |
| `serv_https_proxy` | `--serv_https_proxy` | string | URL of the HTTPS proxy for accessing the service. |

### [Validator]

| Variable | CLI Argument | Type | Definition |
| :--- | :--- | :--- | :--- |
| `payload` | `--payload` | string | The mode to validate payloads ('Tree', 'Single', 'SingleFile', or 'TreeFile') followed by resource/filepath; see below |
| `logdir` | `--logdir` | string | The directory for generated report files; default: 'logs'
| `oemcheck` | `--nooemcheck` | boolean | Whether to check OEM items on service |
| `uricheck` | `--uricheck` | boolean | Allow URI checking on services below RedfishVersion 1.6.0 |
| `debugging` | `--debugging` | boolean | Output debug statements to text log, otherwise it only uses INFO |
| `schema_directory` | `--schema_directory` | string | Directory for local schema files |
| `mockup` | `--mockup` | string | Enables insertion of local mockup resources to replace missing, incomplete, or incorrect implementations retrieved from the service that may hinder full validation coverage |
| `collectionlimit` | `--collectionlimit` | string | Sets a limit to links gathered from collections by type, e.g. `ComputerSystem 20` limits ComputerSystemCollection to 20 links |
| `payload` | `--payload` | string | The mode to validate payloads ('Tree', 'Single', 'SingleFile', or 'TreeFile') followed by resource/filepath; see below. |
| `logdir` | `--logdir` | string | The directory for generated report files; default: 'logs'. |
| `oemcheck` | `--nooemcheck` | boolean | Whether to check OEM items on service; 'True' or 'False'. |
| `uricheck` | `--uricheck` | boolean | Allow URI checking on services below RedfishVersion 1.6.0; 'True' or 'False'. |
| `debugging` | `--debugging` | boolean | Output debug statements to text log, otherwise it only uses INFO; 'True' or 'False'. |
| `schema_directory` | `--schema_directory` | string | Directory for local schema files. |
| `mockup` | `--mockup` | string | Enables insertion of local mockup resources to replace missing, incomplete, or incorrect implementations retrieved from the service that may hinder full validation coverage. |
| `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. |

### Payload Option

Expand Down
100 changes: 0 additions & 100 deletions SelfSignedCerts.md

This file was deleted.

5 changes: 1 addition & 4 deletions config/example.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
[Tool]
Version = 2
Copyright = Redfish DMTF (c) 2021
verbose =

[Host]
Expand All @@ -18,5 +16,4 @@ logdir = ./logs
oemcheck = True
debugging = False
schema_directory = ./SchemaFiles/metadata
collectionlimit = LogLimit 20

collectionlimit = LogEntry 20
2 changes: 1 addition & 1 deletion redfish_service_validator/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def convert_config_to_args(args, config):
if option.lower() not in ['version', 'copyright']:
my_logger.error('Option {} not supported!'.format(option))
elif my_config[section][option] not in ['', None]:
if option.lower() == 'payload':
if option.lower() == 'payload' or option.lower() == 'collectionlimit':
setattr(args, option, my_config[section][option].split(' '))
else:
setattr(args, option, my_config[section][option])
Expand Down

0 comments on commit 90babbb

Please sign in to comment.