Skip to content

Conversation

@sameer-crest
Copy link
Contributor

@sameer-crest sameer-crest commented Jun 8, 2023

Implemented sample for De-identify cloud storage.
Added test cases for the same with the mocking approach

Reference: link

Task List

  • These samples need new env variables for testing. Create the below env variables.

  • DLP_DEIDENTIFY_TEMPLATE = "test-deidentify-template" Create default de-identify template for unstructured file

  • DLP_STRUCTURED_DEIDENTIFY_TEMPLATE = "test-deidentify-template-structured" Create a de-identify template for structured files

  • DLP_IMAGE_REDACT_DEIDENTIFY_TEMPLATE = "image-redact-template" Create image redaction template for images

  • DLP_DATASET_ID = "dlp_test_dataset" Create BigQuery dataset

  • DLP_TABLE_ID = "deidentify_cloud_storage" Create BigQuery table

  • Updated the dlp/composer.json file. Run the below commands before running the test.

  • composer update

  • composer dump-autoload

@bshaffer

@snippet-bot
Copy link

snippet-bot bot commented Jun 8, 2023

Here is the summary of changes.

You are about to add 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Jun 8, 2023
@annadata annadata added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 12, 2023
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 12, 2023
@annadata annadata added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 15, 2023
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 15, 2023
@sameer-crest sameer-crest requested a review from bshaffer June 28, 2023 09:25
@annadata annadata added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 30, 2023
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 30, 2023
Co-authored-by: Brent Shaffer <[email protected]>
@sameer-crest sameer-crest requested a review from bshaffer July 3, 2023 05:10
@annadata annadata added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 5, 2023
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 5, 2023
@Avani-Thakker Avani-Thakker added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 11, 2023
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 11, 2023
@Avani-Thakker Avani-Thakker added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 12, 2023
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 12, 2023
@vishwarajanand vishwarajanand merged commit ec929af into GoogleCloudPlatform:main Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants