Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions integration_test/functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export * from './database-tests';
export * from './auth-tests';
export * from './firestore-tests';
export * from './https-tests';
// export * from './remoteConfig-tests';
export * from './remoteConfig-tests';
export * from './storage-tests';
const numTests = Object.keys(exports).length; // Assumption: every exported function is its own test.

Expand Down Expand Up @@ -127,25 +127,25 @@ export const integrationTests: any = functions
// Invoke a callable HTTPS trigger.
callHttpsTrigger('callableTests', { foo: 'bar', testId }, baseUrl),
// A Remote Config update to trigger the Remote Config tests.
// admin.credential
// .applicationDefault()
// .getAccessToken()
// .then(accessToken => {
// const options = {
// hostname: 'firebaseremoteconfig.googleapis.com',
// path: `/v1/projects/${firebaseConfig.projectId}/remoteConfig`,
// method: 'PUT',
// headers: {
// Authorization: 'Bearer ' + accessToken.access_token,
// 'Content-Type': 'application/json; UTF-8',
// 'Accept-Encoding': 'gzip',
// 'If-Match': '*',
// },
// };
// const request = https.request(options, resp => {});
// request.write(JSON.stringify({ version: { description: testId } }));
// request.end();
// }),
admin.credential
.applicationDefault()
.getAccessToken()
.then((accessToken) => {
const options = {
hostname: 'firebaseremoteconfig.googleapis.com',
path: `/v1/projects/${firebaseConfig.projectId}/remoteConfig`,
method: 'PUT',
headers: {
Authorization: 'Bearer ' + accessToken.access_token,
'Content-Type': 'application/json; UTF-8',
'Accept-Encoding': 'gzip',
'If-Match': '*',
},
};
const request = https.request(options, (resp) => {});
request.write(JSON.stringify({ version: { description: testId } }));
request.end();
}),
// A storage upload to trigger the Storage tests
admin
.storage()
Expand Down