Skip to content

Commit f103723

Browse files
Jean-Tiare Le Bigotyadutaf
authored andcommitted
chore: remove deprecated runabove API endpoint
Signed-off-by: Jean-Tiare Le Bigot <[email protected]>
1 parent d156956 commit f103723

File tree

6 files changed

+9
-65
lines changed

6 files changed

+9
-65
lines changed

README.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ to register your application. Depending the API you plan to use, visit:
7070
- `So you Start North America <https://ca.api.soyoustart.com/createApp/>`_
7171
- `Kimsufi Europe <https://eu.api.kimsufi.com/createApp/>`_
7272
- `Kimsufi North America <https://ca.api.kimsufi.com/createApp/>`_
73-
- `RunAbove <https://api.runabove.com/createApp/>`_
7473

7574
Once created, you will obtain an **application key (AK)** and an **application
7675
secret (AS)**.
@@ -104,7 +103,6 @@ Depending on the API you want to use, you may set the ``endpoint`` to:
104103
* ``soyoustart-ca`` for So you Start North America API
105104
* ``kimsufi-eu`` for Kimsufi Europe API
106105
* ``kimsufi-ca`` for Kimsufi North America API
107-
* ``runabove-ca`` for RunAbove API
108106

109107
See Configuration_ for more information on available configuration mechanisms.
110108

@@ -555,14 +553,6 @@ Kimsufi North America
555553
- **Create application credentials**: https://ca.api.kimsufi.com/createApp/
556554
- **Create script credentials** (all keys at once): https://ca.api.kimsufi.com/createToken/
557555

558-
Runabove
559-
--------
560-
561-
- **Community support**: https://community.runabove.com/
562-
- **Console**: https://api.runabove.com/console/
563-
- **Create application credentials**: https://api.runabove.com/createApp/
564-
- **High level SDK**: https://github.com/runabove/python-runabove
565-
566556
Related links
567557
=============
568558

docs/index.rst

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ to register your application. Depending the API you plan yo use, visit:
6767

6868
- `OVH Europe <https://eu.api.ovh.com/createApp/>`_
6969
- `OVH North-America <https://ca.api.ovh.com/createApp/>`_
70-
- `RunAbove <https://api.runabove.com/createApp/>`_
7170

7271
Once created, you will obtain an **application key (AK)** and an **application
7372
secret (AS)**.
@@ -97,7 +96,6 @@ Depending on the API you want to use, you may set the ``endpoint`` to:
9796

9897
* ``ovh-eu`` for OVH Europe API
9998
* ``ovh-ca`` for OVH North-America API
100-
* ``runabove-ca`` for RunAbove API
10199

102100
See Configuration_ for more inforamtions on available configuration mechanisms.
103101

@@ -290,42 +288,6 @@ pretty cool library to pretty print tabular data in a clean and easy way.
290288

291289
>>> pip install tabulate
292290

293-
List Runabove's instance
294-
------------------------
295-
296-
This example assumes an existing Configuration_ with valid ``application_key``,
297-
``application_secret`` and ``consumer_key``.
298-
299-
.. code:: python
300-
301-
# -*- encoding: utf-8 -*-
302-
303-
import ovh
304-
from tabulate import tabulate
305-
306-
# visit https://api.runabove.com/createApp/ to create your application's credentials
307-
client = ovh.Client(endpoint='runabove-ca')
308-
309-
# get list of all instances
310-
instances = client.get('/instance')
311-
312-
# pretty print instances status
313-
table = []
314-
for instance in instances:
315-
table.append([
316-
instance['name'],
317-
instance['ip'],
318-
instance['region'],
319-
instance['status'],
320-
])
321-
print tabulate(table, headers=['Name', 'IP', 'Region', 'Status'])
322-
323-
Before running this example, make sure you have the
324-
`tabulate <https://pypi.python.org/pypi/tabulate>`_ library installed. It's a
325-
pretty cool library to pretty print tabular data in a clean and easy way.
326-
327-
>>> pip install tabulate
328-
329291
Configuration
330292
=============
331293

@@ -452,13 +414,6 @@ OVH North America
452414
- **Console**: https://ca.api.ovh.com/console
453415
- **Create application credentials**: https://ca.api.ovh.com/createApp/
454416

455-
Runabove
456-
--------
457-
458-
- **console**: https://api.runabove.com/console/
459-
- **get application credentials**: https://api.runabove.com/createApp/
460-
- **high level SDK**: https://github.com/runabove/python-runabove
461-
462417
Related links
463418
=============
464419

ovh/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
'kimsufi-ca': 'https://ca.api.kimsufi.com/1.0',
7979
'soyoustart-eu': 'https://eu.api.soyoustart.com/1.0',
8080
'soyoustart-ca': 'https://ca.api.soyoustart.com/1.0',
81-
'runabove-ca': 'https://api.runabove.com/1.0',
8281
}
8382

8483
#: Default timeout for each request. 180 seconds connect, 180 seconds read.

tests/fixtures/pwd_ovh.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[default]
22
; general configuration: default endpoint
3-
endpoint=runabove-ca
3+
endpoint=soyoustart-ca
44

5-
[runabove-ca]
6-
; Runabove is *local*, but OVH-EU is still available
5+
[soyoustart-ca]
6+
; Soyoustart is *local*, but OVH-EU is still available
77
application_key=This is a fake local application key
88
application_secret=This is a *real* local application key
99
consumer_key=I am locally kidding

tests/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
)
4747

4848
M_ENVIRON = {
49-
'OVH_ENDPOINT': 'runabove-ca',
49+
'OVH_ENDPOINT': 'soyoustart-ca',
5050
'OVH_APPLICATION_KEY': 'application key from environ',
5151
'OVH_APPLICATION_SECRET': 'application secret from environ',
5252
'OVH_CONSUMER_KEY': 'consumer key from from environ',
@@ -100,7 +100,7 @@ def test_init_from_config(self):
100100
with mock.patch.dict('os.environ', M_ENVIRON):
101101
api = Client()
102102

103-
self.assertEqual('https://api.runabove.com/1.0', api._endpoint)
103+
self.assertEqual('https://ca.api.soyoustart.com/1.0', api._endpoint)
104104
self.assertEqual(M_ENVIRON['OVH_APPLICATION_KEY'], api._application_key)
105105
self.assertEqual(M_ENVIRON['OVH_APPLICATION_SECRET'], api._application_secret)
106106
self.assertEqual(M_ENVIRON['OVH_CONSUMER_KEY'], api._consumer_key)

tests/test_config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ def test_real_lookup_path(self):
7070
def test_config_get_conf(self):
7171
conf = config.ConfigurationManager()
7272

73-
self.assertEqual('runabove-ca', conf.get('default', 'endpoint'))
73+
self.assertEqual('soyoustart-ca', conf.get('default', 'endpoint'))
7474
self.assertEqual('This is a *fake* global application key', conf.get('ovh-eu', 'application_key'))
7575
self.assertEqual('This is a *real* global application secret', conf.get('ovh-eu', 'application_secret'))
7676
self.assertEqual('I am kidding at home', conf.get('ovh-eu', 'consumer_key'))
77-
self.assertEqual('This is a fake local application key', conf.get('runabove-ca', 'application_key'))
78-
self.assertEqual('This is a *real* local application key', conf.get('runabove-ca', 'application_secret'))
79-
self.assertEqual('I am locally kidding', conf.get('runabove-ca', 'consumer_key'))
77+
self.assertEqual('This is a fake local application key', conf.get('soyoustart-ca', 'application_key'))
78+
self.assertEqual('This is a *real* local application key', conf.get('soyoustart-ca', 'application_secret'))
79+
self.assertEqual('I am locally kidding', conf.get('soyoustart-ca', 'consumer_key'))
8080

8181
self.assertTrue(conf.get('ovh-eu', 'non-existent') is None)
8282
self.assertTrue(conf.get('ovh-ca', 'application_key') is None)

0 commit comments

Comments
 (0)