From edbe3568a052da8afd24b6877c4c6fdcc7627ba3 Mon Sep 17 00:00:00 2001 From: chenjiankun Date: Mon, 24 Jul 2017 04:13:56 +0000 Subject: Yardstick GUI & GUI deployment JIRA: YARDSTICK-758 As E release plan, we have the need of yardstick GUI. This patch is GUI front end code and deployment. The backend code is yardstick API. Change-Id: Ib15f78bcc50168c7828beff97256e9939c6da809 Signed-off-by: chenjiankun --- gui/app/views/container.html | 134 ++++++++++++ gui/app/views/content.html | 0 gui/app/views/environmentDetail.html | 143 +++++++++++++ gui/app/views/environmentList.html | 155 ++++++++++++++ gui/app/views/layout/footer.html | 5 + gui/app/views/layout/header.html | 43 ++++ gui/app/views/layout/sideNav.html | 141 ++++++++++++ gui/app/views/layout/sideNav2.html | 108 ++++++++++ gui/app/views/main.html | 174 +++++++++++++++ gui/app/views/main2.html | 174 +++++++++++++++ gui/app/views/modal/chooseContainer.html | 15 ++ gui/app/views/modal/deleteConfirm.html | 19 ++ gui/app/views/modal/environmentDialog.html | 330 +++++++++++++++++++++++++++++ gui/app/views/modal/projectCreate.html | 21 ++ gui/app/views/modal/suiteName.html | 18 ++ gui/app/views/modal/taskCreate.html | 134 ++++++++++++ gui/app/views/podupload.html | 136 ++++++++++++ gui/app/views/projectList.html | 57 +++++ gui/app/views/projectdetail.html | 97 +++++++++ gui/app/views/report.html | 56 +++++ gui/app/views/suite.html | 149 +++++++++++++ gui/app/views/suitedetail.html | 110 ++++++++++ gui/app/views/taskList.html | 62 ++++++ gui/app/views/taskmodify.html | 162 ++++++++++++++ gui/app/views/testcasechoose.html | 48 +++++ gui/app/views/testcasedetail.html | 110 ++++++++++ gui/app/views/testcaselist.html | 150 +++++++++++++ gui/app/views/uploadImage.html | 145 +++++++++++++ 28 files changed, 2896 insertions(+) create mode 100644 gui/app/views/container.html create mode 100644 gui/app/views/content.html create mode 100644 gui/app/views/environmentDetail.html create mode 100644 gui/app/views/environmentList.html create mode 100644 gui/app/views/layout/footer.html create mode 100644 gui/app/views/layout/header.html create mode 100644 gui/app/views/layout/sideNav.html create mode 100644 gui/app/views/layout/sideNav2.html create mode 100644 gui/app/views/main.html create mode 100644 gui/app/views/main2.html create mode 100644 gui/app/views/modal/chooseContainer.html create mode 100644 gui/app/views/modal/deleteConfirm.html create mode 100644 gui/app/views/modal/environmentDialog.html create mode 100644 gui/app/views/modal/projectCreate.html create mode 100644 gui/app/views/modal/suiteName.html create mode 100644 gui/app/views/modal/taskCreate.html create mode 100644 gui/app/views/podupload.html create mode 100644 gui/app/views/projectList.html create mode 100644 gui/app/views/projectdetail.html create mode 100644 gui/app/views/report.html create mode 100644 gui/app/views/suite.html create mode 100644 gui/app/views/suitedetail.html create mode 100644 gui/app/views/taskList.html create mode 100644 gui/app/views/taskmodify.html create mode 100644 gui/app/views/testcasechoose.html create mode 100644 gui/app/views/testcasedetail.html create mode 100644 gui/app/views/testcaselist.html create mode 100644 gui/app/views/uploadImage.html (limited to 'gui/app/views') diff --git a/gui/app/views/container.html b/gui/app/views/container.html new file mode 100644 index 000000000..b3d78bfb1 --- /dev/null +++ b/gui/app/views/container.html @@ -0,0 +1,134 @@ + + +
+
+
+ +

{{envName}} -- Container + + +

+ + +
+ + + + + +
+ +
+

No Container Data

+
+

Current Container

+ + + + + + + + + + + + + + + + + + + + +
namestatustimedelete
{{con.name}}{{con.status}}{{con.time}} + +
+
+
+ + + + + + + + + + +
+ + +
+ +
+ + + diff --git a/gui/app/views/content.html b/gui/app/views/content.html new file mode 100644 index 000000000..e69de29bb diff --git a/gui/app/views/environmentDetail.html b/gui/app/views/environmentDetail.html new file mode 100644 index 000000000..4d5f21c68 --- /dev/null +++ b/gui/app/views/environmentDetail.html @@ -0,0 +1,143 @@ + + +
+
+
+ + +

{{baseElementInfo.name}} -- Openrc + + +

+ + + + +
+ + +
+ + + +
+
+
+ +

+ You have already set up the openrc parameters +

+
+
+ + {{key}} : + {{value}} + +
+ +
+
+ +
+ +
+
+ + + + +
+ + + +
+ + + +
+
+ + +
+ +
+
+
+ + + +
+
+
+ + + +
+ + +
+ +
+ + + diff --git a/gui/app/views/environmentList.html b/gui/app/views/environmentList.html new file mode 100644 index 000000000..29273a724 --- /dev/null +++ b/gui/app/views/environmentList.html @@ -0,0 +1,155 @@ +
+ + + + +
+ +

Environments + +

+
+ + +
+
+
Name
+
Action
+ +
+ +
+
+ +
+ + + +
+ + +
+
+ + + +
+ +
+
+ +
+
+ + + + + + + +
+ + + + +
+ + + + diff --git a/gui/app/views/layout/footer.html b/gui/app/views/layout/footer.html new file mode 100644 index 000000000..cfdf74af3 --- /dev/null +++ b/gui/app/views/layout/footer.html @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/gui/app/views/layout/header.html b/gui/app/views/layout/header.html new file mode 100644 index 000000000..033322a62 --- /dev/null +++ b/gui/app/views/layout/header.html @@ -0,0 +1,43 @@ +
+ +
+ + + diff --git a/gui/app/views/layout/sideNav.html b/gui/app/views/layout/sideNav.html new file mode 100644 index 000000000..42dcbbc6e --- /dev/null +++ b/gui/app/views/layout/sideNav.html @@ -0,0 +1,141 @@ + + + + diff --git a/gui/app/views/layout/sideNav2.html b/gui/app/views/layout/sideNav2.html new file mode 100644 index 000000000..104a9c6cf --- /dev/null +++ b/gui/app/views/layout/sideNav2.html @@ -0,0 +1,108 @@ + + + diff --git a/gui/app/views/main.html b/gui/app/views/main.html new file mode 100644 index 000000000..d5f7a3af3 --- /dev/null +++ b/gui/app/views/main.html @@ -0,0 +1,174 @@ +
+
+
+
+ + +
+ +
+
    +
  1. + Project +
  2. +
  3. + Task +
  4. + +
  5. + Reporting +
  6. + +
+
+ + +
+ + + + + + + + + +
+ + + + diff --git a/gui/app/views/main2.html b/gui/app/views/main2.html new file mode 100644 index 000000000..661d604c6 --- /dev/null +++ b/gui/app/views/main2.html @@ -0,0 +1,174 @@ +
+
+
+
+ + +
+ +
+
    +
  1. + Project +
  2. +
  3. + Task +
  4. + +
  5. + Reporting +
  6. + +
+
+ + +
+ + + + + + + + + +
+ + + + diff --git a/gui/app/views/modal/chooseContainer.html b/gui/app/views/modal/chooseContainer.html new file mode 100644 index 000000000..4b857b22f --- /dev/null +++ b/gui/app/views/modal/chooseContainer.html @@ -0,0 +1,15 @@ +

Choose Containers

+
+ + + + \ No newline at end of file diff --git a/gui/app/views/modal/deleteConfirm.html b/gui/app/views/modal/deleteConfirm.html new file mode 100644 index 000000000..1659b884b --- /dev/null +++ b/gui/app/views/modal/deleteConfirm.html @@ -0,0 +1,19 @@ +
Confirm delete {{deleteName}} ?
+ +
+ + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/gui/app/views/modal/environmentDialog.html b/gui/app/views/modal/environmentDialog.html new file mode 100644 index 000000000..a5b88d240 --- /dev/null +++ b/gui/app/views/modal/environmentDialog.html @@ -0,0 +1,330 @@ + + +
+
+

Environment Name

+ + +
+ +
+
+ + +
+
+

{{name}} -- Openrc + + +

+ +
+ + +
+ +
+
+
+ +

+ You have already set up the openrc parameters +

+
+
+ + {{key}} : + {{value}} + +
+ +
+
+ +
+ +
+
+ + + + +
+ + + +
+ + + +
+
+ + + +
+ +
+
+
+ + + + +
+
+
+ + + +
+ + +
+ +
+
+
+ +

{{name}} -- Image + + + + +

+ + +
+ + + + + + + + + +
+

Current Images

+ +
+ + + + + + + + + + + + + + + + + + +
namesizestatustime
{{image.name}}{{image.size/1024}} mb{{image.status}}{{image.time}}
+
+ + +
+ + +
+
+ +
+
+
+ + +

