Skip to content

Commit

Permalink
Merge pull request #123 from 4urcloud/dev-adrien-fix-testing-rules
Browse files Browse the repository at this point in the history
fix rules npm test
  • Loading branch information
aeppling authored Jan 19, 2024
2 parents defc952 + 02aa4cb commit 7d0768c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions Kexa/__tests__/rules/test1/rule-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2Instance
objectName: EC2Client.Instances
conditions:
- property: PublicIpAddress
condition: EQUAL
Expand All @@ -66,7 +66,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2Volume
objectName: EC2Client.Volumes
conditions:
- property: Attachments
condition: COUNT_SUP
Expand All @@ -76,7 +76,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2Instance
objectName: EC2Client.Instances
conditions:
- operator: NAND
rules:
Expand All @@ -91,7 +91,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2SG
objectName: EC2Client.SecurityGroups
conditions:
- property: IpPermissions
condition: ALL
Expand All @@ -104,7 +104,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2SG
objectName: EC2Client.SecurityGroups
conditions:
- property: IpPermissions
condition: ALL
Expand Down
10 changes: 5 additions & 5 deletions Kexa/__tests__/rules/test2/rule-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2Instance
objectName: EC2Client.Instances
conditions:
- property: PublicIpAddress
condition: EQUAL
Expand All @@ -66,7 +66,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2Volume
objectName: EC2Client.Volumes
conditions:
- property: Attachments
condition: COUNT_SUP
Expand All @@ -76,7 +76,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2Instance
objectName: EC2Client.Instances
conditions:
- operator: NAND
criteria:
Expand All @@ -91,7 +91,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2SG
objectName: EC2Client.SecurityGroups
conditions:
- property: IpPermissions
condition: ALL
Expand All @@ -104,7 +104,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2SG
objectName: EC2Client.SecurityGroups
conditions:
- property: IpPermissions
condition: ALL
Expand Down
10 changes: 5 additions & 5 deletions Kexa/__tests__/rules/test2/rule-test2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2Instance
objectName: EC2Client.Instances
conditions:
- property: PublicIpAddress
condition: EQUAL
Expand All @@ -66,7 +66,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2Volume
objectName: EC2Client.Volumes
conditions:
- property: Attachments
condition: COUNT_SUP
Expand All @@ -76,7 +76,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2Instance
objectName: EC2Client.Instances
conditions:
- operator: NAND
criteria:
Expand All @@ -91,7 +91,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2SG
objectName: EC2Client.SecurityGroups
conditions:
- property: IpPermissions
condition: ALL
Expand All @@ -104,7 +104,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2SG
objectName: EC2Client.SecurityGroups
conditions:
- property: IpPermissions
condition: ALL
Expand Down
10 changes: 5 additions & 5 deletions Kexa/__tests__/rules/test3/rule-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2Instance
objectName: EC2Client.Instances
conditions:
- property: PublicIpAddress
condition: EQUAL
Expand All @@ -59,7 +59,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2Volume
objectName: EC2Client.Volumes
conditions:
- property: Attachments
condition: COUNT_SUP
Expand All @@ -69,7 +69,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2Instance
objectName: EC2Client.Instances
conditions:
- operator: NAND
rules:
Expand All @@ -84,7 +84,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2SG
objectName: EC2Client.SecurityGroups
conditions:
- property: IpPermissions
condition: ALL
Expand All @@ -97,7 +97,7 @@
applied: false
level: 1
cloudProvider: aws
objectName: ec2SG
objectName: EC2Client.SecurityGroups
conditions:
- property: IpPermissions
condition: ALL
Expand Down

0 comments on commit 7d0768c

Please sign in to comment.