utils

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 36 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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