{{name}} -- Pod File +
+ + + + +
+ +

+ +
+ + + + +
+ +
+

Current Pod Configuration

+ + + + + + + + + + + + + + + + + + + + + + + + +
ipnamepasswordroleuser
{{pod.ip}}{{pod.name}}{{pod.password}}{{pod.role}}{{pod.user}}
no data
+
+ + + + + + + + + + +
+ + +
+ +
+ +
+
+
+ +

{{name}} -- Container +
+ + + +
+ +

+ + +
+ + + + + + +
+ +
+

Current Contain

+ + + + + + + + + + + + + + + + + + +
namestatustime
{{con.name}}{{con.status}}{{con.time}}
+
+ + + + + + + + + + +
+ + +
+ +
+ + + + + + +
+ + + diff --git a/gui/app/views/modal/projectCreate.html b/gui/app/views/modal/projectCreate.html new file mode 100644 index 000000000..74839e798 --- /dev/null +++ b/gui/app/views/modal/projectCreate.html @@ -0,0 +1,21 @@ +
+ +

Enter Project Name

+ + +
+ +
+ + + +
+ + + diff --git a/gui/app/views/modal/suiteName.html b/gui/app/views/modal/suiteName.html new file mode 100644 index 000000000..981d24210 --- /dev/null +++ b/gui/app/views/modal/suiteName.html @@ -0,0 +1,18 @@ +

Enter Suite Name

+
You have choose: +
{{selected}}
+
+ + +
+ +
+ + + diff --git a/gui/app/views/modal/taskCreate.html b/gui/app/views/modal/taskCreate.html new file mode 100644 index 000000000..e7812cf2b --- /dev/null +++ b/gui/app/views/modal/taskCreate.html @@ -0,0 +1,134 @@ + +

Create Task

+
+
+
Name
+ +
+
+ +
+
+
+
Choose Environment : {{displayEnvName}}
+ +
+
+
+
+
{{env.name}}
+ + + + +
+ +
+
+ +
+ +
+
+
+
Source of Content
+ + + + +
+
+
Choose Source: {{selectCase}}
+ + +
+
+ +
+
+
+
+
{{test.Name}}
+
{{test.Description}}
+ + + +
+ +
+
+ +
+
+ +
+
+
+
{{suite}}
+ + + + +
+ +
+
+ +
+
+
+ +
+ + + +
+ + + + +
+
+ +
+ + +
+ + + diff --git a/gui/app/views/podupload.html b/gui/app/views/podupload.html new file mode 100644 index 000000000..99e83aca2 --- /dev/null +++ b/gui/app/views/podupload.html @@ -0,0 +1,136 @@ + + +
+
+
+ + + +

{{name}} -- Pod File + +

+ + +
+ + + + + + +
+ +
+

No Pod Configuration

+
+

Current Pod Configuration

+ + + + + + + + + + + + + + + + + + + + +
ipnamepasswordroleuser
{{pod.ip}}{{pod.name}}{{pod.password}}{{pod.role}}{{pod.user}}
+
+
+ + + + + + + + + + +
+ + +
+ +
+ + + diff --git a/gui/app/views/projectList.html b/gui/app/views/projectList.html new file mode 100644 index 000000000..ea6e63d6b --- /dev/null +++ b/gui/app/views/projectList.html @@ -0,0 +1,57 @@ +
+ +

Projects + +

+ +
+ + + +
+
+
Name
+
Action
+ +
+ +
+
+ +
+ + +
+ + +
+
+ +
+ +
+
+ +
+ +
+ + +
+ + + + + diff --git a/gui/app/views/projectdetail.html b/gui/app/views/projectdetail.html new file mode 100644 index 000000000..ff61c5fed --- /dev/null +++ b/gui/app/views/projectdetail.html @@ -0,0 +1,97 @@ +
+ + +

Project -- Task + +

+ +
+ +
+ +

{{projectData.name}}

+
{{projectData.time}}
+
+

Tasks + +

+
No task in this project
+ + + + + + + + + + + + + + + +
Name StatusAction
{{task.name}} +
+
+
+
+
+
+
+
+
+ +
+ + +
+ + +
+ + + +
+
+ +
+ +
+ + + + + + + + diff --git a/gui/app/views/report.html b/gui/app/views/report.html new file mode 100644 index 000000000..78ac6a0c9 --- /dev/null +++ b/gui/app/views/report.html @@ -0,0 +1,56 @@ +
+ +

Yardstick Report

