Skip to content

Commit 62d5b82

Browse files
committed
Re-check FIRAAppCheckDebugToken
1 parent f936083 commit 62d5b82

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

FirebaseVertexAI/Tests/TestApp/Tests/Integration/IntegrationTests.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,18 @@ final class IntegrationTests: XCTestCase {
6464
storage = Storage.storage()
6565
}
6666

67+
func testDebugTokenProvided() {
68+
if ProcessInfo.processInfo.environment["FIRAAppCheckDebugToken"] == nil {
69+
XCTFail("No App Check debug token provided in FIRAAppCheckDebugToken.")
70+
}
71+
}
72+
73+
func testDebugTokenNotProvided() {
74+
if ProcessInfo.processInfo.environment["FIRAAppCheckDebugToken"] != nil {
75+
XCTFail("Token not provided; intentionally failing for testing.")
76+
}
77+
}
78+
6779
// MARK: - Generate Content
6880

6981
func testGenerateContent() async throws {

0 commit comments

Comments
 (0)