Example #1
0
def create_profile(context, profile=sample_profile, **kwargs):
    data = parser.simple_parse(profile)
    data['user'] = context.user
    data['project'] = context.project
    data['domain'] = context.domain
    data.update(kwargs)
    return db_api.profile_create(context, data)
Example #2
0
def create_profile(context, profile=sample_profile, **kwargs):
    data = parser.simple_parse(profile)
    data['user'] = context.user
    data['project'] = context.project
    data['domain'] = context.domain
    data.update(kwargs)
    return db_api.profile_create(context, data)
Example #3
0
 def _create_profile(self, profile_id):
     values = {
         'id': profile_id,
         'type': 'os.heat.stack',
         'name': 'test-profile',
         'created_time': timeutils.utcnow(),
     }
     return db_api.profile_create(self.context, values)
Example #4
0
 def _create_profile(self, profile_id):
     values = {
         'id': profile_id,
         'type': 'os.heat.stack',
         'name': 'test-profile',
         'created_time': timeutils.utcnow(),
     }
     return db_api.profile_create(self.context, values)
 def _create_profile(self, profile_id):
     values = {
         'id': profile_id,
         'type': 'os.nova.server',
         'name': 'test-profile',
         'created_time': timeutils.utcnow(),
         'user': self.context.user,
         'project': self.context.project,
     }
     return db_api.profile_create(self.context, values)
Example #6
0
 def _create_profile(self, profile_id):
     values = {
         'id': profile_id,
         'type': 'os.nova.server-1.0',
         'name': 'test-profile',
         'spec': {
             'type': 'os.nova.server',
             'version': '1.0',
         }
     }
     return db_api.profile_create(self.context, values)
Example #7
0
 def _create_profile(self, profile_id):
     values = {
         'id': profile_id,
         'type': 'os.nova.server-1.0',
         'name': 'test-profile',
         'spec': {
             'type': 'os.nova.server',
             'version': '1.0',
         }
     }
     return db_api.profile_create(self.context, values)
Example #8
0
 def _create_profile(self, profile_id):
     values = {
         "id": profile_id,
         "type": "os.heat.stack-1.0",
         "name": "test-profile",
         "type": "os.heat.stack",
         "context": self.context.to_dict(),
         "spec": {"type": "os.heat.stack", "version": "1.0", "properties": {"foo": "bar"}},
         "user": self.context.user,
         "project": self.context.project,
     }
     return db_api.profile_create(self.context, values)
Example #9
0
 def _create_profile(self, profile_id):
     values = {
         'id': profile_id,
         'type': 'os.heat.stack-1.0',
         'name': 'test-profile',
         'type': 'os.heat.stack',
         'context': self.context.to_dict(),
         'spec': {
             'type': 'os.heat.stack',
             'version': '1.0',
             'properties': {
                 'foo': 'bar'
             }
         }
     }
     return db_api.profile_create(self.context, values)
Example #10
0
 def _create_profile(self, profile_id):
     values = {
         'id': profile_id,
         'type': 'os.heat.stack-1.0',
         'name': 'test-profile',
         'type': 'os.heat.stack',
         'context': self.context.to_dict(),
         'spec': {
             'type': 'os.heat.stack',
             'version': '1.0',
             'properties': {
                 'foo': 'bar'
             }
         }
     }
     return db_api.profile_create(self.context, values)
Example #11
0
def create_profile(context, profile=sample_profile, **kwargs):
    data = parser.simple_parse(profile)
    data.update(kwargs)
    return db_api.profile_create(context, data)
Example #12
0
def create_profile(context, profile=sample_profile, **kwargs):
    data = parser.simple_parse(profile)
    data.update(kwargs)
    return db_api.profile_create(context, data)