+
+
+ +
Task ID : {{result.result.task_id}}
+
Criteria : + {{result.result.criteria}} + {{result.result.criteria}} +
+
+ Information + + + + + + + + + + + + + + +
#keyvalue
{{$index}}{{key}}{{value}}
+
+ + Test Cases + + + + + + + + + + + + + + + + + +
#keyvaluegrafana
{{$index}}{{key}}{{value.criteria}}
+ +
+
+ + + + diff --git a/gui/app/views/suite.html b/gui/app/views/suite.html new file mode 100644 index 000000000..8e1348333 --- /dev/null +++ b/gui/app/views/suite.html @@ -0,0 +1,149 @@ +
+ + + +
+ Test Suites + + + +
+ + +
+
+
Name
+
Operate
+ +
+ + +
+
+ +
+ + +
+ +
+ +
+
+ +
+
+ + + + + + + + +
+ + + + +
+ + + + diff --git a/gui/app/views/suitedetail.html b/gui/app/views/suitedetail.html new file mode 100644 index 000000000..6122f6560 --- /dev/null +++ b/gui/app/views/suitedetail.html @@ -0,0 +1,110 @@ +
+ +
+ + +

Detail

+
+ + + + + + + + + +
+ + + + +
+ + + + diff --git a/gui/app/views/taskList.html b/gui/app/views/taskList.html new file mode 100644 index 000000000..159fed5c9 --- /dev/null +++ b/gui/app/views/taskList.html @@ -0,0 +1,62 @@ +
+ +

Detail

+
+
+
+

{{taskDetailData.name}}

+
{{taskDetailData.time}}
+
+
+
+
+ +
+
+
+
+
+ + + +
+ +
Environment : {{displayEnv.name}}
+
Name : {{taskDetailData.case_name}}
+ + +
+ +
+
+ + + diff --git a/gui/app/views/taskmodify.html b/gui/app/views/taskmodify.html new file mode 100644 index 000000000..a4593f745 --- /dev/null +++ b/gui/app/views/taskmodify.html @@ -0,0 +1,162 @@ +
+ +

Modify

+ +
+ +
+
Name
+ + +
+
+ +
+
+
+
Choose Environment : {{envName}}
+ +
+
+
+
+
{{env.name}}
+ + + + +
+ +
+
+ +
+ +
+
+
+ + +
Test Case
+
Test Suite
+ +
+ + + + +
+
+
Source of Content
+ + + + +
+ +
+
Choose Source : {{selectCase}}
+ + +
+
+ +
+
+
+
+
{{test.Name}}
+
{{test.Description}}
+ + + +
+ +
+
+ +
+
+ +
+
+
+
{{suite}}
+ + + + +
+ +
+
+ +
+
+
+ +
+ + + +
+
+ + + + +
+
+ + +
+ + + + diff --git a/gui/app/views/testcasechoose.html b/gui/app/views/testcasechoose.html new file mode 100644 index 000000000..12bdb834f --- /dev/null +++ b/gui/app/views/testcasechoose.html @@ -0,0 +1,48 @@ +
+ +
+ Test case list + + + +
You have choose : +
{{selected}}
+
+ + +
+
+ + +
{{test.Name}}
+
{{test.Description}}
+ +
+
+
+
+ +
+ + + +
+ + + diff --git a/gui/app/views/testcasedetail.html b/gui/app/views/testcasedetail.html new file mode 100644 index 000000000..43a51537f --- /dev/null +++ b/gui/app/views/testcasedetail.html @@ -0,0 +1,110 @@ +
+ +
+ + +

Detail

+
+ + + + + + + + + +
+ + + + +
+ + + + diff --git a/gui/app/views/testcaselist.html b/gui/app/views/testcaselist.html new file mode 100644 index 000000000..3e8cfccf9 --- /dev/null +++ b/gui/app/views/testcaselist.html @@ -0,0 +1,150 @@ +
+ + + +
+ Test Cases + + + +
+ + +
+
+
Name
+
Operate
+ +
+ +
+
+ +
{{test.Description}}
+
+ + +
+ +
+ +
+
+ +
+
+ + + + + + + +
+ + + + +
+ + + + diff --git a/gui/app/views/uploadImage.html b/gui/app/views/uploadImage.html new file mode 100644 index 000000000..17ccfdb8b --- /dev/null +++ b/gui/app/views/uploadImage.html @@ -0,0 +1,145 @@ + + +
+
+
+ +

{{baseElementInfo.name}} -- Image + +

+ + +
+ + + + + +
+

Current Images

+ +
+ + + + + + + + + + + + + + + + + + +
namesizestatustime
{{image.name}}{{image.size/1024}} MB{{image.status}}{{image.time}}
+
+ + + + + + + + + +
+ + +
+ +
+ + + -- cgit 1.2.3-korg