@@ -21,8 +21,8 @@ import (
|
||||
type ApplicabilityStatementOrderField string
|
||||
|
||||
const (
|
||||
ApplicabilityStatementOrderFieldCreatedAt ApplicabilityStatementOrderField = "CREATED_AT"
|
||||
ApplicabilityStatementOrderFieldControlSectionTitle ApplicabilityStatementOrderField = "CONTROL_SECTION_TITLE"
|
||||
ApplicabilityStatementOrderFieldCreatedAt ApplicabilityStatementOrderField = "CREATED_AT"
|
||||
ApplicabilityStatementOrderFieldControlSectionTitle ApplicabilityStatementOrderField = "CONTROL_SECTION_TITLE"
|
||||
)
|
||||
|
||||
func (p ApplicabilityStatementOrderField) Column() string {
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package coredata
|
||||
|
||||
import (
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -20,9 +20,9 @@ import (
|
||||
"maps"
|
||||
"time"
|
||||
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -19,10 +19,10 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"go.probo.inc/probo/pkg/crypto/cipher"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/crypto/cipher"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package coredata
|
||||
|
||||
import (
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -20,9 +20,9 @@ import (
|
||||
"maps"
|
||||
"time"
|
||||
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -20,9 +20,9 @@ import (
|
||||
"maps"
|
||||
"time"
|
||||
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -43,4 +43,3 @@ func (p *DataProtectionImpactAssessmentOrderField) UnmarshalText(text []byte) er
|
||||
}
|
||||
return fmt.Errorf("invalid DataProtectionImpactAssessmentOrderField value: %q", val)
|
||||
}
|
||||
|
||||
|
||||
@@ -66,4 +66,3 @@ func (p *DataProtectionImpactAssessmentResidualRisk) Scan(value any) error {
|
||||
func (p DataProtectionImpactAssessmentResidualRisk) Value() (driver.Value, error) {
|
||||
return p.String(), nil
|
||||
}
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package coredata
|
||||
|
||||
import (
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -20,9 +20,9 @@ import (
|
||||
"maps"
|
||||
"time"
|
||||
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -62,11 +62,11 @@ ON CONFLICT (document_id, approver_profile_id) DO NOTHING;
|
||||
`
|
||||
|
||||
args := pgx.StrictNamedArgs{
|
||||
"document_id": da.DocumentID,
|
||||
"document_id": da.DocumentID,
|
||||
"approver_profile_id": da.ApproverProfileID,
|
||||
"organization_id": da.OrganizationID,
|
||||
"tenant_id": scope.GetTenantID(),
|
||||
"created_at": da.CreatedAt,
|
||||
"organization_id": da.OrganizationID,
|
||||
"tenant_id": scope.GetTenantID(),
|
||||
"created_at": da.CreatedAt,
|
||||
}
|
||||
_, err := conn.Exec(ctx, q, args)
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package coredata
|
||||
|
||||
import (
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package coredata
|
||||
|
||||
import (
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package coredata
|
||||
|
||||
import (
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -22,8 +22,8 @@ import (
|
||||
type RightsRequestType string
|
||||
|
||||
const (
|
||||
RightsRequestTypeAccess RightsRequestType = "ACCESS"
|
||||
RightsRequestTypeDeletion RightsRequestType = "DELETION"
|
||||
RightsRequestTypeAccess RightsRequestType = "ACCESS"
|
||||
RightsRequestTypeDeletion RightsRequestType = "DELETION"
|
||||
RightsRequestTypePortability RightsRequestType = "PORTABILITY"
|
||||
)
|
||||
|
||||
|
||||
@@ -20,9 +20,9 @@ import (
|
||||
"maps"
|
||||
"time"
|
||||
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package coredata
|
||||
|
||||
import (
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -20,9 +20,9 @@ import (
|
||||
"maps"
|
||||
"time"
|
||||
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package coredata
|
||||
|
||||
import (
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -43,4 +43,3 @@ func (p *TransferImpactAssessmentOrderField) UnmarshalText(text []byte) error {
|
||||
}
|
||||
return fmt.Errorf("invalid TransferImpactAssessmentOrderField value: %q", val)
|
||||
}
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package coredata
|
||||
|
||||
import (
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -29,12 +29,12 @@ import (
|
||||
|
||||
type (
|
||||
WebhookData struct {
|
||||
ID gid.GID `db:"id"`
|
||||
OrganizationID gid.GID `db:"organization_id"`
|
||||
ID gid.GID `db:"id"`
|
||||
OrganizationID gid.GID `db:"organization_id"`
|
||||
EventType WebhookEventType `db:"event_type"`
|
||||
Data json.RawMessage `db:"data"`
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
ProcessedAt *time.Time `db:"processed_at"`
|
||||
Data json.RawMessage `db:"data"`
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
ProcessedAt *time.Time `db:"processed_at"`
|
||||
}
|
||||
|
||||
WebhookDataList []*WebhookData
|
||||
|
||||
@@ -29,12 +29,12 @@ import (
|
||||
|
||||
type (
|
||||
WebhookEvent struct {
|
||||
ID gid.GID `db:"id"`
|
||||
WebhookDataID gid.GID `db:"webhook_data_id"`
|
||||
ID gid.GID `db:"id"`
|
||||
WebhookDataID gid.GID `db:"webhook_data_id"`
|
||||
WebhookSubscriptionID gid.GID `db:"webhook_subscription_id"`
|
||||
Status WebhookEventStatus `db:"status"`
|
||||
Response json.RawMessage `db:"response"`
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
Status WebhookEventStatus `db:"status"`
|
||||
Response json.RawMessage `db:"response"`
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
}
|
||||
|
||||
WebhookEvents []*WebhookEvent
|
||||
@@ -143,13 +143,13 @@ VALUES (
|
||||
`
|
||||
|
||||
args := pgx.StrictNamedArgs{
|
||||
"id": w.ID,
|
||||
"tenant_id": scope.GetTenantID(),
|
||||
"webhook_data_id": w.WebhookDataID,
|
||||
"id": w.ID,
|
||||
"tenant_id": scope.GetTenantID(),
|
||||
"webhook_data_id": w.WebhookDataID,
|
||||
"webhook_subscription_id": w.WebhookSubscriptionID,
|
||||
"status": w.Status,
|
||||
"response": w.Response,
|
||||
"created_at": w.CreatedAt,
|
||||
"status": w.Status,
|
||||
"response": w.Response,
|
||||
"created_at": w.CreatedAt,
|
||||
}
|
||||
|
||||
_, err := conn.Exec(ctx, q, args)
|
||||
|
||||
@@ -22,9 +22,9 @@ import (
|
||||
type WebhookEventStatus string
|
||||
|
||||
const (
|
||||
WebhookEventStatusPending WebhookEventStatus = "PENDING"
|
||||
WebhookEventStatusSucceeded WebhookEventStatus = "SUCCEEDED"
|
||||
WebhookEventStatusFailed WebhookEventStatus = "FAILED"
|
||||
WebhookEventStatusPending WebhookEventStatus = "PENDING"
|
||||
WebhookEventStatusSucceeded WebhookEventStatus = "SUCCEEDED"
|
||||
WebhookEventStatusFailed WebhookEventStatus = "FAILED"
|
||||
)
|
||||
|
||||
func (s WebhookEventStatus) String() string {
|
||||
|
||||
@@ -281,14 +281,14 @@ VALUES (
|
||||
`
|
||||
|
||||
args := pgx.StrictNamedArgs{
|
||||
"tenant_id": scope.GetTenantID(),
|
||||
"webhook_subscription_id": w.ID,
|
||||
"organization_id": w.OrganizationID,
|
||||
"endpoint_url": w.EndpointURL,
|
||||
"selected_events": w.SelectedEvents,
|
||||
"tenant_id": scope.GetTenantID(),
|
||||
"webhook_subscription_id": w.ID,
|
||||
"organization_id": w.OrganizationID,
|
||||
"endpoint_url": w.EndpointURL,
|
||||
"selected_events": w.SelectedEvents,
|
||||
"encrypted_signing_secret": w.EncryptedSigningSecret,
|
||||
"created_at": w.CreatedAt,
|
||||
"updated_at": w.UpdatedAt,
|
||||
"created_at": w.CreatedAt,
|
||||
"updated_at": w.UpdatedAt,
|
||||
}
|
||||
_, err := conn.Exec(ctx, q, args)
|
||||
|
||||
|
||||
@@ -21,9 +21,9 @@ import (
|
||||
"errors"
|
||||
"testing"
|
||||
|
||||
"go.probo.inc/probo/pkg/crypto/keys"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.probo.inc/probo/pkg/crypto/keys"
|
||||
)
|
||||
|
||||
func TestGenerate(t *testing.T) {
|
||||
@@ -162,4 +162,4 @@ func BenchmarkGenerate(b *testing.B) {
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,9 +31,9 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"go.probo.inc/probo/pkg/crypto/pem"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.probo.inc/probo/pkg/crypto/pem"
|
||||
)
|
||||
|
||||
func TestEncodeCertificate(t *testing.T) {
|
||||
|
||||
@@ -19,9 +19,9 @@ import (
|
||||
"context"
|
||||
_ "embed"
|
||||
"fmt"
|
||||
"html/template"
|
||||
"io"
|
||||
"strings"
|
||||
"html/template"
|
||||
"time"
|
||||
|
||||
"github.com/digitorus/timestamp"
|
||||
|
||||
@@ -166,11 +166,11 @@ func TestActionRegistry_ByService(t *testing.T) {
|
||||
|
||||
func TestParseAction(t *testing.T) {
|
||||
tests := []struct {
|
||||
action Action
|
||||
wantSvc string
|
||||
wantRes string
|
||||
wantOp string
|
||||
wantErr bool
|
||||
action Action
|
||||
wantSvc string
|
||||
wantRes string
|
||||
wantOp string
|
||||
wantErr bool
|
||||
}{
|
||||
{
|
||||
action: "iam:identity:get",
|
||||
@@ -217,4 +217,3 @@ func TestParseAction(t *testing.T) {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -203,9 +203,9 @@ func TestEvaluator_Evaluate_MultipleConditions(t *testing.T) {
|
||||
)
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
ctx ConditionContext
|
||||
want Decision
|
||||
name string
|
||||
ctx ConditionContext
|
||||
want Decision
|
||||
}{
|
||||
{
|
||||
name: "both conditions satisfied",
|
||||
@@ -260,10 +260,10 @@ func TestEvaluator_Evaluate_WildcardActions(t *testing.T) {
|
||||
evaluator := NewEvaluator()
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
policy *Policy
|
||||
action string
|
||||
want Decision
|
||||
name string
|
||||
policy *Policy
|
||||
action string
|
||||
want Decision
|
||||
}{
|
||||
{
|
||||
name: "full wildcard allows everything",
|
||||
@@ -443,4 +443,3 @@ func TestEvaluationResult_IsAllowed(t *testing.T) {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -204,4 +204,3 @@ func Example_conditionBasedAccess() {
|
||||
// User update own profile: allow
|
||||
// User update other profile: no_match
|
||||
}
|
||||
|
||||
|
||||
@@ -86,4 +86,3 @@ func (m *ActionMatcher) MatchesAny(patterns []string, target string) bool {
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
@@ -100,13 +100,13 @@ const (
|
||||
ActionVendorRiskAssessmentList = "core:vendor-risk-assessment:list"
|
||||
|
||||
// Framework actions
|
||||
ActionFrameworkGet = "core:framework:get"
|
||||
ActionFrameworkList = "core:framework:list"
|
||||
ActionFrameworkCreate = "core:framework:create"
|
||||
ActionFrameworkUpdate = "core:framework:update"
|
||||
ActionFrameworkDelete = "core:framework:delete"
|
||||
ActionFrameworkGet = "core:framework:get"
|
||||
ActionFrameworkList = "core:framework:list"
|
||||
ActionFrameworkCreate = "core:framework:create"
|
||||
ActionFrameworkUpdate = "core:framework:update"
|
||||
ActionFrameworkDelete = "core:framework:delete"
|
||||
ActionFrameworkExport = "core:framework:export"
|
||||
ActionFrameworkImport = "core:framework:import"
|
||||
ActionFrameworkImport = "core:framework:import"
|
||||
|
||||
// Control actions
|
||||
ActionControlGet = "core:control:get"
|
||||
|
||||
@@ -386,16 +386,16 @@ func (s MeasureService) Import(
|
||||
continue
|
||||
}
|
||||
|
||||
controlMeasure := &coredata.ControlMeasure{
|
||||
ControlID: control.ID,
|
||||
MeasureID: measure.ID,
|
||||
OrganizationID: measure.OrganizationID,
|
||||
CreatedAt: now,
|
||||
}
|
||||
controlMeasure := &coredata.ControlMeasure{
|
||||
ControlID: control.ID,
|
||||
MeasureID: measure.ID,
|
||||
OrganizationID: measure.OrganizationID,
|
||||
CreatedAt: now,
|
||||
}
|
||||
|
||||
if err := controlMeasure.Upsert(ctx, tx, s.svc.scope); err != nil {
|
||||
return fmt.Errorf("cannot insert control measure: %w", err)
|
||||
}
|
||||
if err := controlMeasure.Upsert(ctx, tx, s.svc.scope); err != nil {
|
||||
return fmt.Errorf("cannot insert control measure: %w", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,9 +21,9 @@ import (
|
||||
|
||||
"github.com/aws/aws-sdk-go-v2/aws"
|
||||
"github.com/aws/aws-sdk-go-v2/service/s3"
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/coredata"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"go.gearno.de/kit/pg"
|
||||
)
|
||||
|
||||
type ReportService struct {
|
||||
|
||||
@@ -30,10 +30,10 @@ func NewSCIMBridge(bridge *coredata.SCIMBridge) *SCIMBridge {
|
||||
ScimConfiguration: &SCIMConfiguration{
|
||||
ID: bridge.ScimConfigurationID,
|
||||
},
|
||||
Connector: connector,
|
||||
Type: bridge.Type,
|
||||
Connector: connector,
|
||||
Type: bridge.Type,
|
||||
ExcludedUserNames: bridge.ExcludedUserNames,
|
||||
CreatedAt: bridge.CreatedAt,
|
||||
UpdatedAt: bridge.UpdatedAt,
|
||||
CreatedAt: bridge.CreatedAt,
|
||||
UpdatedAt: bridge.UpdatedAt,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,10 +68,10 @@ func NewWebhookEvent(we *coredata.WebhookEvent) *WebhookEvent {
|
||||
}
|
||||
|
||||
return &WebhookEvent{
|
||||
ID: we.ID,
|
||||
ID: we.ID,
|
||||
WebhookSubscriptionID: we.WebhookSubscriptionID,
|
||||
Status: we.Status,
|
||||
Response: response,
|
||||
CreatedAt: we.CreatedAt,
|
||||
Status: we.Status,
|
||||
Response: response,
|
||||
CreatedAt: we.CreatedAt,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ func NewListTransferImpactAssessmentsOutput(pg *page.Page[*coredata.TransferImpa
|
||||
nextCursor = &cursorKey
|
||||
}
|
||||
return ListTransferImpactAssessmentsOutput{
|
||||
NextCursor: nextCursor,
|
||||
NextCursor: nextCursor,
|
||||
TransferImpactAssessments: items,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package pageinfo
|
||||
|
||||
import (
|
||||
"go.probo.inc/probo/pkg/page"
|
||||
"go.gearno.de/x/ref"
|
||||
"go.probo.inc/probo/pkg/page"
|
||||
)
|
||||
|
||||
type PageInfo struct {
|
||||
|
||||
@@ -20,11 +20,11 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"go.gearno.de/kit/log"
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/connector"
|
||||
"go.probo.inc/probo/pkg/coredata"
|
||||
"go.probo.inc/probo/pkg/crypto/cipher"
|
||||
"go.gearno.de/kit/log"
|
||||
"go.gearno.de/kit/pg"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -18,10 +18,10 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/coredata"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"go.probo.inc/probo/pkg/page"
|
||||
"go.gearno.de/kit/pg"
|
||||
)
|
||||
|
||||
type AuditService struct {
|
||||
|
||||
@@ -22,9 +22,9 @@ import (
|
||||
|
||||
"github.com/aws/aws-sdk-go-v2/aws"
|
||||
"github.com/aws/aws-sdk-go-v2/service/s3"
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/coredata"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"go.gearno.de/kit/pg"
|
||||
)
|
||||
|
||||
type OrganizationService struct {
|
||||
|
||||
@@ -22,10 +22,10 @@ import (
|
||||
|
||||
"github.com/aws/aws-sdk-go-v2/aws"
|
||||
"github.com/aws/aws-sdk-go-v2/service/s3"
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/coredata"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"go.probo.inc/probo/pkg/page"
|
||||
"go.gearno.de/kit/pg"
|
||||
)
|
||||
|
||||
type TrustCenterReferenceService struct {
|
||||
|
||||
@@ -125,4 +125,4 @@ func FullVersion() string {
|
||||
parts = append(parts, fmt.Sprintf("Go: %s", info.GoVersion))
|
||||
|
||||
return strings.Join(parts, "\n")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,9 +18,9 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"go.probo.inc/probo/pkg/version"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.probo.inc/probo/pkg/version"
|
||||
)
|
||||
|
||||
func TestGetBuildInfo(t *testing.T) {
|
||||
|
||||
@@ -22,20 +22,20 @@ import (
|
||||
)
|
||||
|
||||
type Obligation struct {
|
||||
ID gid.GID `json:"id"`
|
||||
OrganizationID gid.GID `json:"organizationId"`
|
||||
Area *string `json:"area"`
|
||||
Source *string `json:"source"`
|
||||
Requirement *string `json:"requirement"`
|
||||
ActionsToBeImplemented *string `json:"actionsToBeImplemented"`
|
||||
Regulator *string `json:"regulator"`
|
||||
OwnerID gid.GID `json:"ownerId"`
|
||||
LastReviewDate *time.Time `json:"lastReviewDate"`
|
||||
DueDate *time.Time `json:"dueDate"`
|
||||
ID gid.GID `json:"id"`
|
||||
OrganizationID gid.GID `json:"organizationId"`
|
||||
Area *string `json:"area"`
|
||||
Source *string `json:"source"`
|
||||
Requirement *string `json:"requirement"`
|
||||
ActionsToBeImplemented *string `json:"actionsToBeImplemented"`
|
||||
Regulator *string `json:"regulator"`
|
||||
OwnerID gid.GID `json:"ownerId"`
|
||||
LastReviewDate *time.Time `json:"lastReviewDate"`
|
||||
DueDate *time.Time `json:"dueDate"`
|
||||
Status coredata.ObligationStatus `json:"status"`
|
||||
Type coredata.ObligationType `json:"type"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
}
|
||||
|
||||
func NewObligation(o *coredata.Obligation) *Obligation {
|
||||
|
||||
Reference in New Issue
Block a user