Skip to content

Commit 075df19

Browse files
galz10parthea
andauthored
test(samples): replace the deleted gcs file with gcs file located in 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]>
1 parent 192fc77 commit 075df19

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dialogflow/participant_management_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@ def test_analyze_content_text(capsys):
4040
out, _ = capsys.readouterr()
4141
assert 'Display Name: {}'.format(KNOWLEDGE_BASE_DISPLAY_NAME) in out
4242

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

0 commit comments

Comments
 (0)