Esempio n. 1
0
 def setUpClass(cls):
     cls.transaction = TransactionContext(
         {
             '1': {
                 'cluster': {'id': 1},
                 'release': {'version': 'liberty-9.0'},
                 'openstack_version': 'liberty-9.0',
                 'public_ssl': {'hostname': 'localhost'},
                 'attribute': '1'
             }
         }
     )
     cls.context = task_serializer.Context(cls.transaction)
Esempio n. 2
0
 def setUpClass(cls):
     cls.context = task_serializer.Context(TransactionContext({
         '1': {
             'cluster': {'id': 1},
             'release': {'version': 'liberty-9.0'},
             'openstack_version': 'liberty-9.0',
             'public_ssl': {'hostname': 'localhost'},
             'attributes': {
                 'a_str': 'text1',
                 'a_int': 1
             }
         },
         '2': {
             'cluster': {'id': 2},
             'release': {'version': 'liberty-9.0'},
             'openstack_version': 'liberty-9.0',
             'public_ssl': {'hostname': 'localhost'},
             'attributes': {
                 'a_str': 'text2',
                 'a_int': 2
             }
         }
     }))