Skip to content

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 <[email protected]>
  • Loading branch information
2 people authored and dandhlee committed Feb 6, 2023
1 parent 5492ed3 commit 4e34497
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dialogflow/participant_management_test.py
Original file line number Diff line number Diff line change
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 4e34497

Please sign in to comment.