run-tests fails in check_environment() if no credentials have been sourced

Bug #1319703 reported by Vincent Ladeuil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu CI Engine
Fix Released
High
Vincent Ladeuil

Bug Description

  ERROR: Missing required environment variables:
    CI_OAUTH_CONSUMER_KEY
    OS_USERNAME
    CI_LAUNCHPAD_PPA_OWNER
    CI_LAUNCHPAD_USER
    CI_OAUTH_TOKEN
    CI_OAUTH_TOKEN_SECRET
  Please ensure the novarc file has been sourced.

If run-tests is used without sourcing valid credentials it fails hard without displaying the test failures/errors nor the run summary.

Tags: airline

Related branches

Revision history for this message
Evan (ev) wrote :

I just ran into this myself when trying to list all the tests or run the unit tests for the intercom charm, neither of which need cloud credentials.

Vincent Ladeuil (vila)
Changed in uci-engine:
status: Triaged → Fix Committed
Vincent Ladeuil (vila)
Changed in uci-engine:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.