-
Notifications
You must be signed in to change notification settings - Fork 67
Conversation
PTAL |
test/tasks/test_gapic.py
Outdated
@@ -189,7 +189,8 @@ def test_execute(self, exec_command, check_output): | |||
organization_name='google-cloud', | |||
package_metadata_yaml='/path/to/pmy.yaml', | |||
discovery_doc="/path/to/compute.v1.json", | |||
toolkit_path='/path/to/toolkit' | |||
toolkit_path='/path/to/toolkit', | |||
root_dir='root_dir' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
b159cc3
to
2d9a8e6
Compare
2d9a8e6
to
dee435f
Compare
@@ -128,14 +128,13 @@ class DiscoGapicCodeGenTask(task_base.TaskBase): | |||
|
|||
def execute(self, language, toolkit_path, discovery_doc, | |||
gapic_yaml, package_metadata_yaml, | |||
gapic_code_dir, api_name, api_version, organization_name): | |||
gapic_code_dir, api_name, api_version, organization_name, root_dir): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
I might be missing something - it's unclear for me how the root dir will be used. Why it only applies to one parameter (discovery doc)? |
@alexander-fenster However, in discovery-artifact-manager, the relevant discovery document is not in the same directory path as the artman config. PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, let's go with this. LGTM
This allows the artman command line call to run from any directory, e.g. google-cloud-java, not just from inside the discovery_artifact_manager directory.