File tree Expand file tree Collapse file tree
rocrate_validator/profiles/five-safes-crate/should
tests/integration/profiles/five-safes-crate Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,6 +89,13 @@ five-safes-crate:SignOffPhaseProperties
8989 sh:minCount 1 ;
9090 sh:severity sh:Warning ;
9191 sh:message " The Sign-Off Phase SHOULD have an actionStatus" ;
92+ ] ;
93+ sh:property [
94+ sh:description " Check if the Sign Off phase has an agent" ;
95+ sh:path schema:agent ;
96+ sh:minCount 1 ;
97+ sh:severity sh:Warning ;
98+ sh:message " The Sign-Off Phase SHOULD have an agent" ;
9299 ] .
93100
94101
Original file line number Diff line number Diff line change @@ -143,4 +143,35 @@ def test_5src_signoff_phase_no_actionstatus():
143143 ],
144144 profile_identifier = "five-safes-crate" ,
145145 rocrate_entity_mod_sparql = sparql ,
146+ )
147+
148+
149+ def test_5src_signoff_phase_no_agent ():
150+ """
151+ Test a Five Safes Crate where the Sign-Off phase has no agent.
152+ """
153+ sparql = (
154+ SPARQL_PREFIXES
155+ + """
156+ DELETE {
157+ ?signoff schema:agent ?agent .
158+ }
159+ WHERE {
160+ ?signoff a schema:AssessAction ;
161+ schema:additionalType <https://w3id.org/shp#SignOff> ;
162+ schema:agent ?agent .
163+ }
164+ """
165+ )
166+
167+ do_entity_test (
168+ rocrate_path = ValidROC ().five_safes_crate_result ,
169+ requirement_severity = Severity .RECOMMENDED ,
170+ expected_validation_result = False ,
171+ expected_triggered_requirements = ["SignOffPhaseProperties" ],
172+ expected_triggered_issues = [
173+ "The Sign-Off Phase SHOULD have an agent"
174+ ],
175+ profile_identifier = "five-safes-crate" ,
176+ rocrate_entity_mod_sparql = sparql ,
146177 )
You can’t perform that action at this time.
0 commit comments