commit b65c0003ef36b6b603a306b22fe2cbc209ef538b
Author: Joseph Vazhappilly <email address hidden>
Date: Mon May 27 11:23:07 2024 -0400
Fix software cli upload command with HTTPClient
Software cli uses HTTPClient when endpoint and token are provided
in the command line. HTTPClient fails when doing upload file/s
as it is not using passed token and insecure option.
This change updates HTTPClient to use token and insecure option
when using upload/upload-dir commands and remove some unused
functions from the client.
Reviewed: https:/ /review. opendev. org/c/starlingx /update/ +/920553 /opendev. org/starlingx/ update/ commit/ b65c0003ef36b6b 603a306b22fe2cb c209ef538b
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit b65c0003ef36b6b 603a306b22fe2cb c209ef538b
Author: Joseph Vazhappilly <email address hidden>
Date: Mon May 27 11:23:07 2024 -0400
Fix software cli upload command with HTTPClient
Software cli uses HTTPClient when endpoint and token are provided
in the command line. HTTPClient fails when doing upload file/s
as it is not using passed token and insecure option.
This change updates HTTPClient to use token and insecure option
when using upload/upload-dir commands and remove some unused
functions from the client.
Test Plan: token=$ TOKEN \
--software- url=$URL upload-dir <dir>) token=$ TOKEN \
--software- url=$URL upload-dir <dir>)
--key- file=<key file> --cert-file=<cert file> \
--os-auth- token=$ TOKEN --software-url=$URL \
upload- dir <upload dir>)
PASS: Verify upload & upload-dir commands using software cli
(Eg. software --os-auth-
PASS: Verify upload & upload-dir commands using insecure cli
(Eg. software --insecure --os-auth-
PASS: Verify ca-file, cert-file, key-file options for upload
(Eg. software --ca-file=<ca file> \
Closes-Bug: 2067293
Story: 2010676
Task: 50197
Change-Id: I32264cfd2178d8 b75b02d4d1703c5 e36c94828d3
Signed-off-by: Joseph Vazhappilly <email address hidden>