QA Tool: Add an env switch to disable certificates validation for use in testing

Bug #918746 reported by Gary Lasker
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Fix Released
Low
Gary Lasker
Oneiric
Fix Released
Undecided
Unassigned

Bug Description

It would be very useful for QA and devs to have the ability to disable certificates validation when testing with local/non-production servers. We need to add an environment variable such that we can switch this off if needed during testing.

Test case for Oneiric SRU:

NOTE: This is a QA mode feature only and will not affect normal operation, so the test case is to simply verify that there are no regressions.

1. Install the version of software-center in oneiric-proposed.
2. Launch Software Center and select the "For Purchase" popup menu item in the "All Software" toolbar item.
3. Select an enticing item from the list and click the "Buy" button (note you will not need to complete the purchase to verify correct operation).
4. Log in to your Ubuntu SSO account.
5. Select "Credit Card" as your method of payment.
6. Do not fill in any info in the screen that appears. Instead, just scroll down and click the "Cancel" link.
7. After a few seconds, the purchase will be canceled and you will be returned to the Software Center view for the item.

Related branches

Changed in software-center (Ubuntu):
importance: Undecided → Low
status: New → In Progress
assignee: nobody → Gary Lasker (gary-lasker)
status: In Progress → Fix Committed
summary: - QA Tool: Add the an env switch to disable certificates validation for
- use in testing
+ QA Tool: Add an env switch to disable certificates validation for use in
+ testing
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-center - 5.1.7

---------------
software-center (5.1.7) precise; urgency=low

  [ Anthony Lenton ]
  * lp:~elachuni/software-center/any-language:
    - add support to display reviews in any language
  * lp:~elachuni/software-center/reset-review-page:
    - Small bugfix to ensure that switching language or
      reviews sort method resets the reviews page, and
      added tests.
  * lp:~elachuni/software-center/relax-origin-distroseries:
    - provide "relaxed" mode for fetching reviews if the exact
      review matcher does not find anything (LP: #766951)
  * lp:~elachuni/software-center/disable-new-review:
    - This branch disables the "Submit a new review" button when
      you click it, and reenables it when the submit review dialog
      closes
  * lp:~elachuni/software-center/reviews-tests:
    - add several new tests for code in the review_gui_helper module

  [ Michael Vogt ]
  * lp:~mvo/software-center/improve-debug-in-piston-generic-helper:
    - improve debug output of piston-generic-helper and a README
      with examples how it can be used to debug server side issues
  * lp:~mvo/software-center/review-language-i18n:
    - make the language selection combo in the reviews widget
      nicer by adding a proper i18n name to it
  * lp:~mvo/software-center/trivial-move-gui-helpers:
    - move rnr_helpers.py to softwarecenter/ui/gtk3/review_gui_helper.py
      as it belongs there and add to POTFILE.in

  [ Michael Nelson ]
  * lp:~michael.nelson/software-center/833982-purchased-app-not-available,
    lp:~michael.nelson/software-center/917137-previous-purchases-empty-precise-2:
    - refactor/cleanup parser code and update for API 2.0 (LP: #917137)
  * lp:~michael.nelson/software-center/every-comm-app-already-purchased:
    - non-purchased apps should not have '(already purchased)'
      appended to name.
  * lp:~michael.nelson/software-center/833982-previous-purchase-no-feedback-really-this-time:
    - Implements the backend for bug 833982 so that a purchased application
      that is unsupported on the current system will be detected
  * lp:~michael.nelson/software-center/833982-previous-purchase-no-feedback-2:
    - ensure that the deb_line for the app points to the current distroseries

  [ Danny Tamez ]
  * lp:~zematynnad/software-center/rename_host_var_918270:
    - rename the env variable SOFTWARE_CENTER_BUY_HOST to the more
      correct SOFTWARE_CENTER_AGENT_HOST, but support the former as a
      fallback, update corresponding unit test (LP: #918270)
  * lp:~zematynnad/software-center/version_number_833877:
    - show version number of apps from the software-center-agent as
      well (LP: #833877)

  [ Gary Lasker ]
  * lp:~gary-lasker/software-center/staging-certs-2:
    - add new SOFTWARE_CENTER_FORCE_DISABLE_CERTS_CHECK environment that
      can be used to disable cert checking to run e.g. against a local dev
      instance (LP: #918746)
 -- Michael Vogt <email address hidden> Tue, 24 Jan 2012 16:13:36 +0100

Changed in software-center (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Gary, or anyone else affected,

Accepted software-center into oneiric-proposed. The package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in software-center (Ubuntu Oneiric):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Gary Lasker (gary-lasker) wrote :

I have verified that this bug is fixed in the version of software-center 5.0.6 in oneiric-proposed per the given test case.

I addition, I've verified that the given env switch is effective.

Thanks!

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-center - 5.0.6

---------------
software-center (5.0.6) oneiric-proposed; urgency=low

  [ Gary Lasker ]
  * lp:~gary-lasker/software-center/catalog-published-date-lp803028i-for-5.0:
    - use date_published value from the software-center-agent server
      so that for-purchase items appear correctly and in the proper order
      in What's New; include corresponding unit test (LP: #803028)

  [ Michael Vogt ]
  * backport fix from lp:~mvo/software-center/fix-refresh-of-whats-new
    to ensure that new apps from e.g. the software-center-agent are
    immediately displayed in the "Whats new" section of the lobby
    (LP: #949725)

software-center (5.0.5) oneiric-proposed; urgency=low

  [ Gary Lasker ]
  * lp:~gary-lasker/software-center/fix-lp913756-for-5.0:
    - do not offer to add an icon to the Unity launcher for packages
      that do not have an Exec entry in their corresponding desktop
      file, e.g. ubuntu-restricted-extras, wine (LP: #913756)
  * lp:~gary-lasker/software-center/staging-certs-2-for-5.0:
    - add SOFTWARE_CENTER_FORCE_DISABLE_CERTS_CHECK to allow QA easier
      testing (LP: #918746)

  [ Michael Vogt ]
  * lp:~mvo/software-center/fix-server-pagination:
    - reset server side review "page" when switching to a different
      app
  * lp:~mvo/software-center/expunge-cache-5.0:
    - fix invalid httplib cache entries (LP: #938736)

  [ Kiwinote ]
  * grab exhibits for the current series only (LP: #899257)
 -- Michael Vogt <email address hidden> Thu, 08 Mar 2012 09:07:20 +0100

Changed in software-center (Ubuntu Oneiric):
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.