From 9748ba17421f90f759a868a3c89b6d36192efa4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20W=C3=BCrbach?= Date: Wed, 17 Apr 2024 11:34:04 +0200 Subject: [PATCH] feat: update humanitec source IPs --- internal/provider/source_ip_ranges_data_source.go | 7 +++++++ internal/provider/source_ip_ranges_data_source_test.go | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/internal/provider/source_ip_ranges_data_source.go b/internal/provider/source_ip_ranges_data_source.go index 5149478..a241d55 100644 --- a/internal/provider/source_ip_ranges_data_source.go +++ b/internal/provider/source_ip_ranges_data_source.go @@ -92,6 +92,13 @@ func (d *SourceIPRangesDataSource) Read(ctx context.Context, req datasource.Read "34.89.188.214/32", "34.159.140.35/32", "34.89.165.141/32", + + "34.32.134.107/32", + "34.91.7.12/32", + "34.91.109.253/32", + "34.141.184.227/32", + "34.147.1.204/32", + "35.204.216.33/32", } data.ID = types.StringValue(hashcode.Strings(humanitecSourceIPBlocks)) diff --git a/internal/provider/source_ip_ranges_data_source_test.go b/internal/provider/source_ip_ranges_data_source_test.go index f43a072..0e8830a 100644 --- a/internal/provider/source_ip_ranges_data_source_test.go +++ b/internal/provider/source_ip_ranges_data_source_test.go @@ -15,8 +15,8 @@ func TestAccSourceIPRangesDataSource(t *testing.T) { { Config: testAccSourceIPRangesDataSourceConfig, Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("data.humanitec_source_ip_ranges.test", "cidr_blocks.0", "34.141.77.162/32"), - resource.TestCheckResourceAttr("data.humanitec_source_ip_ranges.test", "cidr_blocks.#", "6"), + resource.TestCheckResourceAttr("data.humanitec_source_ip_ranges.test", "cidr_blocks.0", "34.141.184.227/32"), + resource.TestCheckResourceAttr("data.humanitec_source_ip_ranges.test", "cidr_blocks.#", "12"), ), }, },