|
|
|
|
@ -285,6 +285,18 @@ func (m *MockConfigurationVersions) Download(ctx context.Context, cvID string) (
|
|
|
|
|
panic("not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *MockConfigurationVersions) PermanentlyDeleteBackingData(ctx context.Context, svID string) error {
|
|
|
|
|
panic("not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *MockConfigurationVersions) RestoreBackingData(ctx context.Context, svID string) error {
|
|
|
|
|
panic("not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *MockConfigurationVersions) SoftDeleteBackingData(ctx context.Context, svID string) error {
|
|
|
|
|
panic("not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type MockCostEstimates struct {
|
|
|
|
|
client *MockClient
|
|
|
|
|
Estimations map[string]*tfe.CostEstimate
|
|
|
|
|
@ -367,6 +379,8 @@ func (m *MockCostEstimates) Logs(ctx context.Context, costEstimateID string) (io
|
|
|
|
|
return bytes.NewBuffer(logs), nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var _ tfe.Organizations = (*MockOrganizations)(nil)
|
|
|
|
|
|
|
|
|
|
type MockOrganizations struct {
|
|
|
|
|
client *MockClient
|
|
|
|
|
organizations map[string]*tfe.Organization
|
|
|
|
|
@ -496,6 +510,18 @@ func (m *MockOrganizations) ReadRunQueue(ctx context.Context, name string, optio
|
|
|
|
|
return rq, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *MockOrganizations) DeleteDataRetentionPolicy(context.Context, string) error {
|
|
|
|
|
panic("not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *MockOrganizations) ReadDataRetentionPolicy(context.Context, string) (*tfe.DataRetentionPolicy, error) {
|
|
|
|
|
panic("not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *MockOrganizations) SetDataRetentionPolicy(ctx context.Context, organization string, options tfe.DataRetentionPolicySetOptions) (*tfe.DataRetentionPolicy, error) {
|
|
|
|
|
panic("not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type MockRedactedPlans struct {
|
|
|
|
|
client *MockClient
|
|
|
|
|
redactedPlans map[string][]byte
|
|
|
|
|
@ -1469,6 +1495,8 @@ func (m *MockRunEvents) ReadWithOptions(ctx context.Context, runEventID string,
|
|
|
|
|
}, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var _ tfe.StateVersions = (*MockStateVersions)(nil)
|
|
|
|
|
|
|
|
|
|
type MockStateVersions struct {
|
|
|
|
|
client *MockClient
|
|
|
|
|
states map[string][]byte
|
|
|
|
|
@ -1586,6 +1614,18 @@ func (m *MockStateVersions) ListOutputs(ctx context.Context, svID string, option
|
|
|
|
|
panic("not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (s *MockStateVersions) SoftDeleteBackingData(ctx context.Context, svID string) error {
|
|
|
|
|
panic("not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (s *MockStateVersions) RestoreBackingData(ctx context.Context, svID string) error {
|
|
|
|
|
panic("not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (s *MockStateVersions) PermanentlyDeleteBackingData(ctx context.Context, svID string) error {
|
|
|
|
|
panic("not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type MockStateVersionOutputs struct {
|
|
|
|
|
client *MockClient
|
|
|
|
|
outputs map[string]*tfe.StateVersionOutput
|
|
|
|
|
@ -1885,6 +1925,8 @@ func (m *MockVariables) Delete(ctx context.Context, workspaceID string, variable
|
|
|
|
|
panic("not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var _ tfe.Workspaces = (*MockWorkspaces)(nil)
|
|
|
|
|
|
|
|
|
|
type MockWorkspaces struct {
|
|
|
|
|
client *MockClient
|
|
|
|
|
workspaceIDs map[string]*tfe.Workspace
|
|
|
|
|
@ -2266,6 +2308,18 @@ func (m *MockWorkspaces) RemoveTags(ctx context.Context, workspaceID string, opt
|
|
|
|
|
panic("not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (s *MockWorkspaces) ReadDataRetentionPolicy(ctx context.Context, workspaceID string) (*tfe.DataRetentionPolicy, error) {
|
|
|
|
|
panic("not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (s *MockWorkspaces) SetDataRetentionPolicy(ctx context.Context, workspaceID string, options tfe.DataRetentionPolicySetOptions) (*tfe.DataRetentionPolicy, error) {
|
|
|
|
|
panic("not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (s *MockWorkspaces) DeleteDataRetentionPolicy(ctx context.Context, workspaceID string) error {
|
|
|
|
|
panic("not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const alphanumeric = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
|
|
|
|
|
|
|
|
|
|
func GenerateID(s string) string {
|
|
|
|
|
|