suite

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAttackPatternData

func GenerateAttackPatternData() []attackpattern.AttackPattern

func GenerateCampaignData

func GenerateCampaignData() []campaign.Campaign

func GenerateIndicatorData

func GenerateIndicatorData() []indicator.Indicator

func GenerateROCollection

func GenerateROCollection() *collections.Collection

func GenerateRWCollection

func GenerateRWCollection() *collections.Collection

func GenerateThreatActorData

func GenerateThreatActorData() []threatactor.ThreatActor

func GenerateWOCollection

func GenerateWOCollection() *collections.Collection

Types

type Suite

type Suite struct {
	Logger         *log.Logger
	Req            *http.Request
	Client         *http.Client
	Verbose        bool
	Debug          bool
	ProblemsFound  int
	TAXIIMediaType string
	TAXIIVersion   string
	FullMediaType  string
	Settings       struct {
		Username  string
		Password  string
		URL       string
		Proxy     string
		Discovery string
		APIRoot   string
	}
	CollectionIDs struct {
		ReadOnly  string
		WriteOnly string
		ReadWrite string
	}
}

func New

func New(logger *log.Logger) *Suite

New - This function will create a new test suite object and assign a logger

func (*Suite) Setup

func (s *Suite) Setup()

Setup - This method will setup the test suite

func (*Suite) TestAPIRootService

func (s *Suite) TestAPIRootService()

TestAPIRootService - This method will perform all of the standard tests against the API Root endpoint. It will also check to make sure the output from the GET request is correct and will echo the output to the logs.

func (*Suite) TestCollectionsService

func (s *Suite) TestCollectionsService()

TestCollectionsService - This method will perform all of the standard tests against the Collections endpoint. It will also check to make sure the output from the GET request is correct and will echo the output to the logs.

func (*Suite) TestDiscoveryService

func (s *Suite) TestDiscoveryService()

TestDiscoveryService - This method will perform all of the standard tests against the Discovery endpoint. It will also check to make sure the output from the GET request is correct and will echo the output to the logs.

func (*Suite) TestObjectServiceROCollection

func (s *Suite) TestObjectServiceROCollection()

TestObjectServiceROCollection - This method will perform all of the standard tests against the Read-Only Objects endpoint. It will also check to make sure the output from the GET request is correct and will echo the output to the logs.

func (*Suite) TestObjectsServiceROCollection

func (s *Suite) TestObjectsServiceROCollection()

TestObjectsServiceROCollection - This method will perform all of the standard tests against the Read-Only Objects endpoint. It will also check to make sure the output from the GET request is correct and will echo the output to the logs.

func (*Suite) TestROCollectionService

func (s *Suite) TestROCollectionService()

TestROCollectionService - This method will perform all of the standard tests against the Read-Only Collection endpoint. It will also check to make sure the output from the GET request is correct and will echo the output to the logs.

func (*Suite) TestRWCollectionService

func (s *Suite) TestRWCollectionService()

TestRWCollectionService - This method will perform all of the standard tests against the Read-Write Collection endpoint. It will also check to make sure the output from the GET request is correct and will echo the output to the logs.

func (*Suite) TestWOCollectionService

func (s *Suite) TestWOCollectionService()

TestWOCollectionService - This method will perform all of the standard tests against the Write-Only Collection endpoint. It will also check to make sure the output from the GET request is correct and will echo the output to the logs.

Jump to

Keyboard shortcuts

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