flakiness analyzer: Add kms for encrypt/decrypt secret keys.

BUG=chromium:818020
TEST=Ran unittest.
Ran integration tests.

Change-Id: If18aaeedb2b138c91c42c2a843766997bc3196d7
Reviewed-on: https://chromium-review.googlesource.com/980805
Tested-by: Xixuan Wu <xixuan@chromium.org>
Reviewed-by: Paul Hobbs <phobbs@google.com>
Commit-Queue: Xixuan Wu <xixuan@chromium.org>
8 files changed
tree: 7c917deb5d895d4079c91e38fefc87f525f046c0
  1. bin/
  2. test_analyzer/
  3. .gitignore
  4. Pipfile
  5. Pipfile.lock
  6. PRESUBMIT.cfg
  7. pytest.ini
  8. README.md
README.md

Setup

  1. Download service account service secret files:

     gsutil cp -r gs://chromiumos-test-analyzer.appspot.com/credentials
     ./test_analyzer/
    

    It includes 2 json files, one for prod & one for staging instance.

  2. Install pipenv to create virtual environment for local tests:

     sudo pip install pipenv
    
  3. Try to run tests:

    For unittest:

     bin/run_unittests
    

    For integration test:

     bin/run_integration_tests