Merge "Add description args for device profile create"
This commit is contained in:
commit
0078bc41e1
@ -25,6 +25,8 @@ class DeviceProfile(resource.Resource):
|
||||
|
||||
#: The timestamp when this device_profile was created.
|
||||
created_at = resource.Body('created_at')
|
||||
#: The description of the device profile
|
||||
description = resource.Body('description')
|
||||
#: The groups of the device profile
|
||||
groups = resource.Body('groups')
|
||||
#: The name of the device profile
|
||||
|
@ -27,7 +27,8 @@ FAKE = {
|
||||
"resources:CUSTOM_MEMORY": "200",
|
||||
"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['name'], sot.name)
|
||||
self.assertEqual(FAKE['groups'], sot.groups)
|
||||
self.assertEqual(FAKE['description'], sot.description)
|
||||
|
Loading…
x
Reference in New Issue
Block a user