Skip to content

Commit

Permalink
feat: update humanitec source IPs
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneswuerbach committed Apr 17, 2024
1 parent 0c63181 commit 9748ba1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions internal/provider/source_ip_ranges_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions internal/provider/source_ip_ranges_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
),
},
},
Expand Down

0 comments on commit 9748ba1

Please sign in to comment.