Documentation
¶
Index ¶
- func Provider() *schema.Provider
- type CreatedResources
- type SharedTestResources
- func (r *SharedTestResources) DestroyCreatedResources(ctx context.Context, client *firehydrant.APIClient) error
- func (r *SharedTestResources) GetEnvironmentID(name string) (string, error)
- func (r *SharedTestResources) GetEscalationPolicyID(name string) (string, error)
- func (r *SharedTestResources) GetIncidentRoleID(name string) (string, error)
- func (r *SharedTestResources) GetOnCallScheduleID(name string) (string, error)
- func (r *SharedTestResources) GetPriorityID(name string) (string, error)
- func (r *SharedTestResources) GetServiceID(name string) (string, error)
- func (r *SharedTestResources) GetSeverityID(name string) (string, error)
- func (r *SharedTestResources) GetTeamID(name string) (string, error)
- func (r *SharedTestResources) GetUserID(email string) (string, error)
- func (r *SharedTestResources) InitializeSharedResources(ctx context.Context, client *firehydrant.APIClient) error
- func (r *SharedTestResources) LoadFromAPI() error
- func (r *SharedTestResources) LoadFromEnvironment() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreatedResources ¶ added in v0.14.10
type CreatedResources struct {
TeamIDs []string `json:"team_ids"`
OnCallScheduleIDs []string `json:"on_call_schedule_ids"`
IncidentRoleIDs []string `json:"incident_role_ids"`
ServiceIDs []string `json:"service_ids"`
}
CreatedResources tracks resources that were created during test initialization These will be cleaned up at the end of the test run
type SharedTestResources ¶ added in v0.14.10
type SharedTestResources struct {
CreatedResources CreatedResources
}
SharedTestResources holds references to pre-existing production resources that can be reused across tests to avoid creating/destroying common resources
func (*SharedTestResources) DestroyCreatedResources ¶ added in v0.14.10
func (r *SharedTestResources) DestroyCreatedResources(ctx context.Context, client *firehydrant.APIClient) error
DestroyCreatedResources cleans up resources that were created during test initialization Called once at the end of test run via TestMain
func (*SharedTestResources) GetEnvironmentID ¶ added in v0.14.10
func (r *SharedTestResources) GetEnvironmentID(name string) (string, error)
GetEnvironmentID returns the ID for an environment by name, or error if not found
func (*SharedTestResources) GetEscalationPolicyID ¶ added in v0.14.10
func (r *SharedTestResources) GetEscalationPolicyID(name string) (string, error)
GetEscalationPolicyID returns the ID for an escalation policy by name, or error if not found
func (*SharedTestResources) GetIncidentRoleID ¶ added in v0.14.10
func (r *SharedTestResources) GetIncidentRoleID(name string) (string, error)
GetIncidentRoleID returns the ID for an incident role by name, or error if not found
func (*SharedTestResources) GetOnCallScheduleID ¶ added in v0.14.10
func (r *SharedTestResources) GetOnCallScheduleID(name string) (string, error)
GetOnCallScheduleID returns the ID for an on-call schedule by name, or error if not found
func (*SharedTestResources) GetPriorityID ¶ added in v0.14.10
func (r *SharedTestResources) GetPriorityID(name string) (string, error)
GetPriorityID returns the ID for a priority by name, or error if not found
func (*SharedTestResources) GetServiceID ¶ added in v0.14.10
func (r *SharedTestResources) GetServiceID(name string) (string, error)
GetServiceID returns the ID for a service by name, or error if not found
func (*SharedTestResources) GetSeverityID ¶ added in v0.14.10
func (r *SharedTestResources) GetSeverityID(name string) (string, error)
GetSeverityID returns the ID for a severity by name, or error if not found
func (*SharedTestResources) GetTeamID ¶ added in v0.14.10
func (r *SharedTestResources) GetTeamID(name string) (string, error)
GetTeamID returns the ID for a team by name, or error if not found
func (*SharedTestResources) GetUserID ¶ added in v0.14.10
func (r *SharedTestResources) GetUserID(email string) (string, error)
GetUserID returns the ID for a user by email, or error if not found
func (*SharedTestResources) InitializeSharedResources ¶ added in v0.14.10
func (r *SharedTestResources) InitializeSharedResources(ctx context.Context, client *firehydrant.APIClient) error
InitializeSharedResources creates shared test resources if they don't exist Called once at the start of test run via TestMain
func (*SharedTestResources) LoadFromAPI ¶ added in v0.14.10
func (r *SharedTestResources) LoadFromAPI() error
LoadFromAPI discovers shared resources by querying the API for resources with test naming convention
func (*SharedTestResources) LoadFromEnvironment ¶ added in v0.14.10
func (r *SharedTestResources) LoadFromEnvironment() error
LoadFromEnvironment loads shared resources from FIREHYDRANT_TEST_RESOURCES JSON environment variable
Source Files
¶
- custom_event_source_resource.go
- environment_data.go
- environment_resource.go
- escalation_policy_data.go
- escalation_policy_resource.go
- functionality_data.go
- functionality_resource.go
- inbound_email_resource.go
- incident_role_data.go
- incident_role_resource.go
- incident_type_data.go
- incident_type_resource.go
- ingest_url_data.go
- lifecycle_milestone_resource.go
- lifecycle_phase_data.go
- on_call_schedule_data.go
- on_call_schedule_resource.go
- on_call_schedules_data.go
- permissions_data.go
- priority_data.go
- priority_resource.go
- provider.go
- role_data.go
- role_resource.go
- rotation_data.go
- rotation_resource.go
- runbook_action_data.go
- runbook_data.go
- runbook_resource.go
- schedule_data.go
- sdk_helpers.go
- service_data.go
- service_dependency_resource.go
- service_resource.go
- services_data.go
- severity_data.go
- severity_resource.go
- signal_rule_data.go
- signal_rule_resource.go
- slack_channel_data.go
- status_update_template_resource.go
- task_list_data.go
- task_list_resource.go
- team_data.go
- team_resource.go
- teams_data.go
- test_helpers.go
- test_resources.go
- user_data.go