You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
URL includes authority. Note that quotations or an escape must be used for '$' and '#' characters, when using ODATA Uris.
24
28
25
29
## Execution
26
-
Upon execution, attempts to get an XML file at the URL given, and exits with 1
27
-
on bad URLs or non xml formatted files, then dereferences all reference URLs
28
-
in the file.
30
+
31
+
Upon execution, attempts to get an XML file at the URL given, and exits with 1 on bad URLs or non xml formatted files, then dereferences all reference URLs in the file.
29
32
30
33
Upon specifying --nochkcert, it will not attempt to verify any certification provided. --timeout may be used to increase request timeouts.
31
34
32
-
Upon specifying --alias, it will read a json-formatted file that provides an alias for URIs or URLs not currently published online,
33
-
and instead points to a local file.
34
-
For single files, a single URL may be mapped on the left hand side to point to a file stored on the right.
35
-
If a URL is appended with /\*, then it may point to a directory appended with /\* on the right, such that each file in the directory will be mapped to its own URL.
35
+
Upon specifying --alias, it will read a json-formatted file that provides an alias for URIs or URLs not currently published online, and instead points to a local file. For single files, a single URL may be mapped on the left hand side to point to a file stored on the right. If a URL is appended with /\*, then it may point to a directory appended with /\* on the right, such that each file in the directory will be mapped to its own URL.
36
36
37
37
For a simpler way to test one local file, please use the parameter --file, which will interpret the URL given as a locally stored file relative to the current work directory. This mode will not interpret a "host", and thus will fail if the stored file contains relative references.
38
38
39
39
Exits with success if the amount of missing references is zero.
# unused block to write a valid xml file instead of just printing to file
@@ -109,7 +110,7 @@ def getAlias(uri, aliasDict):
109
110
110
111
111
112
if__name__=="__main__":
112
-
argget=argparse.ArgumentParser(description='Tool that checks if reference contain all valid URLs')
113
+
argget=argparse.ArgumentParser(description='Redfish Reference Checker {}: A tool that checks if reference contain all valid URLs'.format(tool_version))
113
114
argget.add_argument('url', type=str, help='destination url to test')
114
115
argget.add_argument('--file', action='store_true', help='use url as filepath to local file')
115
116
argget.add_argument('--nochkcert', action='store_true', help='ignore check for certificate')
0 commit comments