Skip to content

Commit f6a193d

Browse files
committed
Formally add example and test reference data for ICAT 6.2, not yet
adapting the content, though
1 parent 59db00b commit f6a193d

11 files changed

Lines changed: 4333 additions & 4 deletions

doc/examples/icatdump-6.2.xml

Lines changed: 2110 additions & 0 deletions
Large diffs are not rendered by default.

doc/examples/icatdump-6.2.yaml

Lines changed: 1812 additions & 0 deletions
Large diffs are not rendered by default.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def copy_test_data(self):
105105
"ingest-datafiles.xml", "ingest-ds-params.xml",
106106
"ingest-sample-ds.xml") )
107107
files += ( examples / ("icatdump-%s.%s" % (ver, ext))
108-
for ver in ("4.4", "4.7", "4.10", "5.0")
108+
for ver in ("4.4", "4.7", "4.10", "5.0", "6.2")
109109
for ext in ("xml", "yaml") )
110110
files += doc.glob("icatdata-*.xsd")
111111
files += examples.glob("metadata-*.xml")

tests/conftest.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ def require_dumpfile_backend(backend):
177177
if backend not in icat.dumpfile.Backends.keys():
178178
_skip("need %s backend for icat.dumpfile" % (backend))
179179

180+
# FIXME: replace all references to icat_version "6.2a0" below by "6.2"
181+
# as soon as icat.server 6.2 has been released.
180182

181183
def get_icatdata_schema():
182184
if icat_version < "4.4":
@@ -187,8 +189,10 @@ def get_icatdata_schema():
187189
fname = "icatdata-4.7.xsd"
188190
elif icat_version < "5.0":
189191
fname = "icatdata-4.10.xsd"
190-
else:
192+
elif icat_version < "6.2a0":
191193
fname = "icatdata-5.0.xsd"
194+
else:
195+
fname = "icatdata-6.2.xsd"
192196
return gettestdata(fname)
193197

194198

@@ -200,16 +204,20 @@ def get_reference_dumpfile(ext = "yaml"):
200204
fname = "icatdump-4.7.%s" % ext
201205
elif icat_version < "5.0":
202206
fname = "icatdump-4.10.%s" % ext
203-
else:
207+
elif icat_version < "6.2a0":
204208
fname = "icatdump-5.0.%s" % ext
209+
else:
210+
fname = "icatdump-6.2.%s" % ext
205211
return gettestdata(fname)
206212

207213

208214
def get_reference_summary():
209215
if icat_version < "5.0":
210216
version_suffix = "4"
211-
else:
217+
elif icat_version < "6.2a0":
212218
version_suffix = "5"
219+
else:
220+
version_suffix = "6.2"
213221
users = [ "acord", "ahau", "jbotu", "jdoe", "nbour", "rbeck" ]
214222
refsummary = { "root": gettestdata("summary-%s" % version_suffix) }
215223
for u in users:

tests/data/summary-6.2

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
User: simple/root
2+
3+
Entity count
4+
--------------------------------
5+
Affiliation : 2
6+
Application : 1
7+
DataCollection : 5
8+
DataCollectionDatafile : 4
9+
DataCollectionDataset : 6
10+
DataCollectionInvestigation : 1
11+
DataCollectionParameter : 1
12+
DataPublication : 1
13+
DataPublicationDate : 2
14+
DataPublicationFunding : 1
15+
DataPublicationType : 2
16+
DataPublicationUser : 1
17+
Datafile : 11
18+
DatafileFormat : 6
19+
DatafileParameter : 10
20+
Dataset : 9
21+
DatasetInstrument : 7
22+
DatasetParameter : 6
23+
DatasetTechnique : 5
24+
DatasetType : 3
25+
Facility : 1
26+
FacilityCycle : 20
27+
FundingReference : 1
28+
Grouping : 15
29+
Instrument : 3
30+
InstrumentScientist : 3
31+
Investigation : 3
32+
InvestigationFacilityCycle : 3
33+
InvestigationFunding : 1
34+
InvestigationGroup : 9
35+
InvestigationInstrument : 3
36+
InvestigationParameter : 3
37+
InvestigationType : 5
38+
InvestigationUser : 5
39+
Job : 1
40+
Keyword : 9
41+
ParameterType : 9
42+
PermissibleStringValue : 6
43+
PublicStep : 37
44+
Publication : 1
45+
RelatedDatafile : 1
46+
RelatedItem : 1
47+
Rule : 159
48+
Sample : 3
49+
SampleParameter : 2
50+
SampleType : 3
51+
Shift : 4
52+
Study : 1
53+
StudyInvestigation : 2
54+
Technique : 4
55+
User : 11
56+
UserGroup : 19
57+

