"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/unit/states/test_boto_apigateway.py" between
salt-2019.2.0.tar.gz and salt-2019.2.1.tar.gz

About: SaltStack is a systems management software for data center automation, cloud orchestration, server provisioning, configuration management and more. Community version.

test_boto_apigateway.py  (salt-2019.2.0):test_boto_apigateway.py  (salt-2019.2.1)
skipping to change at line 231 skipping to change at line 231
variables=dict()) variables=dict())
stages_stage2_ret = {'item': [stage2_ret]} stages_stage2_ret = {'item': [stage2_ret]}
no_stages_ret = {'item': []} no_stages_ret = {'item': []}
deployment1_ret = dict(createdDate=datetime.datetime(2015, 11, 17, 16, 33, 50), deployment1_ret = dict(createdDate=datetime.datetime(2015, 11, 17, 16, 33, 50),
description=('{\n' description=('{\n'
' "api_name": "unit test api",\n' ' "api_name": "unit test api",\n'
' "swagger_file": "temp-swagger-sample.ya ml",\n' ' "swagger_file": "temp-swagger-sample.ya ml",\n'
' "swagger_file_md5sum": "693c57997a12a24 46bb5c08c793d943c",\n' ' "swagger_file_md5sum": "55a948ff90ad80f f747ec91657c7a299",\n'
' "swagger_info_object": {\n' ' "swagger_info_object": {\n'
' "description": "salt boto apigatewa y unit test service",\n' ' "description": "salt boto apigatewa y unit test service",\n'
' "title": "salt boto apigateway unit test service",\n' ' "title": "salt boto apigateway unit test service",\n'
' "version": "0.0.0"\n' ' "version": "0.0.0"\n'
' }\n' ' }\n'
'}'), '}'),
id='kobnrb') id='kobnrb')
deployment2_ret = dict(createdDate=datetime.datetime(2015, 11, 17, 16, 33, 50), deployment2_ret = dict(createdDate=datetime.datetime(2015, 11, 17, 16, 33, 50),
description=('{\n' description=('{\n'
skipping to change at line 370 skipping to change at line 370
'fields': {'type': 'string' }, 'fields': {'type': 'string' },
'message': {'type': 'string '}, 'message': {'type': 'string '},
'code': {'type': 'integer', 'code': {'type': 'integer',
'format': 'int32'} 'format': 'int32'}
}}}, }}},
'swagger': '2.0'} 'swagger': '2.0'}
def __enter__(self): def __enter__(self):
self.swaggerfile = 'temp-swagger-sample.yaml' self.swaggerfile = 'temp-swagger-sample.yaml'
with salt.utils.files.fopen(self.swaggerfile, 'w') as fp_: with salt.utils.files.fopen(self.swaggerfile, 'w') as fp_:
salt.utils.yaml.safe_dump(self.swaggerdict, fp_) salt.utils.yaml.safe_dump(self.swaggerdict, fp_, default_flow_style= False)
return self.swaggerfile return self.swaggerfile
def __exit__(self, objtype, value, traceback): def __exit__(self, objtype, value, traceback):
os.remove(self.swaggerfile) os.remove(self.swaggerfile)
def __init__(self, create_invalid_file=False): def __init__(self, create_invalid_file=False):
if create_invalid_file: if create_invalid_file:
self.swaggerdict = TempSwaggerFile._tmp_swagger_dict.copy() self.swaggerdict = TempSwaggerFile._tmp_swagger_dict.copy()
# add an invalid top level key # add an invalid top level key
self.swaggerdict['invalid_key'] = 'invalid' self.swaggerdict['invalid_key'] = 'invalid'
skipping to change at line 406 skipping to change at line 406
cls.opts['grains'] = salt.loader.grains(cls.opts) cls.opts['grains'] = salt.loader.grains(cls.opts)
@classmethod @classmethod
def tearDownClass(cls): def tearDownClass(cls):
del cls.opts del cls.opts
def setup_loader_modules(self): def setup_loader_modules(self):
context = {} context = {}
utils = salt.loader.utils( utils = salt.loader.utils(
self.opts, self.opts,
whitelist=['boto', 'boto3', 'args', 'systemd', 'path', 'platform'], whitelist=['boto', 'boto3', 'args', 'systemd', 'path', 'platform', ' reg'],
context=context) context=context)
serializers = salt.loader.serializers(self.opts) serializers = salt.loader.serializers(self.opts)
self.funcs = salt.loader.minion_mods(self.opts, context=context, utils=u tils, whitelist=['boto_apigateway']) self.funcs = salt.loader.minion_mods(self.opts, context=context, utils=u tils, whitelist=['boto_apigateway'])
self.salt_states = salt.loader.states(opts=self.opts, functions=self.fun cs, utils=utils, whitelist=['boto_apigateway'], serializers=serializers) self.salt_states = salt.loader.states(opts=self.opts, functions=self.fun cs, utils=utils, whitelist=['boto_apigateway'], serializers=serializers)
return { return {
boto_apigateway: { boto_apigateway: {
'__opts__': self.opts, '__opts__': self.opts,
'__utils__': utils, '__utils__': utils,
'__salt__': self.funcs, '__salt__': self.funcs,
'__states__': self.salt_states, '__states__': self.salt_states,
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)