| 
									
										
										
										
											2023-02-26 15:27:08 -01:00
										 |  |  | import boto3 | 
					
						
							| 
									
										
										
										
											2023-11-30 07:55:51 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-07 12:03:33 +00:00
										 |  |  | from moto import mock_aws | 
					
						
							| 
									
										
										
										
											2023-02-26 15:27:08 -01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-07 12:03:33 +00:00
										 |  |  | @mock_aws | 
					
						
							| 
									
										
										
										
											2023-02-26 15:27:08 -01:00
										 |  |  | def test_db_cluster_options(): | 
					
						
							|  |  |  |     # Verified against AWS on 23-02-2023 | 
					
						
							|  |  |  |     # We're not checking the exact data here, that is already done in TF | 
					
						
							|  |  |  |     client = boto3.client("neptune", region_name="us-east-1") | 
					
						
							|  |  |  |     response = client.describe_orderable_db_instance_options(Engine="neptune") | 
					
						
							| 
									
										
										
										
											2023-08-15 08:00:12 +00:00
										 |  |  |     assert len(response["OrderableDBInstanceOptions"]) == 286 | 
					
						
							| 
									
										
										
										
											2023-02-26 15:27:08 -01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     response = client.describe_orderable_db_instance_options( | 
					
						
							|  |  |  |         Engine="neptune", EngineVersion="1.0.2.1" | 
					
						
							|  |  |  |     ) | 
					
						
							| 
									
										
										
										
											2023-08-15 08:00:12 +00:00
										 |  |  |     assert len(response["OrderableDBInstanceOptions"]) == 0 | 
					
						
							| 
									
										
										
										
											2023-02-26 15:27:08 -01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     response = client.describe_orderable_db_instance_options( | 
					
						
							|  |  |  |         Engine="neptune", EngineVersion="1.0.3.0" | 
					
						
							|  |  |  |     ) | 
					
						
							| 
									
										
										
										
											2023-08-15 08:00:12 +00:00
										 |  |  |     assert len(response["OrderableDBInstanceOptions"]) == 12 |