diff --git a/test/tasks/test_gapic.py b/test/tasks/test_gapic.py index 1f48c15f..c207f27d 100644 --- a/test/tasks/test_gapic.py +++ b/test/tasks/test_gapic.py @@ -188,7 +188,7 @@ def test_execute(self, exec_command, check_output): language='java', organization_name='google-cloud', package_metadata_yaml='/path/to/pmy.yaml', - discovery_doc="/path/to/compute.v1.json", + discovery_doc="compute.v1.json", toolkit_path='/path/to/toolkit', root_dir='root_dir' ) @@ -196,7 +196,7 @@ def test_execute(self, exec_command, check_output): ' '.join(['java -cp', '/path/to/toolkit/build/libs/gapic-generator-latest-fatjar.jar', 'com.google.api.codegen.GeneratorMain LEGACY_DISCOGAPIC_AND_PACKAGE', - '--discovery_doc=/path/to/compute.v1.json', + '--discovery_doc=root_dir/compute.v1.json', '--package_yaml2=/path/to/pmy.yaml --output=/path/to/output', '--language=java --gapic_yaml=/path/to/compute.yaml', ])