Skip to content

Bug: HTTPS URLs not supporting in existing python raft code #186

@Anjalimkuriakose

Description

@Anjalimkuriakose

Problem/Opportunity

For the L3 test cases execution of components, stream files are required. The existing Python RAFT code only supported HTTP and SFTP protocols, which caused an error when attempting to download via HTTPS.

python RAFT used: 1.1.1

Steps to reproduce

Setup raft and execute the testcases

Expected Behavior

Should download the streams via HTTPS.

Actual Behavior

Got error as self.log.error("Unsupported URL [{}]", url)

Notes (Optional)

Observations:

While running the test using the default outboundClient.py, the streams failed to download over HTTPS due to an 'unsupported URL' error.

Solutions:

Added a condition to handle HTTPS URLs in outboundClient.py, ensuring they are processed using the downloadHTTP method

    if url.startswith("https://") == True:
        return self.__downloadHTTP__( url, filename )

While executing the test automatically downloading the stream into the workspace and then copying the stream from workspace directory to target directory of the device.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions