~canonical-platform-qa/snappy-ecosystem-tests/fixing_ci

« back to all changes in this revision

Viewing changes to snappy_ecosystem_tests/tests/test_store_login.py

  • Committer: Heber Parrucci
  • Date: 2017-02-15 19:14:19 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: heber.parrucci@canonical.com-20170215191419-a3549ap02gflc8rj
Addressing review feedback regarding credentials:
Now it is read from a user config file that is outside the repo in the host machine. If that config is not found, then it reads the credentials from env variables.
The idea is to store the config with the credentials in a private repository, and then Jenkins will get it and store in the host machine when running the tests.
The same mechanism is used in ubuntu-system-tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 
42
42
        self.login()
43
43
        self.assertEqual(self.driver.title, "Your packages", "Failed to login")
44
 
        # TODO - fragile as there is no unique way to identify the dropdown arrow
 
44
        # TODO - fragile as there is no unique way to identify
 
45
        # the dropdown arrow
45
46
        self.logout()
46
47
        self.assertEqual(
47
48
            self.driver.title, "Sign in to see your packages",