update

package
v2.0.0-rc5+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: GPL-3.0 Imports: 22 Imported by: 1

Documentation

Overview

Package update contains the logic for updating elements in the system (cases/sequences/projects...).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CasePut

func CasePut(t handler.TestCaseUpdater, caseChecker id.TestExistenceChecker,
	commentStore handler.Comments, assigneeGetter handler.TaskGetter, lister handler.TestCaseLister) http.HandlerFunc

CasePut handles put requests that update existing cases.

func CommentPut added in v1.7.0

func CommentPut(commentStore handler.Comments) http.HandlerFunc

CommentPut updates a comment and prints the new fragment back.

func CreateNewTestCaseVersion

func CreateNewTestCaseVersion(input TestCaseEditInput, tc test.Case) (test.Case, error)

CreateNewTestCaseVersion creates a new test case version with the user input and appends the new version to the list of test case versions in a test case. Returns the testcase with the new version if the input is valid. Otherwise an error is returned

func EditProfilePut added in v1.7.0

func EditProfilePut(ul handler.UserLister, userUpdater handler.UserUpdater) http.HandlerFunc

func IntegrationsPut

func IntegrationsPut(adder handler.ProjectAdder) http.HandlerFunc

IntegrationsPut handles updating the settings for the integration of a gitlab project

func InvalidIsMinor

func InvalidIsMinor(r *http.Request, v string, cause error) errors.HandlerError

InvalidIsMinor returns an error describing that the client send an invalid value for isMinor.

func MemberUpdate added in v1.3.0

func NoSequenceVersions

func NoSequenceVersions(r *http.Request, testID id.TestID) errors.HandlerError

NoSequenceVersions returns an ErrorMessage describing that the test sequence doesn't have a version.

func ProjectPost

ProjectPost is used to update an existing project

func ProjectRolesPut added in v1.1.0

func ProjectRolesPut(projectAdder handler.ProjectAdder) func(w http.ResponseWriter, r *http.Request)

ProjectRolesPut handles the request to update the roles of a project

func ProjectVariantsPut

func ProjectVariantsPut(ps handler.ProjectSUTVersionUpdater) func(w http.ResponseWriter, r *http.Request)

*

  • updates the name of a version or of a variant depending on the input

func SequencePut

SequencePut handles requests that demand to update a sequence

func SystemSettingsPut added in v1.7.0

func SystemSettingsPut(systemSettingsStore handler.SystemSettings) http.HandlerFunc

Types

type TestCaseEditInput

type TestCaseEditInput struct {
	IsMinor            bool
	InputCommitMessage string
	Data               creation.TestCaseInput
}

TestCaseEditInput is similar to testCaseInput but also contains information for the change such as the commit message and whether the change is minor.

Jump to

Keyboard shortcuts

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