tests/data/summary-6.2.acord

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
User: db/acord
2+
3+
Entity count
4+
--------------------------------
5+
Affiliation : 0
6+
Application : 1
7+
DataCollection : 0
8+
DataCollectionDatafile : 0
9+
DataCollectionDataset : 0
10+
DataCollectionInvestigation : 0
11+
DataCollectionParameter : 0
12+
DataPublication : 1
13+
DataPublicationDate : 0
14+
DataPublicationFunding : 0
15+
DataPublicationType : 2
16+
DataPublicationUser : 0
17+
Datafile : 11
18+
DatafileFormat : 6
19+
DatafileParameter : 10
20+
Dataset : 9
21+
DatasetInstrument : 7
22+
DatasetParameter : 6
23+
DatasetTechnique : 5
24+
DatasetType : 3
25+
Facility : 1
26+
FacilityCycle : 20
27+
FundingReference : 0
28+
Grouping : 1
29+
Instrument : 3
30+
InstrumentScientist : 0
31+
Investigation : 3
32+
InvestigationFacilityCycle : 0
33+
InvestigationFunding : 0
34+
InvestigationGroup : 0
35+
InvestigationInstrument : 0
36+
InvestigationParameter : 3
37+
InvestigationType : 5
38+
InvestigationUser : 0
39+
Job : 0
40+
Keyword : 9
41+
ParameterType : 9
42+
PermissibleStringValue : 6
43+
PublicStep : 0
44+
Publication : 1
45+
RelatedDatafile : 0
46+
RelatedItem : 0
47+
Rule : 0
48+
Sample : 3
49+
SampleParameter : 2
50+
SampleType : 3
51+
Shift : 4
52+
Study : 0
53+
StudyInvestigation : 0
54+
Technique : 4
55+
User : 11
56+
UserGroup : 0
57+

tests/data/summary-6.2.ahau

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
User: db/ahau
2+
3+
Entity count
4+
--------------------------------
5+
Affiliation : 0
6+
Application : 1
7+
DataCollection : 0
8+
DataCollectionDatafile : 0
9+
DataCollectionDataset : 0
10+
DataCollectionInvestigation : 0
11+
DataCollectionParameter : 0
12+
DataPublication : 1
13+
DataPublicationDate : 0
14+
DataPublicationFunding : 0
15+
DataPublicationType : 2
16+
DataPublicationUser : 0
17+
Datafile : 5
18+
DatafileFormat : 6
19+
DatafileParameter : 4
20+
Dataset : 4
21+
DatasetInstrument : 3
22+
DatasetParameter : 4
23+
DatasetTechnique : 3
24+
DatasetType : 3
25+
Facility : 1
26+
FacilityCycle : 20
27+
FundingReference : 0
28+
Grouping : 3
29+
Instrument : 3
30+
InstrumentScientist : 0
31+
Investigation : 1
32+
InvestigationFacilityCycle : 0
33+
InvestigationFunding : 0
34+
InvestigationGroup : 0
35+
InvestigationInstrument : 0
36+
InvestigationParameter : 1
37+
InvestigationType : 5
38+
InvestigationUser : 0
39+
Job : 0
40+
Keyword : 4
41+
ParameterType : 9
42+
PermissibleStringValue : 6
43+
PublicStep : 0
44+
Publication : 1
45+
RelatedDatafile : 0
46+
RelatedItem : 0
47+
Rule : 0
48+
Sample : 1
49+
SampleParameter : 1
50+
SampleType : 3
51+
Shift : 2
52+
Study : 0
53+
StudyInvestigation : 0
54+
Technique : 4
55+
User : 11
56+
UserGroup : 4
57+

