Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

Commit

Permalink
test(samples): replace the deleted gcs file with gcs file located in …
Browse files Browse the repository at this point in the history
…cloud-samples-data (#390)

* Added Update Intent Snippet and Test

* Deleted Setting Env Vars

* Fixed Lint Issues

* Fixed Lint and Build Issue

* Fixed Build Issue

* Changed tests to pytests

* Removed delete and create agent from test

* Fixed Import Order

* Deleted unused import

* Removed Language from update_intent Snippet

* Added copyright

* Changed intent name to random name

* delete intent after testing

* fix test

* remove contains

* Added Create Intent

* fix lint

* test(samples): replace the deleted gcs file with public file

Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
galz10 and parthea committed Sep 7, 2021
1 parent 8497101 commit c9828d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions samples/snippets/participant_management_test.py
Expand Up @@ -40,11 +40,13 @@ def test_analyze_content_text(capsys):
out, _ = capsys.readouterr()
assert 'Display Name: {}'.format(KNOWLEDGE_BASE_DISPLAY_NAME) in out

# Create documents.
# Create documents. Note that you should get read permission of bucket gs://cloud-samples-data/dialogflow/participant_test.html
# via Pantheon for service account (google application credential account) from here:
# https://support.google.com/googleshopping/answer/9116497
document_management.create_document(PROJECT_ID, knowledge_base_id,
DOCUMENT_DISPLAY_NAME, 'text/html',
'ARTICLE_SUGGESTION',
'https://support.google.com/googleshopping/answer/9116497')
'gs://cloud-samples-data/dialogflow/participant_test.html')
out, _ = capsys.readouterr()
document_id = out.split('documents/')[1].split(' - MIME Type:')[0].rstrip()

Expand Down

0 comments on commit c9828d4

Please sign in to comment.