Skip to content

Commit

Permalink
fix: fix use-rego-v1 rule violation
Browse files Browse the repository at this point in the history
  • Loading branch information
Angie Song committed Feb 13, 2024
1 parent f7166eb commit 75e311d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/abbey/functions/expire_after.rego
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package abbey.functions

import future.keywords.if
import rego.v1

# METADATA
# title: Expire After
Expand Down
2 changes: 1 addition & 1 deletion src/abbey/functions/expire_after_test.rego
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package abbey.functions_test

import data.abbey.functions
import future.keywords.if
import rego.v1

test_after_expired_duration if {
not functions.expire_after("1m") with data.system.abbey.target.grant.approved_at as "2023-01-01T01:00:00Z"
Expand Down
2 changes: 1 addition & 1 deletion src/abbey/functions/expire_at.rego
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package abbey.functions

import future.keywords.if
import rego.v1

# METADATA
# title: Expire At
Expand Down
2 changes: 1 addition & 1 deletion src/abbey/functions/expire_at_test.rego
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package abbey.functions_test

import data.abbey.functions
import future.keywords.if
import rego.v1

test_after_expired_at_threshold if {
not functions.expire_at("2023-01-01T02:00:00Z") with data.system.abbey.target.grant.approved_at as "2023-01-01T01:00:00Z"
Expand Down
3 changes: 1 addition & 2 deletions src/abbey/functions/member_of.rego
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package abbey.functions

import future.keywords.if
import future.keywords.in
import rego.v1

apps := [
"googleworkspace",
Expand Down
2 changes: 1 addition & 1 deletion src/abbey/functions/member_of_test.rego
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package abbey.functions_test

import data.abbey.functions
import future.keywords.if
import rego.v1

fixture := {
"googleworkspace": {"groups": [
Expand Down

0 comments on commit 75e311d

Please sign in to comment.