Skip to content

Commit

Permalink
run synth.py to fix system-test (#117)
Browse files Browse the repository at this point in the history
* remove unused kwargs from synth.py

* run synth.py
  • Loading branch information
jkwlui authored Sep 6, 2018
1 parent 4c531d0 commit b3e030e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 7 additions & 4 deletions packages/google-cloud-monitoring/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,21 +149,24 @@ jobs:
name: Decrypt credentials.
command: |
if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then
openssl aes-256-cbc -d -in .circleci/key.json.enc \
-out .circleci/key.json \
-k "${SYSTEM_TESTS_ENCRYPTION_KEY}"
for encrypted_key in .circleci/*.json.enc; do
openssl aes-256-cbc -d -in $encrypted_key \
-out $(echo $encrypted_key | sed 's/\.enc//') \
-k "${SYSTEM_TESTS_ENCRYPTION_KEY}"
done
fi
- run: *npm_install_and_link
- run:
name: Run system tests.
command: npm run system-test
environment:
GCLOUD_PROJECT: long-door-651
GOOGLE_APPLICATION_CREDENTIALS: .circleci/key.json
- run:
name: Remove unencrypted key.
command: |
if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then
rm .circleci/key.json
rm .circleci/*.json
fi
when: always
publish_npm:
Expand Down
11 changes: 4 additions & 7 deletions packages/google-cloud-monitoring/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,17 @@

logging.basicConfig(level=logging.DEBUG)

gapic = gcp.GAPICGenerator()
common_templates = gcp.CommonTemplates()

version = "v3"

library = gapic.node_library("monitoring", version,
config_path="/google/monitoring/artman_monitoring.yaml")
library = gapic.node_library(
"monitoring", version, config_path="/google/monitoring/artman_monitoring.yaml"
)

s.copy(library, excludes=["src/index.js", "README.md", "package.json"])

templates = common_templates.node_library(
package_name="@google-cloud/monitoring",
repo_name="googleapis/nodejs-monitoring")

templates = common_templates.node_library()
s.copy(templates)

"""
Expand Down

0 comments on commit b3e030e

Please sign in to comment.