GithubHelp home page GithubHelp logo

Comments (7)

Itsindigo avatar Itsindigo commented on August 16, 2024 1

@andrewgy8 sounds like a good solution to me 👍

from rele.

andrewgy8 avatar andrewgy8 commented on August 16, 2024

Hey @Itsindigo ! Is this still an issue if you dont have the key GC_CREDENTIALS_PATH defined in your config?

from rele.

Itsindigo avatar Itsindigo commented on August 16, 2024

@andrewgy8 it will run if you delete the key, yes

from rele.

andrewgy8 avatar andrewgy8 commented on August 16, 2024

In that case Im not sure its a bug, as it is working as expected. Would clarifying the configuration options in the documentation solve this?

from rele.

Itsindigo avatar Itsindigo commented on August 16, 2024

Ah, sorry @andrewgy8 -- it is a bug. I forgot to clear out my .env and was still authenticating as a service account.

rele.config.setup({'APP_NAME': 'smart_comms_planner', 'MIDDLEWARE': ['rele.contrib.LoggingMiddleware', 'rele.contrib.FlaskMiddleware']}, flask_app=app)

This will bug with:

Exception has occurred: AttributeError
'Credentials' object has no attribute 'project_id'

Think a fix is needed

from rele.

Itsindigo avatar Itsindigo commented on August 16, 2024

I'll add some tests shortly.

How do I run the suite? I've sourced a virtualenv and installed the deps, running make test fails on these:

================================= short test summary info ==================================
FAILED tests/test_client.py::TestSubscriber::test_creates_subscription_with_default_ack_deadline_when_none_provided
FAILED tests/test_client.py::TestSubscriber::test_creates_subscription_with_custom_ack_deadline_when_provided
FAILED tests/test_config.py::TestConfig::test_parses_all_keys - AssertionError: assert No...
FAILED tests/test_config.py::TestConfig::test_inits_service_account_creds_when_credential_path_given
FAILED tests/test_config.py::TestConfig::test_sets_defaults_pulled_from_env - AssertionEr...
FAILED tests/test_worker.py::TestWorker::test_creates_subscription_with_custom_ack_deadline_from_environment
FAILED tests/test_worker.py::TestCreateAndRun::test_waits_forever_when_called_with_config_and_subs
FAILED tests/commands/test_runrele.py::TestRunReleCommand::test_calls_worker_start_and_setup_when_runrele
========================= 8 failed, 56 passed, 4 warnings in 1.46s =========================
make: *** [test] Error 1

from rele.

andrewgy8 avatar andrewgy8 commented on August 16, 2024

Was it fixed @Itsindigo ? In order to see why the tests are failing, I would have to see the stack trace or the failing out put of one of the tests.

from rele.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.