Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating sauce connect api #260

Merged
merged 3 commits into from
Aug 19, 2024
Merged

updating sauce connect api #260

merged 3 commits into from
Aug 19, 2024

Conversation

waggledans
Copy link
Contributor

@waggledans waggledans commented Aug 15, 2024

One-line summary

Related to Issue: #240

Adding an API to get available Sauce Connect versions

Description

  • Getting available Sauce Connect versions is the first step for adding SC5 support

  • Another supporting change added in this MR is allowing query parameters containing an underscore my_param=value. Before, the code assumed that query parameters are camel-cased myParam=value

  • regenerated interface.md file

Output example

$ bin/sl scVersions 5.0.1 darwin-arm64
{
    "downloads": {
        "linux": {
            "download_url": "https://saucelabs.com/downloads/sauce-connect/5.1.1/sauce-connect-5.1.1_linux.x86_64.tar.gz",
            "sha256": "6247e61e39ff054cf524341a681f4045c557be79bcf63c8c501e634ef2d54a41"
        },
        "linux-arm64": {
            "download_url": "https://saucelabs.com/downloads/sauce-connect/5.1.1/sauce-connect-5.1.1_linux.aarch64.tar.gz",
            "sha256": "b4951cf64a724ceb03cf0ae676a35a0ca721210c0e42426384dcec23159f1fe5"
        },
        "osx": {
            "download_url": "https://saucelabs.com/downloads/sauce-connect/5.1.1/sauce-connect-5.1.1_darwin.all.zip",
            "sha256": "d0a29f2df3277e8468c55810ef99685bed632ec6d2eed9fdbd941f2f8faf2354"
        },
        "win32": {
            "download_url": "https://saucelabs.com/downloads/sauce-connect/5.1.1/sauce-connect-5.1.1_windows.x86_64.zip",
            "sha256": "d3e692cca8b9311a4822e8a6f8715e787319e70dc5551cbb212f5be68d36f7bb"
        },
        "windows-arm64": {
            "download_url": "https://saucelabs.com/downloads/sauce-connect/5.1.1/sauce-connect-5.1.1_windows.aarch64.zip",
            "sha256": "fbb1b15c9a5ae6435cba0dc43f195df32764e5c7b1fcc6a2e625df58ea05642d"
        }
    },
    "info_url": "https://docs.saucelabs.com/secure-connections/sauce-connect-5/installation/",
    "latest_version": "5.1.1",
    "download_url": "https://saucelabs.com/downloads/sauce-connect/5.1.1/sauce-connect-5.1.1_darwin.all.zip",
    "sha256": "d0a29f2df3277e8468c55810ef99685bed632ec6d2eed9fdbd941f2f8faf2354",
    "status": "UPGRADE",
    "client_version": "5.0.1"
}

Types of Changes

  • New feature (non-breaking change which adds functionality)
  • Refactor/improvements

Review

List of tasks the reviewer must do to review the PR

  • Tests
  • Documentation

@waggledans waggledans merged commit c231cd5 into main Aug 19, 2024
6 checks passed
@waggledans waggledans deleted the dans-sc-api branch August 19, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants