def test_rds_available_engine_upgrades(self): session_factory = self.replay_flight_data( 'test_rds_available_engine_upgrades', zdata=True) client = session_factory().client('rds') upgrades = rds._get_available_engine_upgrades(client) self.assertEqual(upgrades['postgres']['9.3.1'], '9.3.14') self.assertEqual(upgrades['sqlserver-ex']['10.50.6000.34.v1'], '10.50.6529.0.v1') upgrades = rds._get_available_engine_upgrades(client, major=True) self.assertEqual(upgrades['postgres']['9.3.1'], '9.4.9') self.assertEqual(upgrades['postgres']['9.4.9'], '9.5.4') self.assertEqual(upgrades['sqlserver-ex']['10.50.2789.0.v1'], '12.00.5000.0.v1')
def test_rds_available_engine_upgrades(self): session_factory = self.replay_flight_data( 'test_rds_available_engine_upgrades', zdata=True) client = session_factory().client('rds') upgrades = rds._get_available_engine_upgrades(client) self.assertEqual(upgrades['postgres']['9.3.1'], '9.3.14') self.assertEqual(upgrades['sqlserver-ex']['10.50.6000.34.v1'], '10.50.6529.0.v1') upgrades = rds._get_available_engine_upgrades(client, major=True) self.assertEqual(upgrades['postgres']['9.3.1'], '9.4.9') self.assertEqual(upgrades['postgres']['9.4.9'], '9.5.4') self.assertEqual(upgrades['sqlserver-ex']['10.50.2789.0.v1'], '12.00.5000.0.v1')