Created
March 14, 2018 09:44
-
-
Save remyleone/a9f99fe4bc1953871c0b35704f7f47e0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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_list_all_ips(): | |
| """ | |
| Request to list all IPs present on your account. | |
| """ | |
| r = requests.get("https://api.scaleway.com/ips", | |
| headers={'X-Auth-Token': token, | |
| "Content-Type": "application/json"}) | |
| print(r.text) | |
| assert r.ok |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment