Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

upload screenshot to GCS Bucket #107

Merged
merged 1 commit into from
Feb 28, 2024
Merged

Conversation

adamfweidman
Copy link
Collaborator

@adamfweidman adamfweidman commented Feb 26, 2024

This change mainly introduces the uploadScreenshotToGCS() function and its helper getFolderNameFromStorageLocation() both of these functions are tested in the corresponding spec.ts file.

uploadScreenshotToGCS will be called within the checkLink function in navigation_func. This function will only be called if the user's screenshotCondition and link status align.

I've additionally added an assertion in an earlier test for code coverage reasons.

@adamfweidman adamfweidman force-pushed the take-screenshots branch 4 times, most recently from 23dcbd9 to bfbabc3 Compare February 27, 2024 19:36
@adamfweidman adamfweidman changed the title take-screenshots upload screenshot to GCS Bucket Feb 28, 2024
@adamfweidman adamfweidman merged commit 226b07c into final-blc-storage Feb 28, 2024
6 checks passed
adamfweidman added a commit that referenced this pull request Feb 28, 2024
adamfweidman added a commit that referenced this pull request Feb 28, 2024
adamfweidman added a commit that referenced this pull request Mar 20, 2024
adamfweidman added a commit that referenced this pull request Apr 19, 2024
* get-cloud-region (#100)

Add functionality to synthetics-sdk-api to extract cloud region during GCF execution

* stoage proto api (#101)

* expose resolveProjectId (#104)

* update to capture_condition (#109)

* chore(deps): bump ip from 1.1.8 to 1.1.9 (#105)

* chore(deps): bump ip from 1.1.8 to 1.1.9

Bumps [ip](https://github.com/indutny/node-ip) from 1.1.8 to 1.1.9.
- [Commits](indutny/node-ip@v1.1.8...v1.1.9)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Empty-Commit

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam Weidman <adamfweidman@google.com>

* add samples tags (#108)

* blc-api-integration-def (#102)

* resolveProjectId present (#106)

* take-screenshots (#107)

* rebase-capture-condition (#110)

* refactor-integrations (#112)

* sanitize strings (#113)

* Take and populate screenshot (#114)

* screenshots-prop

* broken_links.spec working

* fix naming

* pass-args

* response to comments

* change default (#118)

* update synthetics-sdk-api to point to new npm pkg

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
adamfweidman added a commit that referenced this pull request Apr 19, 2024
adamfweidman added a commit that referenced this pull request Apr 19, 2024
* blc-api-integration-def (#102)

* resolveProjectId present (#106)

* take-screenshots (#107)

* rebase-capture-condition (#110)

* refactor-integrations (#112)

* sanitize strings (#113)

* Take and populate screenshot (#114)

* screenshots-prop

* broken_links.spec working

* fix naming

* pass-args

* response to comments

* change default (#118)

* update synthetics-sdk-api to point to new npm pkg
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants