"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "octavia/tests/functional/db/test_repositories.py" between
octavia-7.1.1.tar.gz and octavia-8.0.0.tar.gz

About: OpenStack Octavia is an operator-grade reference implementation for Load Balancing as a Service (LBaaS).
The "Wallaby" series (latest release).

test_repositories.py  (octavia-7.1.1):test_repositories.py  (octavia-8.0.0)
skipping to change at line 187 skipping to change at line 187
pool = {'protocol': constants.PROTOCOL_HTTP, 'name': 'pool1', pool = {'protocol': constants.PROTOCOL_HTTP, 'name': 'pool1',
'description': 'desc1', 'description': 'desc1',
'lb_algorithm': constants.LB_ALGORITHM_ROUND_ROBIN, 'lb_algorithm': constants.LB_ALGORITHM_ROUND_ROBIN,
'enabled': True, 'operating_status': constants.ONLINE, 'enabled': True, 'operating_status': constants.ONLINE,
'project_id': uuidutils.generate_uuid(), 'project_id': uuidutils.generate_uuid(),
'id': uuidutils.generate_uuid(), 'id': uuidutils.generate_uuid(),
'provisioning_status': constants.ACTIVE, 'provisioning_status': constants.ACTIVE,
'tags': ['test_tag'], 'tags': ['test_tag'],
'tls_certificate_id': uuidutils.generate_uuid(), 'tls_certificate_id': uuidutils.generate_uuid(),
'tls_enabled': False, 'tls_ciphers': None, 'tls_enabled': False, 'tls_ciphers': None,
'tls_versions': None} 'tls_versions': None,
'alpn_protocols': None}
pool_dm = self.repos.create_pool_on_load_balancer( pool_dm = self.repos.create_pool_on_load_balancer(
self.session, pool, listener_id=self.listener.id) self.session, pool, listener_id=self.listener.id)
pool_dm_dict = pool_dm.to_dict() pool_dm_dict = pool_dm.to_dict()
# These are not defined in the sample pool dict but will # These are not defined in the sample pool dict but will
# be in the live data. # be in the live data.
del pool_dm_dict['members'] del pool_dm_dict['members']
del pool_dm_dict['health_monitor'] del pool_dm_dict['health_monitor']
del pool_dm_dict['session_persistence'] del pool_dm_dict['session_persistence']
del pool_dm_dict['listeners'] del pool_dm_dict['listeners']
del pool_dm_dict['load_balancer'] del pool_dm_dict['load_balancer']
skipping to change at line 221 skipping to change at line 222
'description': 'desc1', 'description': 'desc1',
'lb_algorithm': constants.LB_ALGORITHM_ROUND_ROBIN, 'lb_algorithm': constants.LB_ALGORITHM_ROUND_ROBIN,
'enabled': True, 'operating_status': constants.ONLINE, 'enabled': True, 'operating_status': constants.ONLINE,
'project_id': uuidutils.generate_uuid(), 'project_id': uuidutils.generate_uuid(),
'id': uuidutils.generate_uuid(), 'id': uuidutils.generate_uuid(),
'provisioning_status': constants.ACTIVE, 'provisioning_status': constants.ACTIVE,
'tags': ['test_tag'], 'tags': ['test_tag'],
'tls_certificate_id': uuidutils.generate_uuid(), 'tls_certificate_id': uuidutils.generate_uuid(),
'tls_enabled': False, 'tls_enabled': False,
'tls_ciphers': None, 'tls_ciphers': None,
'tls_versions': None} 'tls_versions': None,
'alpn_protocols': None}
sp = {'type': constants.SESSION_PERSISTENCE_HTTP_COOKIE, sp = {'type': constants.SESSION_PERSISTENCE_HTTP_COOKIE,
'cookie_name': 'cookie_monster', 'cookie_name': 'cookie_monster',
'pool_id': pool['id'], 'pool_id': pool['id'],
'persistence_granularity': None, 'persistence_granularity': None,
'persistence_timeout': None} 'persistence_timeout': None}
pool.update({'session_persistence': sp}) pool.update({'session_persistence': sp})
pool_dm = self.repos.create_pool_on_load_balancer( pool_dm = self.repos.create_pool_on_load_balancer(
self.session, pool, listener_id=self.listener.id) self.session, pool, listener_id=self.listener.id)
pool_dm_dict = pool_dm.to_dict() pool_dm_dict = pool_dm.to_dict()
# These are not defined in the sample pool dict but will # These are not defined in the sample pool dict but will
skipping to change at line 266 skipping to change at line 268
def test_update_pool_without_sp(self): def test_update_pool_without_sp(self):
pool = {'protocol': constants.PROTOCOL_HTTP, 'name': 'pool1', pool = {'protocol': constants.PROTOCOL_HTTP, 'name': 'pool1',
'description': 'desc1', 'description': 'desc1',
'lb_algorithm': constants.LB_ALGORITHM_ROUND_ROBIN, 'lb_algorithm': constants.LB_ALGORITHM_ROUND_ROBIN,
'enabled': True, 'operating_status': constants.ONLINE, 'enabled': True, 'operating_status': constants.ONLINE,
'project_id': uuidutils.generate_uuid(), 'project_id': uuidutils.generate_uuid(),
'id': uuidutils.generate_uuid(), 'id': uuidutils.generate_uuid(),
'provisioning_status': constants.ACTIVE, 'provisioning_status': constants.ACTIVE,
'tags': ['test_tag'], 'tls_enabled': False, 'tags': ['test_tag'], 'tls_enabled': False,
'tls_ciphers': None, 'tls_ciphers': None,
'tls_versions': None} 'tls_versions': None,
'alpn_protocols': None}
pool_dm = self.repos.create_pool_on_load_balancer( pool_dm = self.repos.create_pool_on_load_balancer(
self.session, pool, listener_id=self.listener.id) self.session, pool, listener_id=self.listener.id)
update_pool = {'protocol': constants.PROTOCOL_TCP, 'name': 'up_pool'} update_pool = {'protocol': constants.PROTOCOL_TCP, 'name': 'up_pool'}
new_pool_dm = self.repos.update_pool_and_sp( new_pool_dm = self.repos.update_pool_and_sp(
self.session, pool_dm.id, update_pool) self.session, pool_dm.id, update_pool)
pool_dm_dict = new_pool_dm.to_dict() pool_dm_dict = new_pool_dm.to_dict()
# These are not defined in the sample pool dict but will # These are not defined in the sample pool dict but will
# be in the live data. # be in the live data.
del pool_dm_dict['members'] del pool_dm_dict['members']
del pool_dm_dict['health_monitor'] del pool_dm_dict['health_monitor']
skipping to change at line 302 skipping to change at line 305
pool = {'protocol': constants.PROTOCOL_HTTP, 'name': 'pool1', pool = {'protocol': constants.PROTOCOL_HTTP, 'name': 'pool1',
'description': 'desc1', 'description': 'desc1',
'lb_algorithm': constants.LB_ALGORITHM_ROUND_ROBIN, 'lb_algorithm': constants.LB_ALGORITHM_ROUND_ROBIN,
'enabled': True, 'operating_status': constants.ONLINE, 'enabled': True, 'operating_status': constants.ONLINE,
'project_id': uuidutils.generate_uuid(), 'project_id': uuidutils.generate_uuid(),
'id': uuidutils.generate_uuid(), 'id': uuidutils.generate_uuid(),
'provisioning_status': constants.ACTIVE, 'provisioning_status': constants.ACTIVE,
'tags': ['test_tag'], 'tags': ['test_tag'],
'tls_certificate_id': uuidutils.generate_uuid(), 'tls_certificate_id': uuidutils.generate_uuid(),
'tls_enabled': False, 'tls_ciphers': None, 'tls_enabled': False, 'tls_ciphers': None,
'tls_versions': None} 'tls_versions': None,
'alpn_protocols': None}
sp = {'type': constants.SESSION_PERSISTENCE_HTTP_COOKIE, sp = {'type': constants.SESSION_PERSISTENCE_HTTP_COOKIE,
'cookie_name': 'cookie_monster', 'cookie_name': 'cookie_monster',
'pool_id': pool['id'], 'pool_id': pool['id'],
'persistence_granularity': None, 'persistence_granularity': None,
'persistence_timeout': None} 'persistence_timeout': None}
pool.update({'session_persistence': sp}) pool.update({'session_persistence': sp})
pool_dm = self.repos.create_pool_on_load_balancer( pool_dm = self.repos.create_pool_on_load_balancer(
self.session, pool, listener_id=self.listener.id) self.session, pool, listener_id=self.listener.id)
update_pool = {'protocol': constants.PROTOCOL_TCP, 'name': 'up_pool'} update_pool = {'protocol': constants.PROTOCOL_TCP, 'name': 'up_pool'}
update_sp = {'type': constants.SESSION_PERSISTENCE_SOURCE_IP} update_sp = {'type': constants.SESSION_PERSISTENCE_SOURCE_IP}
skipping to change at line 407 skipping to change at line 411
def test_update_pool_with_cert(self): def test_update_pool_with_cert(self):
pool = {'protocol': constants.PROTOCOL_HTTP, 'name': 'pool1', pool = {'protocol': constants.PROTOCOL_HTTP, 'name': 'pool1',
'description': 'desc1', 'description': 'desc1',
'lb_algorithm': constants.LB_ALGORITHM_ROUND_ROBIN, 'lb_algorithm': constants.LB_ALGORITHM_ROUND_ROBIN,
'enabled': True, 'operating_status': constants.ONLINE, 'enabled': True, 'operating_status': constants.ONLINE,
'project_id': uuidutils.generate_uuid(), 'project_id': uuidutils.generate_uuid(),
'id': uuidutils.generate_uuid(), 'id': uuidutils.generate_uuid(),
'provisioning_status': constants.ACTIVE, 'provisioning_status': constants.ACTIVE,
'tls_enabled': False, 'tls_ciphers': None, 'tls_enabled': False, 'tls_ciphers': None,
'tls_versions': None} 'tls_versions': None,
'alpn_protocols': None}
pool_dm = self.repos.create_pool_on_load_balancer( pool_dm = self.repos.create_pool_on_load_balancer(
self.session, pool, listener_id=self.listener.id) self.session, pool, listener_id=self.listener.id)
update_pool = {'tls_certificate_id': uuidutils.generate_uuid()} update_pool = {'tls_certificate_id': uuidutils.generate_uuid()}
new_pool_dm = self.repos.update_pool_and_sp( new_pool_dm = self.repos.update_pool_and_sp(
self.session, pool_dm.id, update_pool) self.session, pool_dm.id, update_pool)
pool_dm_dict = new_pool_dm.to_dict() pool_dm_dict = new_pool_dm.to_dict()
# These are not defined in the sample pool dict but will # These are not defined in the sample pool dict but will
# be in the live data. # be in the live data.
del pool_dm_dict['members'] del pool_dm_dict['members']
del pool_dm_dict['health_monitor'] del pool_dm_dict['health_monitor']
 End of changes. 5 change blocks. 
5 lines changed or deleted 10 lines changed or added

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