-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcreate-integration-test-secrets-file.sh
executable file
·34 lines (32 loc) · 1.55 KB
/
create-integration-test-secrets-file.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
if [ -f ./.integration-test-secrets.sh ]; then
source ./.integration-test-secrets.sh
else
echo "warning: .integration-test-secrets.sh could not be found, please see README for instructions"
fi
cat > ./Tests/CryptomatorCloudAccessIntegrationTests/IntegrationTestSecrets.swift << EOM
//
// IntegrationTestSecrets.swift
// CryptomatorCloudAccessIntegrationTests
//
// Created by Tobias Hagemann on 20.05.20.
// Copyright © 2020 Skymatic GmbH. All rights reserved.
//
import CryptomatorCloudAccess
import Foundation
enum IntegrationTestSecrets {
static let boxClientId = "${BOX_CLIENT_ID}"
static let boxClientSecret = "${BOX_CLIENT_SECRET}"
static let boxEnterpriseId = "${BOX_ENTERPRISE_ID}"
static let dropboxAccessToken = "${DROPBOX_ACCESS_TOKEN}"
static let googleDriveClientId = "${GOOGLE_DRIVE_CLIENT_ID}"
static let googleDriveRefreshToken = "${GOOGLE_DRIVE_REFRESH_TOKEN}"
static let oneDriveClientId = "${ONEDRIVE_CLIENT_ID}"
static let oneDriveRedirectUri = "${ONEDRIVE_REDIRECT_URI_SCHEME}://auth"
static let oneDriveRefreshToken = "${ONEDRIVE_REFRESH_TOKEN}"
static let pCloudAccessToken = "${PCLOUD_ACCESS_TOKEN}"
static let pCloudHTTPAPIHostName = "${PCLOUD_HTTP_API_HOST_NAME}"
static let s3Credential = S3Credential(accessKey: "${S3_ACCESS_KEY}", secretKey: "${S3_SECRET_KEY}", url: URL(string: "${S3_URL}")!, bucket: "${S3_BUCKET}", region: "${S3_REGION}")
static let webDAVCredential = WebDAVCredential(baseURL: URL(string: "${WEBDAV_BASE_URL}")!, username: "${WEBDAV_USERNAME}", password: "${WEBDAV_PASSWORD}", allowedCertificate: nil)
}
EOM