bahir-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ckadner <>
Subject [GitHub] bahir issue #48: [BAHIR-122] [PubSub] Make "ServiceAccountCredentials" reall...
Date Sat, 29 Jul 2017 03:33:42 GMT
Github user ckadner commented on the issue:
    @ire7715 -- I create a [Google API Service account](
and [added the generated key files](
to our Jenkins server. All your tests appear to be [enabled and complete successfully](
    [INFO] --- scalatest-maven-plugin:1.0:test (test) @ spark-streaming-pubsub_2.11 ---
    Discovery starting.
    Google Pub/Sub tests that actually send data has been enabled by setting the environment
    variable ENABLE_PUBSUB_TESTS to 1.
    This will create Pub/Sub Topics and Subscriptions in Google cloud platform.
    Please be aware that this may incur some Google cloud costs.
    Set the environment variable GCP_TEST_PROJECT_ID to the desired project.
    Discovery completed in 135 milliseconds.
    Run starting. Expected test count is: 10
    - should build application default
    - should build json service account
    - should provide json creds
    - should build p12 service account
    - should provide p12 creds
    - should build metadata service account
    - SparkGCPCredentials classes should be serializable
    Using project apache-bahir-pubsub for creating Pub/Sub topic and subscription for tests.
    - PubsubUtils API
    - pubsub input stream
    - pubsub input stream, create pubsub
    Run completed in 14 seconds, 143 milliseconds.
    Total number of tests run: 10
    Suites: completed 3, aborted 0
    Tests: succeeded 10, failed 0, canceled 0, ignored 0, pending 0
    All tests passed.
    Would you **please add a short paragraph** to the [PubSub README](
describing how to enable your unit tests by setting the environment variables (and how to
set up a Google API *service account*, generate *key files* and how to minimally configure
the *Roles* like "Pub/Sub Publisher", etc)? i.e.:
    mvn clean package -DskipTests -pl streaming-pubsub
    export GCP_TEST_ACCOUNT=""
    export GCP_TEST_PROJECT_ID="apache-bahir-pubsub"
    export GCP_TEST_JSON_KEY_PATH=/path/to/pubsub/credential/files/Apache-Bahir-PubSub-1234abcd.json

    export GCP_TEST_P12_KEY_PATH=/path/to/pubsub/credential/files/Apache-Bahir-PubSub-5678efgh.p12
    mvn test -pl streaming-pubsub
    **Thank you!**

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message