Skip to content

Commit 1305b49

Browse files
authored
[SERV-1263] Add NAAN 13030 to ark check (#150)
1 parent fc26620 commit 1305b49

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

validation/checks/ark_check.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,19 @@ const PARENT_ARK = "Parent ARK"
2424
var naanProfiles = map[string]map[string]struct{}{
2525
"default": {
2626
"21198": {},
27+
"13030": {},
2728
},
2829
"test": {
2930
"21198": {},
31+
"13030": {},
3032
},
3133
"bucketeer": {
3234
"21198": {},
35+
"13030": {},
3336
},
3437
"fester": {
3538
"21198": {},
39+
"13030": {},
3640
},
3741
}
3842

validation/checks/ark_check_test.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@ func TestVerifyARK(t *testing.T) {
3939
profile: "default",
4040
expectError: false,
4141
},
42+
{
43+
name: "Valid ARK with CDL NAAN",
44+
ark: "ark:/13030/xyz123",
45+
location: testLocation,
46+
profile: "default",
47+
expectError: false,
48+
},
49+
{
50+
name: "Valid ARK with CDL NAAN",
51+
ark: "ark:/13030/xyz123",
52+
location: testLocation,
53+
profile: "fester",
54+
expectError: false,
55+
},
4256
{
4357
name: "Valid ARK with qualifier",
4458
ark: "ark:/21198/xyz123?version=2",

0 commit comments

Comments
 (0)