feat(contractdocs): release AGB 1.0.0 and TOM 1.0.0 #132
No files matched your search
@@ -52,12 +52,17 @@ type Doc struct {
|
||||
|
||||
// released is the table of released documents, in the order the overview
|
||||
// lists them. Title is the title shown in the portal (the Plattform LB's PDF
|
||||
// is headed "Leistungsbeschreibung Breakpilot"). Not released yet (add them here with their PDF once they are):
|
||||
// is headed "Leistungsbeschreibung Breakpilot"). AGB and TOM were released by
|
||||
// the owner on 16.11.2026 (AGB SaaS AS06 and TOM AS08, each byte for byte as in
|
||||
// its release record FREIGABE_1.0.0.json). Not released yet (on hold; add it
|
||||
// here with its PDF once it is):
|
||||
//
|
||||
// {ID: "agb", Kind: KindAGB, Title: "Allgemeine Geschäftsbedingungen", Version: "1.0.0", Date: "TT.MM.JJJJ", File: "Breakpilot_AGB_1.0.0.pdf", SHA256: "…"},
|
||||
// {ID: "avv", Kind: KindAVV, Title: "Auftragsverarbeitungsvertrag", Version: "1.0.0", Date: "TT.MM.JJJJ", File: "Breakpilot_AVV_1.0.0.pdf", SHA256: "…"},
|
||||
// {ID: "tom", Kind: KindTOM, Title: "Technische und organisatorische Maßnahmen", Version: "1.0.0", Date: "TT.MM.JJJJ", File: "Breakpilot_TOM_1.0.0.pdf", SHA256: "…"},
|
||||
var released = []Doc{
|
||||
{ID: "agb", Kind: KindAGB, Title: "Allgemeine Geschäftsbedingungen", Version: "1.0.0", Date: "09.11.2026",
|
||||
File: "Breakpilot_AGB_SaaS_1.0.0.pdf", SHA256: "7014a6fb5d0386f07df6a50162af3eea68196e1f585ea6c80414f018f03bc40e"},
|
||||
{ID: "tom", Kind: KindTOM, Title: "Technische und organisatorische Maßnahmen", Version: "1.0.0", Date: "09.11.2026",
|
||||
File: "Breakpilot_TOM_1.0.0.pdf", SHA256: "71eb02c884329facf16b8f98e247d579fe17c072e6736b6397d3bfa0952516b9"},
|
||||
{ID: "lb-plattform", Kind: KindLB, Title: "Leistungsbeschreibung Breakpilot Plattform", Version: "1.0.0", Date: "06.11.2026",
|
||||
File: "Breakpilot_Leistungsbeschreibung_Plattform_1.0.0.pdf", SHA256: "29205b6b8db23f6e0c213e0f2f6b28b13aaf36656c991789b43dd0610079c65b"},
|
||||
{ID: "lb-pruefwerk", Kind: KindLB, Title: "Leistungsbeschreibung Prüfwerk", Version: "1.0.3", Date: "09.11.2026", Product: "pruefwerk",
|
||||
|
||||
@@ -28,10 +28,11 @@ func TestCommittedDocumentsMatchTheirPins(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// The released set as of 09.11.2026: the seven Leistungsbeschreibungen, no
|
||||
// AGB, AVV or TOM yet.
|
||||
// The released set as of 16.11.2026: AGB and TOM, then the seven
|
||||
// Leistungsbeschreibungen; the AVV master is not released yet.
|
||||
func TestReleasedSet(t *testing.T) {
|
||||
want := map[string]string{
|
||||
"agb": "1.0.0", "tom": "1.0.0",
|
||||
"lb-plattform": "1.0.0", "lb-pruefwerk": "1.0.3", "lb-werkpilot": "1.0.0", "lb-firmwerk": "1.0.0",
|
||||
"lb-werkmeister": "1.0.0", "lb-managed-git": "1.0.0", "lb-build-runner": "1.0.0",
|
||||
}
|
||||
@@ -40,17 +41,19 @@ func TestReleasedSet(t *testing.T) {
|
||||
t.Fatalf("%d documents", len(all))
|
||||
}
|
||||
for _, d := range all {
|
||||
if want[d.ID] != d.Version || d.Kind != KindLB || !strings.HasPrefix(d.Title, "Leistungsbeschreibung ") {
|
||||
lb := d.Kind == KindLB && strings.HasPrefix(d.Title, "Leistungsbeschreibung ")
|
||||
top := (d.ID == KindAGB || d.ID == KindTOM) && d.Kind == d.ID && d.Title == Title(d.Kind) && d.Date == "09.11.2026"
|
||||
if want[d.ID] != d.Version || (!lb && !top) {
|
||||
t.Errorf("%+v", d)
|
||||
}
|
||||
if Default().Get(d.ID) != d {
|
||||
t.Errorf("get %s", d.ID)
|
||||
}
|
||||
}
|
||||
if all[0].Title != "Leistungsbeschreibung Breakpilot Plattform" {
|
||||
t.Errorf("platform title %q", all[0].Title)
|
||||
if all[2].Title != "Leistungsbeschreibung Breakpilot Plattform" {
|
||||
t.Errorf("platform title %q", all[2].Title)
|
||||
}
|
||||
if all[0].ID != "lb-plattform" || Default().Get("avv") != nil || Default().Get("lb-pruefwerk").Date != "09.11.2026" {
|
||||
if all[0].ID != "agb" || all[1].ID != "tom" || all[2].ID != "lb-plattform" || Default().Get("avv") != nil || Default().Get("lb-pruefwerk").Date != "09.11.2026" {
|
||||
t.Error("order, absent AVV or Stand")
|
||||
}
|
||||
}
|
||||
@@ -68,13 +71,13 @@ func TestApplicability(t *testing.T) {
|
||||
h Holdings
|
||||
want string
|
||||
}{
|
||||
"nothing booked": {Holdings{}, "lb-plattform"},
|
||||
"pruefwerk": {Holdings{Products: map[string]bool{"pruefwerk": true}}, "lb-plattform,lb-pruefwerk"},
|
||||
"nothing booked": {Holdings{}, "agb,tom,lb-plattform"},
|
||||
"pruefwerk": {Holdings{Products: map[string]bool{"pruefwerk": true}}, "agb,tom,lb-plattform,lb-pruefwerk"},
|
||||
"all products": {Holdings{Products: map[string]bool{"pruefwerk": true, "werkpilot": true, "firmwerk": true, "werkmeister": true, "compliance": true}},
|
||||
"lb-plattform,lb-pruefwerk,lb-werkpilot,lb-firmwerk,lb-werkmeister"},
|
||||
"managed git": {Holdings{ManagedServices: map[string]bool{"git": true}}, "lb-plattform,lb-managed-git"},
|
||||
"git and runner": {Holdings{ManagedServices: map[string]bool{"git": true, "ci-runner": true}}, "lb-plattform,lb-managed-git,lb-build-runner"},
|
||||
"service named as product": {Holdings{Products: map[string]bool{"git": true}}, "lb-plattform"},
|
||||
"agb,tom,lb-plattform,lb-pruefwerk,lb-werkpilot,lb-firmwerk,lb-werkmeister"},
|
||||
"managed git": {Holdings{ManagedServices: map[string]bool{"git": true}}, "agb,tom,lb-plattform,lb-managed-git"},
|
||||
"git and runner": {Holdings{ManagedServices: map[string]bool{"git": true, "ci-runner": true}}, "agb,tom,lb-plattform,lb-managed-git,lb-build-runner"},
|
||||
"service named as product": {Holdings{Products: map[string]bool{"git": true}}, "agb,tom,lb-plattform"},
|
||||
} {
|
||||
if got := ids(c.h); got != c.want {
|
||||
t.Errorf("%s: %s, want %s", name, got, c.want)
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -140,10 +140,11 @@ func TestContractDocuments_leistungsbeschreibungen(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
// The seed tenant has Prüfwerk and Firmwerk booked.
|
||||
v, _ := f.contracts(t)
|
||||
if got := docIDs(v.Documents); got != "lb-plattform,lb-pruefwerk,lb-firmwerk" {
|
||||
// AGB and TOM (released 16.11.2026) come first for every workspace.
|
||||
if got := docIDs(v.Documents); got != "agb,tom,lb-plattform,lb-pruefwerk,lb-firmwerk" {
|
||||
t.Fatalf("documents: %s", got)
|
||||
}
|
||||
pw := v.Documents[1]
|
||||
pw := v.Documents[3]
|
||||
if pw.Kind != "lb" || pw.Version != "1.0.3" || pw.Date != "09.11.2026" || pw.Product != "pruefwerk" || pw.TenantSpecific ||
|
||||
pw.SHA256 != contractdocs.Default().Get("lb-pruefwerk").SHA256 || pw.Title != "Leistungsbeschreibung Prüfwerk" {
|
||||
t.Errorf("pruefwerk: %+v", pw)
|
||||
@@ -160,11 +161,11 @@ func TestContractDocuments_leistungsbeschreibungen(t *testing.T) {
|
||||
}
|
||||
}
|
||||
v, _ = f.contracts(t)
|
||||
if got := docIDs(v.Documents); got != "lb-plattform,lb-pruefwerk,lb-werkpilot,lb-firmwerk,lb-managed-git,lb-build-runner" {
|
||||
if got := docIDs(v.Documents); got != "agb,tom,lb-plattform,lb-pruefwerk,lb-werkpilot,lb-firmwerk,lb-managed-git,lb-build-runner" {
|
||||
t.Fatalf("documents: %s", got)
|
||||
}
|
||||
if v.Documents[4].ManagedService != "git" || v.Documents[4].Product != "" {
|
||||
t.Errorf("managed git: %+v", v.Documents[4])
|
||||
if v.Documents[6].ManagedService != "git" || v.Documents[6].Product != "" {
|
||||
t.Errorf("managed git: %+v", v.Documents[6])
|
||||
}
|
||||
|
||||
// The PDF: the committed bytes, digest in the headers.
|
||||
@@ -281,7 +282,7 @@ func TestContractDocuments_ownAVVWithoutMaster(t *testing.T) {
|
||||
t.Fatalf("upload: %d %s", rr.Code, rr.Body.String())
|
||||
}
|
||||
v, _ := f.contracts(t)
|
||||
if got := docIDs(v.Documents); got != "avv,lb-plattform,lb-pruefwerk,lb-firmwerk" || !v.Documents[0].TenantSpecific {
|
||||
if got := docIDs(v.Documents); got != "agb,avv,tom,lb-plattform,lb-pruefwerk,lb-firmwerk" || !v.Documents[1].TenantSpecific {
|
||||
t.Fatalf("documents: %s", got)
|
||||
}
|
||||
// Behind the gate like the rest.
|
||||
|
||||
Reference in new issue
Block a user