ApexSensei

Drills Security & deployment

Gate a release with test evidence

A release gate fails closed: missing evidence counts as a failure.

Your task

Complete the release gate so it picks a test level and only allows promotion when the evidence is complete and clean.

public class AS_1E1E7AE44C28_ReleaseGate {
    public static String chooseTestLevel(Set<String> testNames) {
        return null;
    }

    public static Boolean canPromote(
        Integer componentErrors,
        Integer testFailures,
        String rollbackReference
    ) {
        return null;
    }
}

Requirements

  1. usesRunSpecifiedTestsForNames should pass
  2. fallsBackToRunLocalTests should pass
  3. blocksComponentErrors should pass
  4. blocksTestFailures should pass
  5. requiresRollbackReference should pass
  6. allowsCleanPromotion should pass
  7. comparesCountsToZero should pass

Sign in to open this drill