tests/data/summary-6.2.jbotu

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
User: db/jbotu
2+
3+
Entity count
4+
--------------------------------
5+
Affiliation : 0
6+
Application : 1
7+
DataCollection : 1
8+
DataCollectionDatafile : 1
9+
DataCollectionDataset : 2
10+
DataCollectionInvestigation : 0
11+
DataCollectionParameter : 0
12+
DataPublication : 1
13+
DataPublicationDate : 0
14+
DataPublicationFunding : 0
15+
DataPublicationType : 2
16+
DataPublicationUser : 0
17+
Datafile : 6
18+
DatafileFormat : 6
19+
DatafileParameter : 5
20+
Dataset : 6
21+
DatasetInstrument : 5
22+
DatasetParameter : 4
23+
DatasetTechnique : 5
24+
DatasetType : 3
25+
Facility : 1
26+
FacilityCycle : 20
27+
FundingReference : 0
28+
Grouping : 4
29+
Instrument : 3
30+
InstrumentScientist : 0
31+
Investigation : 2
32+
InvestigationFacilityCycle : 0
33+
InvestigationFunding : 0
34+
InvestigationGroup : 0
35+
InvestigationInstrument : 0
36+
InvestigationParameter : 2
37+
InvestigationType : 5
38+
InvestigationUser : 0
39+
Job : 0
40+
Keyword : 5
41+
ParameterType : 9
42+
PermissibleStringValue : 6
43+
PublicStep : 0
44+
Publication : 1
45+
RelatedDatafile : 0
46+
RelatedItem : 0
47+
Rule : 0
48+
Sample : 2
49+
SampleParameter : 1
50+
SampleType : 3
51+
Shift : 3
52+
Study : 0
53+
StudyInvestigation : 0
54+
Technique : 4
55+
User : 11
56+
UserGroup : 4
57+

tests/data/summary-6.2.jdoe

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
User: db/jdoe
2+
3+
Entity count
4+
--------------------------------
5+
Affiliation : 0
6+
Application : 1
7+
DataCollection : 0
8+
DataCollectionDatafile : 0
9+
DataCollectionDataset : 0
10+
DataCollectionInvestigation : 0
11+
DataCollectionParameter : 0
12+
DataPublication : 1
13+
DataPublicationDate : 0
14+
DataPublicationFunding : 0
15+
DataPublicationType : 2
16+
DataPublicationUser : 0
17+
Datafile : 6
18+
DatafileFormat : 6
19+
DatafileParameter : 5
20+
Dataset : 6
21+
DatasetInstrument : 5
22+
DatasetParameter : 4
23+
DatasetTechnique : 5
24+
DatasetType : 3
25+
Facility : 1
26+
FacilityCycle : 20
27+
FundingReference : 0
28+
Grouping : 2
29+
Instrument : 3
30+
InstrumentScientist : 0
31+
Investigation : 2
32+
InvestigationFacilityCycle : 0
33+
InvestigationFunding : 0
34+
InvestigationGroup : 0
35+
InvestigationInstrument : 0
36+
InvestigationParameter : 2
37+
InvestigationType : 5
38+
InvestigationUser : 0
39+
Job : 0
40+
Keyword : 5
41+
ParameterType : 9
42+
PermissibleStringValue : 6
43+
PublicStep : 0
44+
Publication : 1
45+
RelatedDatafile : 0
46+
RelatedItem : 0
47+
Rule : 0
48+
Sample : 2
49+
SampleParameter : 1
50+
SampleType : 3
51+
Shift : 3
52+
Study : 0
53+
StudyInvestigation : 0
54+
Technique : 4
55+
User : 11
56+
UserGroup : 0
57+

0 commit comments

Comments
 (0)