horusec

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Requests save in this file are exclusive of horusec e2e

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAccount

func CreateAccount(t *testing.T, account *authEntities.Account)

func GenerateCompanyToken

func GenerateCompanyToken(t *testing.T, bearerToken, companyID string, token api.Token) string

func GetAllVulnerabilitiesToManager

func GetAllVulnerabilitiesToManager(t *testing.T, bearerToken, companyID, repositoryID string, queryString string) string

func GetAnalysisByID

func GetAnalysisByID(t *testing.T, analysisID, authorization string) string

func GetChartContent

func GetChartContent(t *testing.T, route, bearerToken, companyID, repositoryID string) []byte

func GetChartDetailsUsingGraphQLAndReturnBody

func GetChartDetailsUsingGraphQLAndReturnBody(t *testing.T, bearerToken, companyID, repositoryID string) []byte

func InsertAnalysisWithCompanyToken

func InsertAnalysisWithCompanyToken(t *testing.T, analysisData *api.AnalysisData, companyToken string) string

func InsertAnalysisWithRepositoryToken

func InsertAnalysisWithRepositoryToken(t *testing.T, analysisData *api.AnalysisData, repositoryToken string) string

func InviteUserToRepository

func InviteUserToRepository(t *testing.T, bearerToken, companyID, repositoryID string, user *accountDto.InviteUser)

func Login

func Login(t *testing.T, credentials *authDto.Credentials) map[string]string

func Logout

func Logout(t *testing.T, bearerToken string)

func ReadAllCompanyToken

func ReadAllCompanyToken(t *testing.T, bearerToken, companyID string) string

func ReadAllRepositoryTokenWithoutTreatment

func ReadAllRepositoryTokenWithoutTreatment(t *testing.T, bearerToken, companyID, repositoryID string) httpResponse.Interface

func ReadAllUserInRepository

func ReadAllUserInRepository(t *testing.T, bearerToken, companyID, repositoryID string) string

func RemoveUserInRepository

func RemoveUserInRepository(t *testing.T, bearerToken, companyID, repositoryID, accountID string)

func RevokeCompanyToken

func RevokeCompanyToken(t *testing.T, bearerToken, companyID, tokenID string)

func UpdateUserInRepository

func UpdateUserInRepository(t *testing.T, bearerToken, companyID, repositoryID, accountID string, account *roles.AccountCompany)

func UpdateVulnerabilitiesType

func UpdateVulnerabilitiesType(t *testing.T, bearerToken, companyID, repositoryID, vulnerabilityID string, vulnType dto.UpdateVulnType) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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