Skip to content

Instantly share code, notes, and snippets.

@remyleone
Created March 14, 2018 09:43
Show Gist options
  • Select an option

  • Save remyleone/ec86832f86229eb7d0c2f858f0801a74 to your computer and use it in GitHub Desktop.

Select an option

Save remyleone/ec86832f86229eb7d0c2f858f0801a74 to your computer and use it in GitHub Desktop.
import os
import requests
token = os.getenv('SCW_TOKEN', "Insert your API Token here if you don't want to define environment variable")
def test_metadata():
"""
Get basic information about your instance
"""
r = requests.get("http://169.254.42.42")
assert r.ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment