Skip to content

Commit

Permalink
Merge branch 'develop' into ID-813-tos-rolling-acceptance-window
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-in-a-Jar authored Oct 19, 2023
2 parents d710620 + a881098 commit 61d01f0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/verify_consumer_pacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,16 @@ jobs:
fi
git fetch
if [[ ! -z "${{ env.CHECKOUT_BRANCH }}" ]] && [[ ! -z "${{ env.CHECKOUT_SHA }}" ]]; then
echo "git checkout ${{ env.CHECKOUT_BRANCH }} ${{ env.CHECKOUT_SHA }}"
git checkout ${{ env.CHECKOUT_BRANCH }} ${{ env.CHECKOUT_SHA }}
echo "git checkout -b ${{ env.CHECKOUT_BRANCH }} ${{ env.CHECKOUT_SHA }}"
git checkout -b ${{ env.CHECKOUT_BRANCH }} ${{ env.CHECKOUT_SHA }} || echo "already in ${{ env.CHECKOUT_BRANCH }}"
echo "git branch"
git branch
else
if [[ "${{ github.event_name }}" == "push" ]]; then
if [[ "${{ github.event_name }}" == "push" ]] || [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "git checkout ${{ env.CURRENT_BRANCH }}"
git checkout ${{ env.CURRENT_BRANCH }}
else
echo "git checkout ${{ env.CURRENT_BRANCH }} ${{ env.CURRENT_SHA }}"
echo "git checkout -b ${{ env.CURRENT_BRANCH }} ${{ env.CURRENT_SHA }}"
git checkout -b ${{ env.CURRENT_BRANCH }} ${{ env.CURRENT_SHA }}
fi
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,16 @@ class SamProviderSpec
})
} yield ()

private def mockGetArbitraryPetServiceAccountToken(): IO[Unit] = for {
_ <- IO(
when {
googleExt.getArbitraryPetServiceAccountToken(any[SamUser], any[Set[String]], any[SamRequestContext])
} thenReturn {
Future.successful("aToken")
}
)
} yield ()

private def mockResourceActionPermission(action: ResourceAction, hasPermission: Boolean): IO[Unit] = for {
_ <- IO(
lenient()
Expand All @@ -142,7 +152,7 @@ class SamProviderSpec

private val providerStatesHandler: StateManagementFunction = StateManagementFunction {
case ProviderState(States.UserExists, _) =>
logger.debug(States.UserExists)
mockGetArbitraryPetServiceAccountToken().unsafeRunSync()
case ProviderState(States.SamOK, _) =>
mockCriticalSubsystemsStatus(true).unsafeRunSync()
case ProviderState(States.SamNotOK, _) =>
Expand Down

0 comments on commit 61d01f0

Please sign in to comment.