Merge "Add description args for device profile create"

This commit is contained in:
Zuul 2021-09-01 17:25:23 +00:00 committed by Gerrit Code Review
commit 0078bc41e1
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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)