├── .github ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ └── test.yaml ├── .gitignore ├── .npmignore ├── .prettierrc ├── CHANGELOG.md ├── LICENSE ├── README.md ├── package.json ├── scripts ├── publish-container │ ├── Dockerfile │ └── cloudbuild.yaml ├── publish.sh ├── publish │ ├── cloudbuild.yaml │ ├── deploy_key.enc │ ├── hub.enc │ ├── npmrc.enc │ └── twitter.json.enc └── tweet.js ├── spec ├── app.spec.ts ├── cloudevent │ └── generate.ts ├── index.spec.ts ├── integration │ └── providers │ │ └── firestore.spec.ts ├── lifecycle.spec.ts ├── main.spec.ts ├── providers │ ├── database.spec.ts │ ├── firestore.spec.ts │ ├── https.spec.ts │ └── scheduled.spec.ts ├── secretmanager.spec.ts └── v2.spec.ts ├── src ├── app.ts ├── cloudevent │ ├── generate.ts │ ├── mocks │ │ ├── alerts │ │ │ ├── alerts-on-alert-published.ts │ │ │ ├── app-distribution-on-new-tester-ios-device-published.ts │ │ │ ├── billing-on-plan-automated-update-published.ts │ │ │ ├── billing-on-plan-update-published.ts │ │ │ ├── crashlytics-on-new-anr-issue-published.ts │ │ │ ├── crashlytics-on-new-fatal-issue-published.ts │ │ │ ├── crashlytics-on-new-nonfatal-issue-published.ts │ │ │ ├── crashlytics-on-regression-alert-published.ts │ │ │ ├── crashlytics-on-stability-digest-published.ts │ │ │ ├── crashlytics-on-velocity-alert-published.ts │ │ │ └── performance-on-threshold-alert-published.ts │ │ ├── database │ │ │ ├── database-on-value-created.ts │ │ │ ├── database-on-value-deleted.ts │ │ │ ├── database-on-value-updated.ts │ │ │ ├── database-on-value-written.ts │ │ │ ├── helpers.ts │ │ │ └── index.ts │ │ ├── eventarc │ │ │ └── eventarc-on-custom-event-published.ts │ │ ├── firestore │ │ │ ├── firestore-on-document-created-with-auth-context.ts │ │ │ ├── firestore-on-document-created.ts │ │ │ ├── firestore-on-document-deleted-with-auth-context.ts │ │ │ ├── firestore-on-document-deleted.ts │ │ │ ├── firestore-on-document-updated-with-auth-context.ts │ │ │ ├── firestore-on-document-updated.ts │ │ │ ├── firestore-on-document-written-with-auth-context.ts │ │ │ ├── firestore-on-document-written.ts │ │ │ ├── helpers.ts │ │ │ └── index.ts │ │ ├── helpers.ts │ │ ├── partials.ts │ │ ├── pubsub │ │ │ └── pubsub-on-message-published.ts │ │ ├── remoteconfig │ │ │ └── remote-config-on-config-updated.ts │ │ ├── storage │ │ │ ├── index.ts │ │ │ └── storage-data.ts │ │ └── testlab │ │ │ └── test-lab-on-test-matrix-completed.ts │ └── types.ts ├── features.ts ├── index.ts ├── lifecycle.ts ├── main.ts ├── providers │ ├── analytics.ts │ ├── auth.ts │ ├── database.ts │ ├── firestore.ts │ ├── pubsub.ts │ └── storage.ts ├── secretManager.ts ├── v1.ts └── v2.ts ├── tsconfig.json ├── tsconfig.release.json └── tslint.json /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/.github/CONTRIBUTING.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/.github/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/.github/workflows/test.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/.npmignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/.prettierrc -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/package.json -------------------------------------------------------------------------------- /scripts/publish-container/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/scripts/publish-container/Dockerfile -------------------------------------------------------------------------------- /scripts/publish-container/cloudbuild.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/scripts/publish-container/cloudbuild.yaml -------------------------------------------------------------------------------- /scripts/publish.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/scripts/publish.sh -------------------------------------------------------------------------------- /scripts/publish/cloudbuild.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/scripts/publish/cloudbuild.yaml -------------------------------------------------------------------------------- /scripts/publish/deploy_key.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/scripts/publish/deploy_key.enc -------------------------------------------------------------------------------- /scripts/publish/hub.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/scripts/publish/hub.enc -------------------------------------------------------------------------------- /scripts/publish/npmrc.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/scripts/publish/npmrc.enc -------------------------------------------------------------------------------- /scripts/publish/twitter.json.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/scripts/publish/twitter.json.enc -------------------------------------------------------------------------------- /scripts/tweet.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/scripts/tweet.js -------------------------------------------------------------------------------- /spec/app.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/spec/app.spec.ts -------------------------------------------------------------------------------- /spec/cloudevent/generate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/spec/cloudevent/generate.ts -------------------------------------------------------------------------------- /spec/index.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/spec/index.spec.ts -------------------------------------------------------------------------------- /spec/integration/providers/firestore.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/spec/integration/providers/firestore.spec.ts -------------------------------------------------------------------------------- /spec/lifecycle.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/spec/lifecycle.spec.ts -------------------------------------------------------------------------------- /spec/main.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/spec/main.spec.ts -------------------------------------------------------------------------------- /spec/providers/database.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/spec/providers/database.spec.ts -------------------------------------------------------------------------------- /spec/providers/firestore.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/spec/providers/firestore.spec.ts -------------------------------------------------------------------------------- /spec/providers/https.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/spec/providers/https.spec.ts -------------------------------------------------------------------------------- /spec/providers/scheduled.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/spec/providers/scheduled.spec.ts -------------------------------------------------------------------------------- /spec/secretmanager.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/spec/secretmanager.spec.ts -------------------------------------------------------------------------------- /spec/v2.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/spec/v2.spec.ts -------------------------------------------------------------------------------- /src/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/app.ts -------------------------------------------------------------------------------- /src/cloudevent/generate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/generate.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/alerts/alerts-on-alert-published.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/alerts/alerts-on-alert-published.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/alerts/app-distribution-on-new-tester-ios-device-published.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/alerts/app-distribution-on-new-tester-ios-device-published.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/alerts/billing-on-plan-automated-update-published.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/alerts/billing-on-plan-automated-update-published.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/alerts/billing-on-plan-update-published.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/alerts/billing-on-plan-update-published.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/alerts/crashlytics-on-new-anr-issue-published.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/alerts/crashlytics-on-new-anr-issue-published.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/alerts/crashlytics-on-new-fatal-issue-published.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/alerts/crashlytics-on-new-fatal-issue-published.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/alerts/crashlytics-on-new-nonfatal-issue-published.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/alerts/crashlytics-on-new-nonfatal-issue-published.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/alerts/crashlytics-on-regression-alert-published.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/alerts/crashlytics-on-regression-alert-published.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/alerts/crashlytics-on-stability-digest-published.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/alerts/crashlytics-on-stability-digest-published.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/alerts/crashlytics-on-velocity-alert-published.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/alerts/crashlytics-on-velocity-alert-published.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/alerts/performance-on-threshold-alert-published.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/alerts/performance-on-threshold-alert-published.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/database/database-on-value-created.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/database/database-on-value-created.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/database/database-on-value-deleted.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/database/database-on-value-deleted.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/database/database-on-value-updated.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/database/database-on-value-updated.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/database/database-on-value-written.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/database/database-on-value-written.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/database/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/database/helpers.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/database/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/database/index.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/eventarc/eventarc-on-custom-event-published.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/eventarc/eventarc-on-custom-event-published.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/firestore/firestore-on-document-created-with-auth-context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/firestore/firestore-on-document-created-with-auth-context.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/firestore/firestore-on-document-created.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/firestore/firestore-on-document-created.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/firestore/firestore-on-document-deleted-with-auth-context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/firestore/firestore-on-document-deleted-with-auth-context.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/firestore/firestore-on-document-deleted.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/firestore/firestore-on-document-deleted.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/firestore/firestore-on-document-updated-with-auth-context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/firestore/firestore-on-document-updated-with-auth-context.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/firestore/firestore-on-document-updated.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/firestore/firestore-on-document-updated.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/firestore/firestore-on-document-written-with-auth-context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/firestore/firestore-on-document-written-with-auth-context.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/firestore/firestore-on-document-written.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/firestore/firestore-on-document-written.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/firestore/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/firestore/helpers.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/firestore/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/firestore/index.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/helpers.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/partials.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/partials.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/pubsub/pubsub-on-message-published.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/pubsub/pubsub-on-message-published.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/remoteconfig/remote-config-on-config-updated.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/remoteconfig/remote-config-on-config-updated.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/storage/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/storage/index.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/storage/storage-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/storage/storage-data.ts -------------------------------------------------------------------------------- /src/cloudevent/mocks/testlab/test-lab-on-test-matrix-completed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/mocks/testlab/test-lab-on-test-matrix-completed.ts -------------------------------------------------------------------------------- /src/cloudevent/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/cloudevent/types.ts -------------------------------------------------------------------------------- /src/features.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/features.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/lifecycle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/lifecycle.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/providers/analytics.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/providers/analytics.ts -------------------------------------------------------------------------------- /src/providers/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/providers/auth.ts -------------------------------------------------------------------------------- /src/providers/database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/providers/database.ts -------------------------------------------------------------------------------- /src/providers/firestore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/providers/firestore.ts -------------------------------------------------------------------------------- /src/providers/pubsub.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/providers/pubsub.ts -------------------------------------------------------------------------------- /src/providers/storage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/providers/storage.ts -------------------------------------------------------------------------------- /src/secretManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/secretManager.ts -------------------------------------------------------------------------------- /src/v1.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/v1.ts -------------------------------------------------------------------------------- /src/v2.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/src/v2.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.release.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/tsconfig.release.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firebase/firebase-functions-test/HEAD/tslint.json --------------------------------------------------------------------------------