From 0666a6046651d71b537df3c9b618d854fb18c63b Mon Sep 17 00:00:00 2001 From: Kirill Date: Wed, 23 Oct 2024 14:25:30 +0000 Subject: [PATCH] fix: fixed test --- ...es__instance_type_m4_large_mac2_metal.json | 221 ------------------ .../aws/test/resources/service_quotas_test.py | 2 +- 2 files changed, 1 insertion(+), 222 deletions(-) diff --git a/plugins/aws/test/resources/files/ec2/describe-instance-types__instance_type_m4_large_mac2_metal.json b/plugins/aws/test/resources/files/ec2/describe-instance-types__instance_type_m4_large_mac2_metal.json index 062a1b82b2..093544ce9a 100644 --- a/plugins/aws/test/resources/files/ec2/describe-instance-types__instance_type_m4_large_mac2_metal.json +++ b/plugins/aws/test/resources/files/ec2/describe-instance-types__instance_type_m4_large_mac2_metal.json @@ -123,227 +123,6 @@ "legacy-bios", "uefi" ] - }, - { - "InstanceType": "i3en.3xlarge", - "CurrentGeneration": true, - "FreeTierEligible": false, - "SupportedUsageClasses": [ - "on-demand", - "spot" - ], - "SupportedRootDeviceTypes": [ - "ebs" - ], - "SupportedVirtualizationTypes": [ - "hvm" - ], - "BareMetal": false, - "Hypervisor": "nitro", - "ProcessorInfo": { - "SupportedArchitectures": [ - "x86_64" - ], - "SustainedClockSpeedInGhz": 3.1 - }, - "VCpuInfo": { - "DefaultVCpus": 12, - "DefaultCores": 6, - "DefaultThreadsPerCore": 2, - "ValidCores": [ - 2, - 4, - 6 - ], - "ValidThreadsPerCore": [ - 1, - 2 - ] - }, - "MemoryInfo": { - "SizeInMiB": 98304 - }, - "InstanceStorageSupported": true, - "InstanceStorageInfo": { - "TotalSizeInGB": 7500, - "Disks": [ - { - "SizeInGB": 7500, - "Count": 1, - "Type": "ssd" - } - ], - "NvmeSupport": "required", - "EncryptionSupport": "required" - }, - "EbsInfo": { - "EbsOptimizedSupport": "default", - "EncryptionSupport": "supported", - "EbsOptimizedInfo": { - "BaselineBandwidthInMbps": 3800, - "BaselineThroughputInMBps": 475, - "BaselineIops": 15000, - "MaximumBandwidthInMbps": 4750, - "MaximumThroughputInMBps": 593.75, - "MaximumIops": 20000 - }, - "NvmeSupport": "required" - }, - "NetworkInfo": { - "NetworkPerformance": "Up to 25 Gigabit", - "MaximumNetworkInterfaces": 4, - "MaximumNetworkCards": 1, - "DefaultNetworkCardIndex": 0, - "NetworkCards": [ - { - "NetworkCardIndex": 0, - "NetworkPerformance": "Up to 25 Gigabit", - "MaximumNetworkInterfaces": 4 - } - ], - "Ipv4AddressesPerInterface": 15, - "Ipv6AddressesPerInterface": 15, - "Ipv6Supported": true, - "EnaSupport": "required", - "EfaSupported": false, - "EncryptionInTransitSupported": true - }, - "PlacementGroupInfo": { - "SupportedStrategies": [ - "cluster", - "partition", - "spread" - ] - }, - "HibernationSupported": false, - "BurstablePerformanceSupported": false, - "DedicatedHostsSupported": true, - "AutoRecoverySupported": false, - "SupportedBootModes": [ - "legacy-bios", - "uefi" - ] - }, - { - "InstanceType": "inf1.24xlarge", - "CurrentGeneration": true, - "FreeTierEligible": false, - "SupportedUsageClasses": [ - "on-demand", - "spot" - ], - "SupportedRootDeviceTypes": [ - "ebs" - ], - "SupportedVirtualizationTypes": [ - "hvm" - ], - "BareMetal": false, - "Hypervisor": "nitro", - "ProcessorInfo": { - "SupportedArchitectures": [ - "x86_64" - ], - "SustainedClockSpeedInGhz": 2.5 - }, - "VCpuInfo": { - "DefaultVCpus": 96, - "DefaultCores": 48, - "DefaultThreadsPerCore": 2, - "ValidCores": [ - 2, - 4, - 6, - 8, - 10, - 12, - 14, - 16, - 18, - 20, - 22, - 24, - 26, - 28, - 30, - 32, - 34, - 36, - 38, - 40, - 42, - 44, - 46, - 48 - ], - "ValidThreadsPerCore": [ - 1, - 2 - ] - }, - "MemoryInfo": { - "SizeInMiB": 196608 - }, - "InstanceStorageSupported": false, - "EbsInfo": { - "EbsOptimizedSupport": "default", - "EncryptionSupport": "supported", - "EbsOptimizedInfo": { - "BaselineBandwidthInMbps": 19000, - "BaselineThroughputInMBps": 2375.0, - "BaselineIops": 80000, - "MaximumBandwidthInMbps": 19000, - "MaximumThroughputInMBps": 2375.0, - "MaximumIops": 80000 - }, - "NvmeSupport": "required" - }, - "NetworkInfo": { - "NetworkPerformance": "100 Gigabit", - "MaximumNetworkInterfaces": 11, - "MaximumNetworkCards": 1, - "DefaultNetworkCardIndex": 0, - "NetworkCards": [ - { - "NetworkCardIndex": 0, - "NetworkPerformance": "100 Gigabit", - "MaximumNetworkInterfaces": 11 - } - ], - "Ipv4AddressesPerInterface": 30, - "Ipv6AddressesPerInterface": 30, - "Ipv6Supported": true, - "EnaSupport": "required", - "EfaSupported": true, - "EfaInfo": { - "MaximumEfaInterfaces": 1 - }, - "EncryptionInTransitSupported": true - }, - "PlacementGroupInfo": { - "SupportedStrategies": [ - "cluster", - "partition", - "spread" - ] - }, - "InferenceAcceleratorInfo": { - "Accelerators": [ - { - "Count": 16, - "Name": "Inferentia", - "Manufacturer": "AWS" - } - ] - }, - "HibernationSupported": false, - "BurstablePerformanceSupported": false, - "DedicatedHostsSupported": true, - "AutoRecoverySupported": true, - "SupportedBootModes": [ - "legacy-bios", - "uefi" - ] } ] } \ No newline at end of file diff --git a/plugins/aws/test/resources/service_quotas_test.py b/plugins/aws/test/resources/service_quotas_test.py index 2d20ce4513..0da0b2a81c 100644 --- a/plugins/aws/test/resources/service_quotas_test.py +++ b/plugins/aws/test/resources/service_quotas_test.py @@ -23,7 +23,7 @@ def test_instance_type_quotas() -> None: _, builder = round_trip_for(AwsServiceQuota, "usage", "quota_type", collect_also=[AwsEc2Instance]) for _, it in builder.global_instance_types.items(): builder.add_node(it, {}) - expect_quotas(builder, 7) + expect_quotas(builder, 5) def test_volume_type_quotas() -> None: