From 5ad18f067f8e168ad0b3adad94755f852f8ced61 Mon Sep 17 00:00:00 2001 From: Paul Van Eck Date: Sun, 2 Oct 2016 01:31:46 -0700 Subject: [PATCH] Add tests to product page This patch updates the product page to include tests associated to versions of the product. This allows filtering results based on a product_id. Tests associated with private products will have their product information hidden. Change-Id: Ic5b6b45c9e3d14d9c2cb36a8eba72f2a6e31d2aa --- .../app/components/products/cloud.html | 3 + .../app/components/products/distro.html | 3 + .../products/partials/testsTable.html | 137 ++++++++++++++++++ .../components/products/productController.js | 108 ++++++++++++++ .../results-report/resultsReportController.js | 3 +- refstack-ui/tests/unit/ControllerSpec.js | 25 ++++ refstack/api/constants.py | 2 + refstack/api/controllers/products.py | 21 +-- refstack/api/controllers/results.py | 44 ++++-- refstack/db/api.py | 4 +- refstack/db/sqlalchemy/api.py | 19 ++- refstack/db/sqlalchemy/models.py | 17 ++- refstack/tests/api/test_products.py | 32 ++-- refstack/tests/api/test_results.py | 67 ++++++++- refstack/tests/unit/test_api.py | 3 +- refstack/tests/unit/test_db.py | 2 +- 16 files changed, 444 insertions(+), 46 deletions(-) create mode 100644 refstack-ui/app/components/products/partials/testsTable.html diff --git a/refstack-ui/app/components/products/cloud.html b/refstack-ui/app/components/products/cloud.html index 2040097e..4b8af445 100644 --- a/refstack-ui/app/components/products/cloud.html +++ b/refstack-ui/app/components/products/cloud.html @@ -1,4 +1,5 @@

Cloud Product

+
@@ -14,6 +15,8 @@
+
+