@@ -2735,6 +2735,63 @@ var setupTests = []setupTest{{
27352735 ` ,
27362736 },
27372737 relerror : `chisel.yaml: v2-archives is obsolete since format v2` ,
2738+ }, {
2739+ summary : "Invalid pro in archives ignored in format v2/v3" ,
2740+ input : map [string ]string {
2741+ "chisel.yaml" : `
2742+ format: v3
2743+ maintenance:
2744+ standard: 2001-02-03
2745+ end-of-life: 2010-11-12
2746+ archives:
2747+ ubuntu:
2748+ version: 20.04
2749+ suites: [focal]
2750+ components: [main]
2751+ public-keys: [test-key]
2752+ priority: 10
2753+ ubuntu-invalid:
2754+ pro: invalid-pro
2755+ version: 20.04
2756+ components: [main]
2757+ suites: [focal]
2758+ public-keys: [test-key]
2759+ priority: 20
2760+ public-keys:
2761+ test-key:
2762+ id: ` + testKey .ID + `
2763+ armor: |` + "\n " + testutil .PrefixEachLine (testKey .PubKeyArmor , "\t \t \t \t \t \t " ) + `
2764+ ` ,
2765+ "slices/mydir/mypkg.yaml" : `
2766+ package: mypkg
2767+ ` ,
2768+ },
2769+ release : & setup.Release {
2770+ Format : "v3" ,
2771+ Archives : map [string ]* setup.Archive {
2772+ "ubuntu" : {
2773+ Name : "ubuntu" ,
2774+ Version : "20.04" ,
2775+ Suites : []string {"focal" },
2776+ Components : []string {"main" },
2777+ Priority : 10 ,
2778+ PubKeys : []* packet.PublicKey {testKey .PubKey },
2779+ Maintained : false ,
2780+ OldRelease : true ,
2781+ },
2782+ },
2783+ Packages : map [string ]* setup.Package {
2784+ "mypkg" : {
2785+ Name : "mypkg" ,
2786+ Path : "slices/mydir/mypkg.yaml" ,
2787+ Slices : map [string ]* setup.Slice {},
2788+ },
2789+ },
2790+ Maintenance : & setup.Maintenance {
2791+ Standard : time .Date (2001 , time .February , 3 , 0 , 0 , 0 , 0 , time .UTC ),
2792+ EndOfLife : time .Date (2010 , time .November , 12 , 0 , 0 , 0 , 0 , time .UTC ),
2793+ },
2794+ },
27382795}, {
27392796 summary : "Maintenance all dates" ,
27402797 input : map [string ]string {
0 commit comments