{"action":"closed","issue":{"url":"https://api.github.com/repos/circleci/circleci-docs/issues/2540","repository_url":"https://api.github.com/repos/circleci/circleci-docs","labels_url":"https://api.github.com/repos/circleci/circleci-docs/issues/2540/labels{/name}","comments_url":"https://api.github.com/repos/circleci/circleci-docs/issues/2540/comments","events_url":"https://api.github.com/repos/circleci/circleci-docs/issues/2540/events","html_url":"https://github.com/circleci/circleci-docs/issues/2540","id":346363628,"node_id":"MDU6SXNzdWUzNDYzNjM2Mjg=","number":2540,"title":"Sauce labs sample commands not correct","user":{"login":"gst-zhilun","id":40302390,"node_id":"MDQ6VXNlcjQwMzAyMzkw","avatar_url":"https://avatars0.githubusercontent.com/u/40302390?v=4","gravatar_id":"","url":"https://api.github.com/users/gst-zhilun","html_url":"https://github.com/gst-zhilun","followers_url":"https://api.github.com/users/gst-zhilun/followers","following_url":"https://api.github.com/users/gst-zhilun/following{/other_user}","gists_url":"https://api.github.com/users/gst-zhilun/gists{/gist_id}","starred_url":"https://api.github.com/users/gst-zhilun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gst-zhilun/subscriptions","organizations_url":"https://api.github.com/users/gst-zhilun/orgs","repos_url":"https://api.github.com/users/gst-zhilun/repos","events_url":"https://api.github.com/users/gst-zhilun/events{/privacy}","received_events_url":"https://api.github.com/users/gst-zhilun/received_events","type":"User","site_admin":false},"labels":[{"id":814489866,"node_id":"MDU6TGFiZWw4MTQ0ODk4NjY=","url":"https://api.github.com/repos/circleci/circleci-docs/labels/incorrect","name":"incorrect","color":"f1c40f","default":false}],"state":"closed","locked":false,"assignee":{"login":"smart-alek","id":5043885,"node_id":"MDQ6VXNlcjUwNDM4ODU=","avatar_url":"https://avatars0.githubusercontent.com/u/5043885?v=4","gravatar_id":"","url":"https://api.github.com/users/smart-alek","html_url":"https://github.com/smart-alek","followers_url":"https://api.github.com/users/smart-alek/followers","following_url":"https://api.github.com/users/smart-alek/following{/other_user}","gists_url":"https://api.github.com/users/smart-alek/gists{/gist_id}","starred_url":"https://api.github.com/users/smart-alek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smart-alek/subscriptions","organizations_url":"https://api.github.com/users/smart-alek/orgs","repos_url":"https://api.github.com/users/smart-alek/repos","events_url":"https://api.github.com/users/smart-alek/events{/privacy}","received_events_url":"https://api.github.com/users/smart-alek/received_events","type":"User","site_admin":false},"assignees":[{"login":"smart-alek","id":5043885,"node_id":"MDQ6VXNlcjUwNDM4ODU=","avatar_url":"https://avatars0.githubusercontent.com/u/5043885?v=4","gravatar_id":"","url":"https://api.github.com/users/smart-alek","html_url":"https://github.com/smart-alek","followers_url":"https://api.github.com/users/smart-alek/followers","following_url":"https://api.github.com/users/smart-alek/following{/other_user}","gists_url":"https://api.github.com/users/smart-alek/gists{/gist_id}","starred_url":"https://api.github.com/users/smart-alek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smart-alek/subscriptions","organizations_url":"https://api.github.com/users/smart-alek/orgs","repos_url":"https://api.github.com/users/smart-alek/repos","events_url":"https://api.github.com/users/smart-alek/events{/privacy}","received_events_url":"https://api.github.com/users/smart-alek/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-07-31T21:23:43Z","updated_at":"2018-08-06T18:08:48Z","closed_at":"2018-08-06T18:08:48Z","author_association":"NONE","body":"# Locations\r\nhttps://circleci.com/docs/2.0/browser-testing/#sauce-labs\r\n\r\n# Details\r\nSample Code below is for Wrapper around the Sauce Labs REST API for Node.js then run a script called sauce.\r\n```YAML\r\n      - run: \r\n          name: Install Sauce\r\n          command: npm install saucelabs\r\n      - run: \r\n          name: sauce testing\r\n          command: npm run-script sauce\r\n          environment:\r\n            SAUCE_USERNAME: # Refer to circleci.com/docs/2.0/env-vars documentation for info\r\n            SAUCE_ACCESS_KEY: # about setting up environment variables for auth secrets\r\n```\r\nWhat we need is to download sauce connect and set up the secure tunnel. Below is partial code from @eddiewebb repo circleci-challenge config.yml and is what should be inside document. The link of that file is [this](https://github.com/eddiewebb/circleci-challenge/blob/master/.circleci/config.yml)\r\n``` YAML\r\n      - run:\r\n          name: Start SauceLabs Tunnel (required if testing on CircleCI container)\r\n          command: |\r\n            curl https://saucelabs.com/downloads/sc-4.4.12-linux.tar.gz -o saucelabs.tar.gz\r\n            tar -xzf saucelabs.tar.gz\r\n            cd sc-*\r\n            # startup saucelabs tunnel as background task (its a blocking command)\r\n            bin/sc -u ${SAUCELABS_USER} -k ${SAUCELABS_KEY} &\r\n            #wait for sauce tunnel up to 1 minute\r\n            wget --retry-connrefused --no-check-certificate -T 60 localhost:4445\r\n```\r\nAlso similar code can be found in v1.0 document "}}
{"actor":{"display_login":"smart-alek"}}