Comment 2 for bug 2067293

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to update (master)

Reviewed: https://review.opendev.org/c/starlingx/update/+/920553
Committed: https://opendev.org/starlingx/update/commit/b65c0003ef36b6b603a306b22fe2cbc209ef538b
Submitter: "Zuul (22348)"
Branch: master

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.

    Test Plan:
    PASS: Verify upload & upload-dir commands using software cli
              (Eg. software --os-auth-token=$TOKEN \
               --software-url=$URL upload-dir <dir>)
    PASS: Verify upload & upload-dir commands using insecure cli
              (Eg. software --insecure --os-auth-token=$TOKEN \
               --software-url=$URL upload-dir <dir>)
    PASS: Verify ca-file, cert-file, key-file options for upload
              (Eg. software --ca-file=<ca file> \
               --key-file=<key file> --cert-file=<cert file> \
               --os-auth-token=$TOKEN --software-url=$URL \
               upload-dir <upload dir>)

    Closes-Bug: 2067293

    Story: 2010676
    Task: 50197

    Change-Id: I32264cfd2178d8b75b02d4d1703c5e36c94828d3
    Signed-off-by: Joseph Vazhappilly <email address hidden>