Skip to content

Commit

Permalink
test: update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Pivkin <[email protected]>
  • Loading branch information
nikpivkin committed Aug 22, 2024
1 parent 794b51c commit 6a9fb51
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test/rego/azure_network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ var azureNetworkTestCases = testCases{
DestinationPorts: []network.PortRange{
{
Metadata: trivyTypes.NewTestMetadata(),
Start: 3310,
End: 3390,
Start: trivyTypes.IntTest(3310),
End: trivyTypes.IntTest(3390),
},
},
Protocol: trivyTypes.String("Tcp", trivyTypes.NewTestMetadata()),
Expand All @@ -54,8 +54,8 @@ var azureNetworkTestCases = testCases{
DestinationPorts: []network.PortRange{
{
Metadata: trivyTypes.NewTestMetadata(),
Start: 3310,
End: 3390,
Start: trivyTypes.IntTest(3310),
End: trivyTypes.IntTest(3390),
},
},
SourceAddresses: []trivyTypes.StringValue{
Expand Down Expand Up @@ -88,8 +88,8 @@ var azureNetworkTestCases = testCases{
DestinationPorts: []network.PortRange{
{
Metadata: trivyTypes.NewTestMetadata(),
Start: 3310,
End: 3390,
Start: trivyTypes.IntTest(3310),
End: trivyTypes.IntTest(3390),
},
},
Protocol: trivyTypes.String("Icmp", trivyTypes.NewTestMetadata()),
Expand Down Expand Up @@ -254,8 +254,8 @@ var azureNetworkTestCases = testCases{
DestinationPorts: []network.PortRange{
{
Metadata: trivyTypes.NewTestMetadata(),
Start: 22,
End: 22,
Start: trivyTypes.IntTest(22),
End: trivyTypes.IntTest(22),
},
},
SourceAddresses: []trivyTypes.StringValue{
Expand Down Expand Up @@ -283,8 +283,8 @@ var azureNetworkTestCases = testCases{
DestinationPorts: []network.PortRange{
{
Metadata: trivyTypes.NewTestMetadata(),
Start: 22,
End: 22,
Start: trivyTypes.IntTest(22),
End: trivyTypes.IntTest(22),
},
},
SourceAddresses: []trivyTypes.StringValue{
Expand Down Expand Up @@ -312,8 +312,8 @@ var azureNetworkTestCases = testCases{
DestinationPorts: []network.PortRange{
{
Metadata: trivyTypes.NewTestMetadata(),
Start: 22,
End: 22,
Start: trivyTypes.IntTest(22),
End: trivyTypes.IntTest(22),
},
},
SourceAddresses: []trivyTypes.StringValue{
Expand Down

0 comments on commit 6a9fb51

Please sign in to comment.