Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Pre release testing (ensuring we don't break RPs)

Jared Hirsch edited this page May 23, 2014 · 1 revision

Marketplace

(from bug 4078)

Testing Marketplace is tricky because, though they do have a staging setup that connects to persona staging (https://identity-stage-marketplace.allizom.org/), it's not always up, so you may have to/want to test against production.

For future reference, here's a simplified way to test Persona staging against production Marketplace.

  1. Create a new Firefox profile.

    • Set network.stricttransportsecurity.preloadlist to false in about:config
    • Disable popup blocking
  2. Edit /etc/hosts to point static.login.persona.org and login.persona.org to a Staging IP address

  3. Visit https://login.persona.org/ver.txt to ensure you're hitting Staging, and accept the self-signed SSL cert

  4. Visit https://login.persona.org/ to make sure everything loads correctly

  5. Visit https://marketplace.firefox.com, open the JavaScript Console, and execute: navigator.id.request({experimental_forceIssuer: 'login.anosrep.org'})

  6. Attempt to log in with <something>@mockmyid.com and <something>@mailinator.com. Both inboxes can be checked at https://<something>.mailinator.com

Expected Results:

  • You should be prompted to create a password.

  • You should be required to check a confirmation link sent via email for both the Mailinator and the MockMyId accounts.

  • The Persona window should successfully close itself, but you should not get logged into Marketplace.

Expected Issues:

  1. Clicking the "Sign in / Sign up" button on the Marketplace homepage will not work.

    The Persona popup will show an error right before sending a backed identity assertion. This is because Marketplace sets the issuer to 'login.persona.org', which Stage does not recognize as itself. As a result, /wsapi/cert_key will fail and the popup will display an error.

  2. Using navigator.id.request will not actually result in a successful login, though it will successfully attempt to log in.

    This is because Marketplace's backend doesn't have your same /etc/host hacks, and it will try to verify your identity certificate with production Persona.