-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move test packages and update linter.
- Loading branch information
Showing
4 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
package abbey.functions_test | ||
|
||
import data.abbey.functions | ||
import future.keywords.if | ||
|
||
test_after_expired_duration if { | ||
not expire_after("1m") with data.system.abbey.target.grant.approved_at as "2023-01-01T01:00:00Z" | ||
not functions.expire_after("1m") with data.system.abbey.target.grant.approved_at as "2023-01-01T01:00:00Z" | ||
with time.now_ns as 1672534900000000000 | ||
} | ||
|
||
test_at_expired_duration if { | ||
not expire_after("1m") with data.system.abbey.target.grant.approved_at as "2023-01-01T01:00:00Z" | ||
not functions.expire_after("1m") with data.system.abbey.target.grant.approved_at as "2023-01-01T01:00:00Z" | ||
with time.now_ns as 1672534860000000000 | ||
} | ||
|
||
test_before_expired_duration if { | ||
expire_after("1m") with data.system.abbey.target.grant.approved_at as "2023-01-01T01:00:00Z" | ||
functions.expire_after("1m") with data.system.abbey.target.grant.approved_at as "2023-01-01T01:00:00Z" | ||
with time.now_ns as 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
package abbey.functions_test | ||
|
||
import data.abbey.functions | ||
import future.keywords.if | ||
|
||
test_after_expired_at_threshold if { | ||
not expire_at("2023-01-01T02:00:00Z") with data.system.abbey.target.grant.approved_at as "2023-01-01T01:00:00Z" | ||
not functions.expire_at("2023-01-01T02:00:00Z") with data.system.abbey.target.grant.approved_at as "2023-01-01T01:00:00Z" | ||
with time.now_ns as 1672538500000000000 | ||
} | ||
|
||
test_on_expired_at_threshold if { | ||
not expire_at("2023-01-01T01:00:00Z") with data.system.abbey.target.grant.approved_at as "2023-01-01T01:00:00Z" | ||
not functions.expire_at("2023-01-01T01:00:00Z") with data.system.abbey.target.grant.approved_at as "2023-01-01T01:00:00Z" | ||
with time.now_ns as 1672538400000000000 | ||
} | ||
|
||
test_before_expired_at_threshold if { | ||
expire_at("2023-01-01T01:00:00Z") with data.system.abbey.target.grant.approved_at as "2023-01-01T01:00:00Z" | ||
functions.expire_at("2023-01-01T01:00:00Z") with data.system.abbey.target.grant.approved_at as "2023-01-01T01:00:00Z" | ||
with time.now_ns as 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters