Safe Haskell | None |
---|
Unittests for the job scheduler.
Synopsis
- genRateLimitReason :: Gen String
- case_parseReasonRateLimit :: Assertion
- prop_slotMapFromJob_conflicting_buckets :: Property
- case_reasonRateLimit :: Assertion
- prop_reasonRateLimit :: Property
- prop_filterRuleOrder :: Property
- case_matchPredicate :: Assertion
- prop_applyingFilter :: Property
- case_jobFiltering :: Assertion
- prop_jobFiltering :: Property
- testJQScheduler :: Test
Documentation
genRateLimitReason :: Gen String Source #
Test cases
case_parseReasonRateLimit :: Assertion Source #
Tests rate limit reason trail parsing.
prop_slotMapFromJob_conflicting_buckets :: Property Source #
Tests that "rateLimit:n:..." and "rateLimit:m:..." become different rate limiting buckets.
case_reasonRateLimit :: Assertion Source #
Tests some basic cases for reason rate limiting.
prop_reasonRateLimit :: Property Source #
Tests the specified properties of reasonRateLimit
, as defined in
`doc/design-optables.rst`.
prop_filterRuleOrder :: Property Source #
Tests that filter rule ordering is determined (solely) by priority, watermark and UUID, as defined in `doc/design-optables.rst`.
case_matchPredicate :: Assertion Source #
Tests common inputs for matchPredicate
, especially the predicates
and fields available to them as defined in the spec.
prop_applyingFilter :: Property Source #
Tests that jobs selected by applyingFilter
actually match
and have an effect (are not CONTINUE filters).
case_jobFiltering :: Assertion Source #
prop_jobFiltering :: Property Source #
Tests the specified properties of jobFiltering
, as defined in
`doc/design-optables.rst`.
testJQScheduler :: Test Source #