Skip to content

0.7 Post Deployment Tests

justkantyka edited this page Jun 16, 2016 · 3 revisions

Platform Tests

Prerequisite: To perform the following operations you need to log in to the platform as admin user.

  1. Choose >Operations from the main menu. Then select >Platform Tests from the sub menu.

    Operations Platform Tests Step 1

  2. Select tab: Run test suite. Fill in fields: Username, Password (it should be admin credentials). Then click on button: Run test suite.

    Operations Platform Tests Step 2

  3. Select tab: Test suites list. You will be able to see list of test suites with your tests run. Click on See results>> to see details of your run.

    Operations Platform Tests Step 3

  4. Details of tests run:

    List of tests with name pattern: test_functional.py::test_name will be displayed. You can click on sign ">" to check the details of failure test. Page is not refreshing automatically, so click on button Refresh to get the latest results.

    Operations Platform Tests Step 4

    Operations Platform Tests Step 4_1

  5. Test user:

    The test in this suite which tests the platforms ability to delete a user, can fail if you do not have at least one user in your organization with an Org Manager role. By default, an admin user is not considered an Org Manager. If there are no Org Manager users in your organization at the time of this test, you can add our test user: trusted.analytics.tester@gmail.com using a dedicated script. This user will have all needed roles which will allow the test to pass.

    • Clone repository: https://github.com/trustedanalytics/platform-tests
    • Install cf client: wget https://cli.run.pivotal.io/stable?release=debian64 -O cf-client.deb sudo dpkg -i cf-client.deb
    • Install uaac: sudo apt-get install rubygems-integration sudo gem install cf-uaac
    • Run script: cd deploy ./add-test-admin.sh <domain> <cf admin password> <reference org name> <reference space name> <password> where:
      • domain, e.g. gotapaas.eu
      • cf admin password -- cf password of user admin
      • reference org name (defaults to trustedanalytics)
      • reference space name (defaults to platform)
      • password

    For more information, please visit: https://github.com/trustedanalytics/platform-tests

Clone this wiki locally