Documentation
¶
Index ¶
- func GenerateAttackPatternData() []attackpattern.AttackPattern
- func GenerateCampaignData() []campaign.Campaign
- func GenerateIndicatorData() []indicator.Indicator
- func GenerateROCollection() *collections.Collection
- func GenerateRWCollection() *collections.Collection
- func GenerateThreatActorData() []threatactor.ThreatActor
- func GenerateWOCollection() *collections.Collection
- type Suite
- func (s *Suite) Setup()
- func (s *Suite) TestAPIRootService()
- func (s *Suite) TestCollectionsService()
- func (s *Suite) TestDiscoveryService()
- func (s *Suite) TestObjectServiceROCollection()
- func (s *Suite) TestObjectsServiceROCollection()
- func (s *Suite) TestROCollectionService()
- func (s *Suite) TestRWCollectionService()
- func (s *Suite) TestWOCollectionService()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAttackPatternData ¶
func GenerateAttackPatternData() []attackpattern.AttackPattern
func GenerateCampaignData ¶
func GenerateIndicatorData ¶
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 (*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.