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 public file (#388)
Browse files Browse the repository at this point in the history
The previous file is removed since the parent project is deleted. Changed to use publicly available file.
  • Loading branch information
rogers140 committed Sep 2, 2021
1 parent d9ce91f commit 2dc9ed9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions samples/snippets/participant_management_test.py
Expand Up @@ -40,13 +40,11 @@ def test_analyze_content_text(capsys):
out, _ = capsys.readouterr()
assert 'Display Name: {}'.format(KNOWLEDGE_BASE_DISPLAY_NAME) in out

# Create documents. Note that you should get read permission of bucket gs://ruogu/parsed_5_24/7157212.html
# via Pantheon for service account (google application credential account) from here:
# https://pantheon.corp.google.com/storage/browser/ruogu/parsed_5_24/?project=agent-assistant-demo
# Create documents.
document_management.create_document(PROJECT_ID, knowledge_base_id,
DOCUMENT_DISPLAY_NAME, 'text/html',
'ARTICLE_SUGGESTION',
'gs://ruogu/parsed_5_24/7157212.html')
'https://support.google.com/googleshopping/answer/9116497')
out, _ = capsys.readouterr()
document_id = out.split('documents/')[1].split(' - MIME Type:')[0].rstrip()

Expand Down

0 comments on commit 2dc9ed9

Please sign in to comment.