diff --git a/FirebaseVertexAI/Tests/TestApp/Tests/Integration/Credentials.swift b/FirebaseVertexAI/Tests/TestApp/Tests/Integration/Credentials.swift new file mode 100644 index 00000000000..ce9f3542c64 --- /dev/null +++ b/FirebaseVertexAI/Tests/TestApp/Tests/Integration/Credentials.swift @@ -0,0 +1,29 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import Foundation + +// Copy the Google-internal file from: +// https://source.corp.google.com/piper///depot/google3/third_party/firebase/ios/Secrets/VertexAI/TestApp/Tests/Integration/Credentials.swift +// +// Alternatively, set up emails / passwords in Firebase Auth for a custom Firebase project. +enum Credentials { + // Auth User 1 + static let emailAddress1 = "" + static let emailPassword1 = "" + + // Auth User 2 + static let emailAddress2 = "" + static let emailPassword2 = "" +} diff --git a/FirebaseVertexAI/Tests/TestApp/Tests/Integration/ImagenIntegrationTests.swift b/FirebaseVertexAI/Tests/TestApp/Tests/Integration/ImagenIntegrationTests.swift index 5b2587743d4..779e8a295e7 100644 --- a/FirebaseVertexAI/Tests/TestApp/Tests/Integration/ImagenIntegrationTests.swift +++ b/FirebaseVertexAI/Tests/TestApp/Tests/Integration/ImagenIntegrationTests.swift @@ -28,8 +28,8 @@ import VertexAITestApp @Suite( .enabled( - if: ProcessInfo.processInfo.environment["VTXIntegrationImagen"] != nil, - "Only runs if the environment variable VTXIntegrationImagen is set." + if: ProcessInfo.processInfo.environment["VTXIntegrationImagen"] == "true", + "Only runs if the environment variable VTXIntegrationImagen is set to true." ), .serialized ) diff --git a/FirebaseVertexAI/Tests/TestApp/VertexAITestApp.xcodeproj/xcshareddata/xcschemes/VertexAITestApp-SPM.xcscheme b/FirebaseVertexAI/Tests/TestApp/VertexAITestApp.xcodeproj/xcshareddata/xcschemes/VertexAITestApp-SPM.xcscheme new file mode 100644 index 00000000000..fc4f57f1298 --- /dev/null +++ b/FirebaseVertexAI/Tests/TestApp/VertexAITestApp.xcodeproj/xcshareddata/xcschemes/VertexAITestApp-SPM.xcscheme @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +