Skip to content

Commit 6775077

Browse files
update preflight check permission for test commands (#1389)
1 parent 55fded7 commit 6775077

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/App/Fossa/PreflightChecks.hs

-3
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ preflightChecks cmd = context "preflight-checks" $ do
7070
void $
7171
errSupport (renderIt reportDefectMsg) $
7272
case cmd of
73-
TestChecks -> do
74-
tokenType <- getTokenType
75-
fullAccessTokenCheck tokenType
7673
AnalyzeChecks rev metadata -> do
7774
customBuildPermissions <- getCustomBuildPermissions rev metadata
7875
uploadBuildPermissionsCheck customBuildPermissions

test/App/Fossa/PreflightChecksSpec.hs

-5
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,9 @@ spec :: Spec
3636
spec = do
3737
describe "preflight checks" $ do
3838
it' "should pass all checks for test command" $ do
39-
expectFullAccessToken
4039
expectOrganizationWithPreflightChecks
4140
res <- ignoreDebug $ preflightChecks TestChecks
4241
res `shouldBe'` ()
43-
it' "should fail full access token check for test command" $ do
44-
expectOrganizationWithPreflightChecks
45-
expectPushToken
46-
expectFatal' $ ignoreDebug $ preflightChecks TestChecks
4742
it' "should pass all check for report command" $ do
4843
expectOrganizationWithPremiumSubscription
4944
expectFullAccessToken

0 commit comments

Comments
 (0)