Skip to content

Commit 697fde1

Browse files
authored
test: use valid BCP47 tags in tests (italia#250)
See italia#47.
1 parent ca45cde commit 697fde1

10 files changed

Lines changed: 66 additions & 9 deletions
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# TODO: enable when
2+
# https://github.com/italia/publiccode-parser-go/issues/47
3+
# is fixed.
4+
publiccodeYmlVersion: "0.4"
5+
6+
name: Medusa
7+
url: "https://github.com/italia/developers.italia.it.git"
8+
softwareVersion: "dev"
9+
releaseDate: "2017-04-15"
10+
11+
platforms:
12+
- web
13+
14+
categories:
15+
- cloud-management
16+
17+
developmentStatus: development
18+
19+
softwareType: "standalone/other"
20+
21+
description:
22+
# Should NOT validate: even if this a valid POSIX language tag
23+
# it's NOT a valid BCP47 language tag
24+
en_GB:
25+
localisedName: Medusa
26+
shortDescription: >
27+
A rather short description which
28+
is probably useless
29+
longDescription: >
30+
Very long description of this software, also split
31+
on multiple rows. You should note what the software
32+
is and why one should need it. This is 158 characters.
33+
Very long description of this software, also split
34+
on multiple rows. You should note what the software
35+
is and why one should need it. This is 316 characters.
36+
Very long description of this software, also split
37+
on multiple rows. You should note what the software
38+
is and why one should need it. This is 474 characters.
39+
Very long description of this software, also split
40+
on multiple rows. You should note what the software
41+
is and why one should need it. This is 632 characters.
42+
features:
43+
- Just one feature
44+
45+
legal:
46+
license: AGPL-3.0-or-later
47+
48+
maintenance:
49+
type: "community"
50+
51+
contacts:
52+
- name: Francesco Rossi
53+
54+
localisation:
55+
localisationReady: true
56+
availableLanguages:
57+
- fr

testdata/v0/invalid/publiccodeYmlVersion_invalid.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ developmentStatus: development
1616
softwareType: "standalone/other"
1717

1818
description:
19-
en_GB:
19+
en-GB:
2020
localisedName: Medusa
2121
shortDescription: >
2222
A rather short description which

testdata/v0/valid/logo_with_url.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ developmentStatus: development
1717
softwareType: "standalone/other"
1818

1919
description:
20-
en_GB:
20+
en-GB:
2121
localisedName: Medusa
2222
shortDescription: >
2323
A rather short description which

testdata/v0/valid/maintenance_contacts_when_type_is_contract.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ developmentStatus: development
1414
softwareType: "standalone/other"
1515

1616
description:
17-
en_GB:
17+
en-GB:
1818
localisedName: Medusa
1919
shortDescription: >
2020
A rather short description which

testdata/v0/valid/maintenance_contacts_when_type_is_internal.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ developmentStatus: development
1414
softwareType: "standalone/other"
1515

1616
description:
17-
en_GB:
17+
en-GB:
1818
localisedName: Medusa
1919
shortDescription: >
2020
A rather short description which

testdata/v0/valid/maintenance_contacts_when_type_is_none.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ developmentStatus: development
1414
softwareType: "standalone/other"
1515

1616
description:
17-
en_GB:
17+
en-GB:
1818
localisedName: Medusa
1919
shortDescription: >
2020
A rather short description which

testdata/v0/valid/valid.minimal.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ developmentStatus: development
1414
softwareType: "standalone/other"
1515

1616
description:
17-
en_GB:
17+
en-GB:
1818
localisedName: Medusa
1919
shortDescription: >
2020
A rather short description which

testdata/v0/valid/valid_spdx_or.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ developmentStatus: development
1414
softwareType: "standalone/other"
1515

1616
description:
17-
en_GB:
17+
en-GB:
1818
localisedName: Medusa
1919
shortDescription: >
2020
A rather short description which

testdata/v0/valid/valid_spdx_with.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ developmentStatus: development
1414
softwareType: "standalone/other"
1515

1616
description:
17-
en_GB:
17+
en-GB:
1818
localisedName: Medusa
1919
shortDescription: >
2020
A rather short description which

testdata/v0/valid/valid_with_major_version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ developmentStatus: development
1515
softwareType: "standalone/other"
1616

1717
description:
18-
en_GB:
18+
en-GB:
1919
localisedName: Medusa
2020
shortDescription: >
2121
A rather short description which

0 commit comments

Comments
 (0)