display

package
v2.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2019 License: GPL-3.0 Imports: 22 Imported by: 4

Documentation

Overview

This file is part of SystemTestPortal. Copyright (C) 2017 Institute of Software Technology, University of Stuttgart

SystemTestPortal is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

SystemTestPortal is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with SystemTestPortal. If not, see <http://www.gnu.org/licenses/>.

Package display contains the logic for showing the templates for entities of the system, e.g. case-edit, case-history, sequence-edit, sequence-history, projects, groups, ...

The requests routed to this package are typically GET-requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AboutGet

func AboutGet(w http.ResponseWriter, r *http.Request)

AboutGet is a handler for showing the about screen

func ActivityGet

func ActivityGet(activityStore handler.Activities) http.HandlerFunc

func ActivityPut

func ActivityPut(activityStore handler.Activities) http.HandlerFunc

func CaseProtocolsGet

func CaseProtocolsGet(protocolLister handler.CaseProtocolLister) http.HandlerFunc

CaseProtocolsGet serves the page displaying case protocols.

func CreateCaseGet

func CreateCaseGet(lister handler.TestCaseLister) http.HandlerFunc

CreateCaseGet simply serves the site that is used to create new testcases.

func CreateProjectGet

func CreateProjectGet(lister handler.ProjectLister) http.HandlerFunc

CreateProjectGet is a handler for showing the screen for creating a new project

func CreateSequenceGet

func CreateSequenceGet(caseLister handler.TestCaseLister, sequenceLister handler.TestSequenceLister) http.HandlerFunc

CreateSequenceGet serves the page used to create a new testsequence.

func DashboardGet added in v1.1.0

func DashboardGet(caseLister handler.TestCaseLister, sequenceLister handler.TestSequenceLister) http.HandlerFunc

DashboardGet supplies a handler to display the dashboard page

func EditCaseGet

func EditCaseGet(lister handler.TestCaseLister) http.HandlerFunc

EditCaseGet simply serves the edit page for editing testcases.

func EditProfileGet added in v1.7.0

func EditProfileGet(ul handler.UserLister) http.HandlerFunc

func EditSequenceGet

func EditSequenceGet(t handler.TestCaseLister, sequenceLister handler.TestSequenceLister) http.HandlerFunc

EditSequenceGet serves the page used to edit a testsequence.

func GetAsyncSettingsIntegrationsNav

func GetAsyncSettingsIntegrationsNav(writer http.ResponseWriter, request *http.Request)

func GetAsyncSettingsIntegrationsTab

func GetAsyncSettingsIntegrationsTab(writer http.ResponseWriter, request *http.Request)

func GetAsyncSettingsPermissionsNav added in v1.5.0

func GetAsyncSettingsPermissionsNav(writer http.ResponseWriter, request *http.Request)

func GetAsyncSettingsPermissionsTab added in v1.5.0

func GetAsyncSettingsPermissionsTab(writer http.ResponseWriter, request *http.Request)

func GetAsyncSettingsProjectsNav added in v1.5.0

func GetAsyncSettingsProjectsNav(writer http.ResponseWriter, request *http.Request)

func GetAsyncSettingsProjectsTab added in v1.5.0

func GetAsyncSettingsProjectsTab(writer http.ResponseWriter, request *http.Request)

func GetCaseProtocols added in v1.1.0

func GetCaseProtocols(project *project.Project, writer http.ResponseWriter, request *http.Request) []test.CaseExecutionProtocol

GetSequenceProtocols returns test case protocols of the project

func GetCases added in v1.1.0

func GetCases(caseLister handler.TestCaseLister, project *project.Project) []*test.Case

GetCases returns all cases of the project

func GetProject added in v1.1.0

func GetProject(ctxtEntities *handler.ContextEntities, writer http.ResponseWriter, request *http.Request) *project.Project

GetProject returns the current project

func GetProtocolMap added in v1.1.0

func GetProtocolMap(caseProtocolList []test.CaseExecutionProtocol, l handler.CaseProtocolLister) map[id.TestID][]test.CaseExecutionProtocol

GetProtocolMap returns a map of test id's and execution protocols

func GetProtocolMap2

func GetProtocolMap2(caseProtocolList []test.CaseExecutionProtocol) map[id.TestID][]test.CaseExecutionProtocol

func GetProtocolMapSequences

func GetProtocolMapSequences(sequenceProtocolList []test.SequenceExecutionProtocol) map[id.TestID][]test.SequenceExecutionProtocol

GetProtocolMap returns a map of test id's and execution protocols

func GetSequenceProtocols added in v1.2.0

func GetSequenceProtocols(project *project.Project, writer http.ResponseWriter, request *http.Request) []test.SequenceExecutionProtocol

GetSequenceProtocols returns test case protocols of the project

func GetSequences added in v1.2.0

func GetSequences(sequenceLister handler.TestSequenceLister, project *project.Project) []*test.Sequence

GetCases returns all cases of the project

func GetSettingsIntegrations

func GetSettingsIntegrations(writer http.ResponseWriter, request *http.Request)

GetSettingsIntegrations is a handler for showing the integration settings page

func GetSettingsPermissions added in v1.5.0

func GetSettingsPermissions(writer http.ResponseWriter, request *http.Request)

GetSettingsPermissions is a handler for showing the permissions settings page

func GetSettingsProjects added in v1.5.0

func GetSettingsProjects(writer http.ResponseWriter, request *http.Request)

GetSettingsProjects is a handler for showing the project settings page

func GetTabTestCaseShow

func GetTabTestCaseShow(r *http.Request) *template.Template

getTabTestCaseShow returns either the test case show fragment only or the show fragment with all its parent fragments, depending on the isFrag parameter

func GetTabTestSequenceShow

func GetTabTestSequenceShow(r *http.Request) *template.Template

getTabTestSequenceShow returns either the test sequence show fragment only or the show fragment with all its parent fragments, depending on the isFrag parameter

func HistoryCaseGet

func HistoryCaseGet(w http.ResponseWriter, r *http.Request)

HistoryCaseGet just serves the history page showing the history of a case.

func HistorySequenceGet

func HistorySequenceGet(w http.ResponseWriter, r *http.Request)

HistorySequenceGet serves the page showing the history of a sequence.

func ImprintGet

func ImprintGet(w http.ResponseWriter, r *http.Request)

AboutGet is a handler for showing the about screen

func LicenseGet

func LicenseGet(w http.ResponseWriter, r *http.Request)

LicenseGet is a handler for showing the license screen

func ParseMarkdown added in v1.7.0

func ParseMarkdown(writer http.ResponseWriter, request *http.Request)

ParseMarkdown is a handler for parsing raw markdown to sanitized HTML

func PrivacyGet

func PrivacyGet(w http.ResponseWriter, r *http.Request)

AboutGet is a handler for showing the about screen

func RegisterUserGet

func RegisterUserGet(w http.ResponseWriter, r *http.Request)

RegisterUserGet is the handler that displays the registration site.

func Sanitize added in v1.7.0

func Sanitize(writer http.ResponseWriter, request *http.Request)

ParseMarkdown is a handler for parsing raw markdown to sanitized HTML

func SequenceProtocolsGet

func SequenceProtocolsGet(caseProtocolLister handler.CaseProtocolLister) http.HandlerFunc

SequenceProtocolsGet serves the page displaying testsequence protocols.

func ShowCase

func ShowCase(p *project.Project, tc *test.Case, c []*comment.Comment, tasks []*task.Item, lister handler.TestCaseLister, w http.ResponseWriter, r *http.Request)

ShowCase tries to respond with the display page for a case. If an error occurs an error response is sent instead.

func ShowCaseGet

func ShowCaseGet(commentStore handler.Comments, assigneeGetter handler.TaskGetter, lister handler.TestCaseLister) http.HandlerFunc

ShowCaseGet simply serves the page that displays a test case.

func ShowGroupGet

func ShowGroupGet(u handler.UserLister) http.HandlerFunc

ShowGroupGet is a handler for creating a group

func ShowProfileGet added in v1.7.0

func ShowProfileGet(ul handler.UserLister) http.HandlerFunc

func ShowSequence

func ShowSequence(p *project.Project, ts *test.Sequence, c []*comment.Comment, tasks []*task.Item, lister handler.TestSequenceLister, w http.ResponseWriter,
	r *http.Request)

ShowSequence tries to respond with the display page for a sequence if an error occurs an error response is sent instead.

func ShowSequenceGet

func ShowSequenceGet(commentStore handler.Comments, taskGetter handler.TaskGetter, lister handler.TestSequenceLister) http.HandlerFunc

ShowSequenceGet serves the page showing a sequence.

func SystemSettingsGet added in v1.7.0

func SystemSettingsGet(w http.ResponseWriter, r *http.Request)

SystemSettingsGet is the handler that displays the SystemSettings site.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL