utils

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateArtifactory

func AuthenticateArtifactory() string

func AuthenticateXsc added in v1.1.0

func AuthenticateXsc() string

func ChangeWD

func ChangeWD(t *testing.T, newPath string) string

func CleanFileSystem

func CleanFileSystem()

func CleanTestsHomeEnv

func CleanTestsHomeEnv()

func CreateJfrogHomeConfig

func CreateJfrogHomeConfig(t *testing.T, encryptPassword bool)

func CreateRepos

func CreateRepos(repos map[*string]string)

func CreateRequiredRepositories

func CreateRequiredRepositories()

func CreateTestWatch added in v1.3.0

func CreateTestWatch(t *testing.T, policyName string, watchName, severity xrayUtils.Severity) (string, func())

func DeleteRepos

func DeleteRepos(repos map[*string]string)

func ExecDeleteRepo

func ExecDeleteRepo(repoName string)

func GetAllRepositoriesNames

func GetAllRepositoriesNames() []string

func GetTestCli added in v1.4.0

func GetTestCli(testApplication components.App) (testCli *coreTests.JfrogCli)

func GetTestResourcesPath

func GetTestResourcesPath() string

func InitSecurityTest

func InitSecurityTest(t *testing.T, xrayMinVersion string)

func InitTestCliDetails

func InitTestCliDetails()

func InitTestWithMockCommandOrParams added in v1.4.0

func InitTestWithMockCommandOrParams(t *testing.T, mockCommands ...func(t *testing.T) components.Command) (mockCli *coreTests.JfrogCli, cleanUp func())

func UnmarshalJson added in v1.6.0

func UnmarshalJson(t *testing.T, output string) formats.EnrichJson

func UnmarshalXML added in v1.6.0

func UnmarshalXML(t *testing.T, output string) formats.Bom

func ValidateXrayVersion

func ValidateXrayVersion(t *testing.T, minVersion string)

func ValidateXscVersion added in v1.1.0

func ValidateXscVersion(t *testing.T, minVersion string)

func VerifyJsonScanResults

func VerifyJsonScanResults(t *testing.T, content string, minViolations, minVulnerabilities, minLicenses int)

func VerifySimpleJsonJasResults

func VerifySimpleJsonJasResults(t *testing.T, content string, minSastViolations, minIacViolations, minSecrets,
	minApplicable, minUndetermined, minNotCovered, minNotApplicable int)

func VerifySimpleJsonScanResults

func VerifySimpleJsonScanResults(t *testing.T, content string, minViolations, minVulnerabilities, minLicenses int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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