fix version map
This commit is contained in:
parent
b8bd294eb0
commit
6f1a437f66
|
@ -25,11 +25,11 @@ options:
|
|||
database-user:
|
||||
default: ironic
|
||||
type: string
|
||||
description: Username for Magnum database access
|
||||
description: Username for Ironic database access
|
||||
database:
|
||||
default: ironic
|
||||
type: string
|
||||
description: Database name for Magnum
|
||||
description: Database name for Ironic
|
||||
debug:
|
||||
default: False
|
||||
type: boolean
|
||||
|
@ -42,4 +42,4 @@ options:
|
|||
default: RegionOne
|
||||
type: string
|
||||
description: OpenStack Region
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# Copyright 2020 Cloudbase Solutions
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import collections
|
||||
|
@ -12,7 +10,7 @@ import charms_openstack.ip as os_ip
|
|||
|
||||
PACKAGES = [
|
||||
'ironic-api',
|
||||
'python-mysqldb',
|
||||
'python3-mysqldb',
|
||||
'python3-ironicclient']
|
||||
|
||||
IRONIC_DIR = "/etc/ironic/"
|
||||
|
@ -90,7 +88,7 @@ class IronicAPICharm(charms_openstack.charm.HAOpenStackCharm):
|
|||
# Package codename map for ironic-common
|
||||
package_codenames = {
|
||||
'ironic-common': collections.OrderedDict([
|
||||
('14', 'train'),
|
||||
('13', 'train'),
|
||||
('15', 'ussuri'),
|
||||
]),
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# Copyright 2018 Cloudbase Solutions
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import charms.reactive as reactive
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
sudo add-apt-repository ppa:juju/stable -y
|
||||
sudo apt-get update
|
||||
sudo apt-get install amulet python-requests -y
|
|
@ -1,35 +0,0 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import amulet
|
||||
import requests
|
||||
import unittest
|
||||
|
||||
|
||||
class TestCharm(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.d = amulet.Deployment()
|
||||
|
||||
self.d.add('charm-ironic')
|
||||
self.d.expose('charm-ironic')
|
||||
|
||||
self.d.setup(timeout=900)
|
||||
self.d.sentry.wait()
|
||||
|
||||
self.unit = self.d.sentry['charm-ironic'][0]
|
||||
|
||||
def test_service(self):
|
||||
# test we can access over http
|
||||
page = requests.get('http://{}'.format(self.unit.info['public-address']))
|
||||
self.assertEqual(page.status_code, 200)
|
||||
# Now you can use self.d.sentry[SERVICE][UNIT] to address each of the units and perform
|
||||
# more in-depth steps. Each self.d.sentry[SERVICE][UNIT] has the following methods:
|
||||
# - .info - An array of the information of that unit from Juju
|
||||
# - .file(PATH) - Get the details of a file on that unit
|
||||
# - .file_contents(PATH) - Get plain text output of PATH file from that unit
|
||||
# - .directory(PATH) - Get details of directory
|
||||
# - .directory_contents(PATH) - List files and folders in PATH on that unit
|
||||
# - .relation(relation, service:rel) - Get relation data from return service
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
Loading…
Reference in New Issue