Merge branch 'main' into fix/sgrulesDetailsFetcher
commit
f363461641
|
@ -47,11 +47,11 @@
|
|||
<main>
|
||||
{{ if (lt .Coverage 100) }}
|
||||
<form role="search">
|
||||
<label for="search" class="visuallyhidden">Search Resources:</label>
|
||||
<input type="search" id="search" name="search" placeholder="Search Resources...">
|
||||
<label for="select" class="visuallyhidden">Select Resource Type:</label>
|
||||
<label for="search" class="visuallyhidden">Search resources by id:</label>
|
||||
<input type="search" id="search" name="search" placeholder="Search resources by id...">
|
||||
<label for="select" class="visuallyhidden">Select a resource type:</label>
|
||||
<select id="select" name="select">
|
||||
<option value="">Resource Type</option>
|
||||
<option value="">Select a resource type</option>
|
||||
{{ range $type := getResourceTypes }}
|
||||
<option value="{{$type}}">{{ $type }}</option>
|
||||
{{end}}
|
||||
|
|
|
@ -376,11 +376,11 @@ input[type="search"], select {
|
|||
<main>
|
||||
|
||||
<form role="search">
|
||||
<label for="search" class="visuallyhidden">Search Resources:</label>
|
||||
<input type="search" id="search" name="search" placeholder="Search Resources...">
|
||||
<label for="select" class="visuallyhidden">Select Resource Type:</label>
|
||||
<label for="search" class="visuallyhidden">Search resources by id:</label>
|
||||
<input type="search" id="search" name="search" placeholder="Search resources by id...">
|
||||
<label for="select" class="visuallyhidden">Select a resource type:</label>
|
||||
<select id="select" name="select">
|
||||
<option value="">Resource Type</option>
|
||||
<option value="">Select a resource type</option>
|
||||
|
||||
<option value="aws_unmanaged_resource">aws_unmanaged_resource</option>
|
||||
|
||||
|
|
|
@ -376,11 +376,11 @@ input[type="search"], select {
|
|||
<main>
|
||||
|
||||
<form role="search">
|
||||
<label for="search" class="visuallyhidden">Search Resources:</label>
|
||||
<input type="search" id="search" name="search" placeholder="Search Resources...">
|
||||
<label for="select" class="visuallyhidden">Select Resource Type:</label>
|
||||
<label for="search" class="visuallyhidden">Search resources by id:</label>
|
||||
<input type="search" id="search" name="search" placeholder="Search resources by id...">
|
||||
<label for="select" class="visuallyhidden">Select a resource type:</label>
|
||||
<select id="select" name="select">
|
||||
<option value="">Resource Type</option>
|
||||
<option value="">Select a resource type</option>
|
||||
|
||||
</select>
|
||||
<input type="reset" value="Reset Filters">
|
||||
|
|
|
@ -36,6 +36,7 @@ func (e *EC2RouteEnumerator) Enumerate() ([]resource.Resource, error) {
|
|||
routeId, _ := aws.CalculateRouteID(routeTable.RouteTableId, route.DestinationCidrBlock, route.DestinationIpv6CidrBlock)
|
||||
data := map[string]interface{}{
|
||||
"route_table_id": *routeTable.RouteTableId,
|
||||
"origin": *route.Origin,
|
||||
}
|
||||
if route.DestinationCidrBlock != nil && *route.DestinationCidrBlock != "" {
|
||||
data["destination_cidr_block"] = *route.DestinationCidrBlock
|
||||
|
|
|
@ -1850,10 +1850,12 @@ func TestEC2Route(t *testing.T) {
|
|||
{
|
||||
DestinationCidrBlock: awssdk.String("1.1.1.1/32"),
|
||||
GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
|
||||
Origin: awssdk.String("CreateRoute"),
|
||||
},
|
||||
{
|
||||
DestinationIpv6CidrBlock: awssdk.String("::/0"),
|
||||
GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
|
||||
Origin: awssdk.String("CreateRoute"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -1867,10 +1869,12 @@ func TestEC2Route(t *testing.T) {
|
|||
{
|
||||
DestinationCidrBlock: awssdk.String("0.0.0.0/0"),
|
||||
GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
|
||||
Origin: awssdk.String("CreateRoute"),
|
||||
},
|
||||
{
|
||||
DestinationIpv6CidrBlock: awssdk.String("::/0"),
|
||||
GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
|
||||
Origin: awssdk.String("CreateRoute"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -1890,10 +1894,12 @@ func TestEC2Route(t *testing.T) {
|
|||
{
|
||||
DestinationCidrBlock: awssdk.String("10.1.1.0/24"),
|
||||
GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
|
||||
Origin: awssdk.String("CreateRoute"),
|
||||
},
|
||||
{
|
||||
DestinationCidrBlock: awssdk.String("10.1.2.0/24"),
|
||||
GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
|
||||
Origin: awssdk.String("CreateRoute"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue