Merge "Add description args for device profile create"
This commit is contained in:
@@ -25,6 +25,8 @@ class DeviceProfile(resource.Resource):
|
|||||||
|
|
||||||
#: The timestamp when this device_profile was created.
|
#: The timestamp when this device_profile was created.
|
||||||
created_at = resource.Body('created_at')
|
created_at = resource.Body('created_at')
|
||||||
|
#: The description of the device profile
|
||||||
|
description = resource.Body('description')
|
||||||
#: The groups of the device profile
|
#: The groups of the device profile
|
||||||
groups = resource.Body('groups')
|
groups = resource.Body('groups')
|
||||||
#: The name of the device profile
|
#: The name of the device profile
|
||||||
|
|||||||
@@ -27,7 +27,8 @@ FAKE = {
|
|||||||
"resources:CUSTOM_MEMORY": "200",
|
"resources:CUSTOM_MEMORY": "200",
|
||||||
"trait:CUSTOM_TRAIT_ALWAYS": "required",
|
"trait:CUSTOM_TRAIT_ALWAYS": "required",
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
'description': 'description_test'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -51,3 +52,4 @@ class TestDeviceProfile(base.TestCase):
|
|||||||
self.assertEqual(FAKE['uuid'], sot.uuid)
|
self.assertEqual(FAKE['uuid'], sot.uuid)
|
||||||
self.assertEqual(FAKE['name'], sot.name)
|
self.assertEqual(FAKE['name'], sot.name)
|
||||||
self.assertEqual(FAKE['groups'], sot.groups)
|
self.assertEqual(FAKE['groups'], sot.groups)
|
||||||
|
self.assertEqual(FAKE['description'], sot.description)
|
||||||
|
|||||||
Reference in New Issue
Block a user