-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrst-api-spec.yaml.in
1388 lines (1275 loc) · 46.2 KB
/
rst-api-spec.yaml.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
#mode quote
#define EXTERNAL_USER_ACCESS_CONTROL_POLICY Users can only perform this operation if their certificate matches a `TLSA` record published in the DNS at one of the hostnames specified in the `clientIDs` property of the test request object.
#define INTERNAL_USER_ACCESS_CONTROL_POLICY Internal users can perform this operation on any object.
tags:
- name: Checking that the server is up
- name: Creating test request objects
- name: Providing input parameters & files
- name: Retrieving test information
- name: Starting test runs
- name: Test administration
- name: IDN table management
info:
version: "1.#date %Y%j"
title: ICANN Registry System Testing (RST) API
contact:
name: ICANN Global Support
email: globalsupport@icann.org
description: |
The Registry System Testing (RST-API) provides a
[RESTful](https://en.wikipedia.org/wiki/REST) interface to ICANN's [Registry
System Testing](https://www.icann.org/resources/registry-system-testing-v2.0)
platform, which is used to conduct conformance tests of [critical registry
functions](https://www.icann.org/registry-transition-processes-en#:~:text=Critical%20Functions:,registry%20data%20escrow)
at various points during the lifecycle of a gTLD (before initial delegation,
before the [transition to a new Registry Service
Provider](https://www.icann.org/resources/material-subcontracting-arrangement),
before the approval of new [registry
services](https://www.icann.org/resources/pages/rsep-2014-02-19-en)), and
during [RSP evaluation](https://newgtldprogram.icann.org/en/application-rounds/round2/rsp).
_Last updated: #date %Y-%m-%d_.
### Change Log
* 2025-02-14:
* The `testResult` type has been changed to remove the `nullable` setting
as this was found to cause problems with code generators. Instead, a
new (and default) value of `not-started` has been added to the enum.
* 2025-02-12:
* The `eppSafeCodePoints` property in `idnTable` and `idnTableRequest`
objects has been updated to allow a sequence of code points, to support
scripts such as Thaana which have context rules that mean that random
selection of code points could result in invalid labels.
* 2025-01-28:
* The `result` property of test objects is now nullable.
* 2024-12-11:
* Fixed the regular expression used to validate members of the
`eppSafeCodePoints` property of IDN table objects.
* 2024-11-27:
* Added the `files-needed` status to test requests to indicate that one or
more files that must be uploaded before a test run can be started.
* Added the `missingFiles` property to test objects to provide a list of
any files that must be uploaded before a test run can be started.
* 2024-11-13:
* The `eppSafeCodePoints` property has been added to the `idnTable` and
`idnTableRequest` object types, to faciliate EPP testing in TLDs which
have an `idnOnly` property of `true`.
* The requirement that the `isReferenceLGR` property of IDN table objects
**MUST** be `true` has been removed.
* 2024-09-17: The following endpoints responded with a `201` HTTP status,
when `204` should have been used:
* `GET /v1/heartbeat`
* `POST /v1/test/{id}/inputs`
* `POST /v1/test/{id}/files`
* `POST /v1/test/{id}/result`
* `PUT /v1/table/{id}`
* `DELETE /v1/table/{id}`
* 2024-09-12: Clarified access control rules for IDN table objects so users
can always access the objects they created.
* 2024-09-04:
* Full test run information is no longer in responses to `GET /v1/test/{id}`
requests, which will instead include a link to a `GET /v1/test/{id}/{runID}`
sub-resource.
* added `cancelled` to the `testResult` enum.
* allow administrators to change the status of a test to `cancelled`.
* added the `INFO` severity to the enum of allowed values for the
`severity` property of `testCaseLogMessage` objects.
* the `context` property of `testCaseLog` objects has been removed, the
information will be included in the `log` property instead.
* 2024-08-07:
* The response to `GET /v1/tests` and `GET /v1/tables` requests now
include summaries of the matching objects (`testRequestSearchResult`
and `idnTableSearchResult`), rather than the full objects.
* 2024-07-31:
* Fixed the JSON examples in the description of the `tlds` property of
`testRequest` and `testRequestSubmitted` objects.
* 2024-07-03:
* `x-constraints` properties have been added to input parameter schemas,
where appropriate, to facilitate automated validation in Java
applications.
* When creating tests in the OT&E environment, the `rsp` and `clientIDs`
**MUST** now be specified and **MUST** contain the FQDN at which a TLSA
record that validates the client certificate is published.
* 2024-06-26:
* added the `/v1/resource/{file}` endpoint.
* 2024-06-05:
* added the `errorCode` property to `rstError` objects.
* As per Public Comment feedback, clarified that for TLDs that are not
subject to rules relating to the allocatability of IDN variants, the
`variants` property of `idnTestLabel` objects **MUST** be empty.
* 2024-05-16:
* Significant overhaul of the structure of the `idnTableRef`,
`idnTableRequest` and `idnTable` schemas, based on internal discussions
regarding requirements for IDN variants. A reference implementation of
the algorithm for computing lists of test domains is also [available in
the GitHub repository](/~https://github.com/icann/rst-api-spec/blob/dev/etc/idn-test-reference.js).
* Added the `idnOnly` property to `tldInfo` objects.
* Defined a new `rstError` object type which describes the response body
used whenever there is an error.
* Clarified that input parameters can still be submitted when a test
has the `inputs-complete` status.
* Added the `heartbeat` operation to test that the service is up.
* Moved the `/v1` prefix from the `servers` part of the spec into the
individual `paths`.
* Extract the schema for files included in `testRequestSubmitted` into
`fileRef`.
* 2024-03-20:
* The `id` property of `testRequestSubmitted` objects is now a string, not
and integer.
* 2024-03-13:
* Variant labels in an IDN table may have exceptional allocation policies
when allocated in the same TLD as the primary label, or in a variant
TLD.
* 2024-03-06:
* the `caseId` property of the `testCaseLog` object, and the `code`
property of the `testCaseLogMessage` object are now enums, which are
generated from the test specs.
* 2024-02-28:
* As per the last release, only a single YAML file is now built from the
source file, that contains both "internal" and "external" endpoints. The
"internal" view is no longer published.
* To work better with code generators, the following changes have been
made:
* The specification now conforms to [v3.0.3](https://spec.openapis.org/oas/v3.0.3)
of the OpenAPI specification instead of v3.1.0. This means that many
aspects of the API specification and object schemas (including those
of input parameters) have been changed to avoid using features only
available in v3.1.0 of the OpenAPI spec. This includes the `examples`
property for all JSON types, which means that the examples shown in
the HTML representation of the API spec are now less useful than they
were previously.
* The following changes have been made to `testCaseLog` objects:
* The `code` and `codeRef` properties are now optional instead of
nullable.
* The `context` property has been changed so that property values are
always strings.
* The `securitySchemes` property has been removed, since code generators
don't seem to offer good support for mutual TLS. The requirement for
client TLS authentication has not changed, however.
* All usages of the `patternProperties` feature of JSON Schema have
been changed to avoid their use. Some may still be present in the
input parameters.
* Changes to IDN table objects:
* The `variants` property of entries in the `validLabels` property of
`idnTable` objects has been changed to an array of objects, so the
corresponding language tag can be included.
* The `lgrXML` property of `idnTable` object has been removed.
* Renamed the `supportLevel` property to `variantSupportLevel`.
* The operation to create a new IDN table object uses `idnTableRequest`
as the request body payload, which does not allow for inclusion of
server-generated object properties.
* In OT&E, only Reference Second-Level LGRs can be used.
* `type` properties for `enum` types have been reinstated.
* 2024-02-21:
* Test properties (such as `applicationId` and `rsp`) that were previously
ignored in OT&E now **MUST** be omitted.
* When IDN table objects are created in OT&E, they **MUST** have a
`isReferenceLGR` property that is `true`.
* Simplified object schemas by marking properties as required (and others
as therefore optional) avoiding the need to have nullable properties.
* IDN tables are now referenced by a unique ID rather than the `{rsp, tag,
version}` triple.
* The internal and external views are now identical. The separate files
will be removed in the next release.
* Added the `supportLevel` property to the `idnTableRef` type.
* Some IDN table management endpoints are now accessible to external
clients.
* Make access control policies clearer and more consistent.
* Remove `DELETE /tests/{id}` endpoint.
* Fix schema definition for the `Location` header in `POST /test`
responses.
* Changes only relevant to internal users:
* Change the `client` parameter to `GET /tests` to `rsp`.
* Reinstate query parameters for `GET /tables`.
* The `PATCH /test/{id}` endpoint has been replaced with `POST
/test/{id}/run` and `POST /test/{id}/result`.
* Simplified IDN table management, so that test labels are provided when
the table object is created.
* 2024-02-14:
* Switch to a weekly release cycle.
* Use a date-based version number instead of a commit-based version, ahead
of switching to a weekly release cycle.
* 2024-01-31:
* Add this change log.
* Minimise the delta between the internal and external view.
### Authentication
All access to the API is authenticated using TLS certificates that are
authenticated using `TLSA` records published in the DNS. For more
information, please consult [the RST v2.0 page on the ICANN
website](https://www.icann.org/resources/registry-system-testing-v2.0/#authentication-and-access-control).
_Copyright #date %Y ICANN. All rights reserved._
_[RST-API Specification Home Page](https://icann.github.io/rst-api-spec/)_
servers:
- url: https://rst-api.icann.org
description: Production server address
- url: https://rst-api-ote.icann.org
description: OT&E server address
paths:
/v1/heartbeat:
get:
tags:
- Checking that the server is up
description: |
This operation can be used to determine if the server is up.
operationId: heartbeat
responses:
#exec gpp -x inc/http-errors.yaml | sed 's/^/ /'
'204':
description: A successful result.
/v1/test:
post:
tags:
- Creating test request objects
description: |
This operation creates a new test request object.
This operation is not available to external users in production, but may
be used in OT&E.
operationId: createTest
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/testRequest"
responses:
#exec gpp -x inc/http-errors.yaml | sed 's/^/ /'
'200':
description: A successful result.
content:
"application/json":
schema:
$ref: "#/components/schemas/testRequestSubmitted"
headers:
location:
description: The URL of the newly created test request object.
schema:
type: string
format: url
x-constraints: "@ValidUrl"
/v1/test/{id}:
parameters:
- name: id
description: The test ID
in: path
required: true
schema:
type: string
get:
tags:
- Retrieving test information
description: |
This operation returns information about a specific test request object.
EXTERNAL_USER_ACCESS_CONTROL_POLICY
INTERNAL_USER_ACCESS_CONTROL_POLICY
operationId: getTestInfo
responses:
#exec gpp -x inc/http-errors.yaml | sed 's/^/ /'
'200':
description: A successful result.
content:
"application/json":
schema:
$ref: "#/components/schemas/testRequestSubmitted"
/v1/test/{id}/inputs:
post:
tags:
- Providing input parameters & files
description: |
This operation submits test input parameters. Parameters in the payload
will previously submitted values. Values that are present in the object
but not present in the payload will not be modified.
Input parameters can only be submitted for test request objects that
have the status of `inputs-needed`.
EXTERNAL_USER_ACCESS_CONTROL_POLICY
INTERNAL_USER_ACCESS_CONTROL_POLICY
Once all required input parameters have been submitted (and any files
referenced in those parameters have been uploaded), the status of
the test request object will change from `input-needed` to
`inputs-complete`.
operationId: setTestInputParameters
parameters:
- name: id
description: The test ID
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/inputParameters"
responses:
#exec gpp -x inc/http-errors.yaml | sed 's/^/ /'
'204':
description: A successful result.
/v1/test/{id}/files:
post:
tags:
- Providing input parameters & files
description: |
This resource may be used to upload files. Multiple files may
be uploaded in a single request. If a filename matches a previously
submitted file, that file will be replaced.
All files MUST be referenced in an input parameter **before** being
uploaded.
EXTERNAL_USER_ACCESS_CONTROL_POLICY
INTERNAL_USER_ACCESS_CONTROL_POLICY
operationId: uploadFile
parameters:
- name: id
description: The test ID
in: path
required: true
schema:
type: string
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: array
items:
type: string
format: binary
responses:
#exec gpp -x inc/http-errors.yaml | sed 's/^/ /'
'204':
description: A successful result.
/v1/test/{id}/file/{file}:
get:
tags:
- Retrieving test information
description: |
This retrieves an uploaded file.
EXTERNAL_USER_ACCESS_CONTROL_POLICY
INTERNAL_USER_ACCESS_CONTROL_POLICY
operationId: getFile
parameters:
- name: id
description: The test ID
in: path
required: true
schema:
type: string
- name: file
description: The file name
in: path
required: true
schema:
type: string
responses:
#exec gpp -x inc/http-errors.yaml | sed 's/^/ /'
'200':
description: A successful result.
content:
"*":
schema:
type: string
format: binary
/v1/test/{id}/run:
parameters:
- name: id
description: The test ID
in: path
required: true
schema:
type: string
post:
tags:
- Starting test runs
operationId: startTestRun
description: |
This operation asks the test system to start a new test run. If test
object's status property is `inputs-complete`, a `201` status will be
returned; otherwise a `400` status will be returned.
responses:
#exec gpp -x inc/http-errors.yaml | sed 's/^/ /'
'201':
description: A succesful result.
/v1/test/{id}/run/{runID}:
parameters:
- name: id
description: The test ID
in: path
required: true
schema:
type: string
- name: runID
description: The test run ID
in: path
required: true
schema:
type: string
get:
tags:
- Retrieving test information
operationId: getTestRun
description: This operation retrieves details of a test run.
responses:
#exec gpp -x inc/http-errors.yaml | sed 's/^/ /'
'200':
description: A successful result.
content:
"application/json":
schema:
$ref: "#/components/schemas/testRunLog"
/v1/test/{id}/result:
parameters:
- name: id
description: The test ID
in: path
required: true
schema:
type: string
post:
tags:
- Test administration
operationId: setTestResult
description: |
**Internal users only**
This operation allows the `result` property of a test request to be
overridden. The current value of this propert **MUST** be either
`exception` or `fail`.
requestBody:
content:
'application/x-www-form-urlencoded':
schema:
type: object
required:
- result
properties:
result:
description: The new result for the test.
type: string
enum:
- pass
- cancelled
responses:
#exec gpp -x inc/http-errors.yaml | sed 's/^/ /'
'204':
description: A succesful result.
/v1/tests:
get:
tags:
- Retrieving test information
description: |
This operation performs a search on the database and returns all
matching results.
External users will only see results where their certificate
matches a `TLSA` record published in the DNS at one of the hostnames
specified in the `clientIDs` property of the test request object.
Internal users will see results for all users.
operationId: getTests
parameters:
- name: rsp
description: limit results to a specific RSP (internal users only).
in: query
required: false
schema:
type: string
- name: tld
description: limit results to a specific TLD (internal users only).
in: query
required: false
schema:
type: string
- name: applicationID
description: |
limit results to specific a application ID (internal users only).
in: query
required: false
schema:
type: string
- name: status
description: limit results to those with the given status.
in: query
required: false
schema:
$ref: "#/components/schemas/testStatus"
- name: result
description: limit results to those with the given result.
in: query
required: false
schema:
$ref: "#/components/schemas/testResult"
responses:
#exec gpp -x inc/http-errors.yaml | sed 's/^/ /'
'200':
description: A successful result.
content:
"application/json":
schema:
type: array
minItems: 0
items:
$ref: "#/components/schemas/testRequestSearchResult"
/v1/table:
post:
tags:
- IDN table management
operationId: createIDNTable
description: |
This operation creates a new IDN table object.
IDN table objects must be created before they can be referenced in a
test request.
This operation is not available to external users in production, but may
be used in OT&E.
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/idnTableRequest"
responses:
#exec gpp -x inc/http-errors.yaml | sed 's/^/ /'
'201':
description: A successful result.
headers:
location:
description: The URL of the newly created IDN table object.
schema:
type: string
format: url
x-constraints: "@ValidUrl"
/v1/table/{id}:
parameters:
- name: id
description: The table ID.
in: path
required: true
schema:
type: string
get:
tags:
- IDN table management
operationId: getIDNTable
description: |
This operation returns information about an IDN table object.
External users can only access IDN tables that are linked to test
objects associated with their credentials, or which they created.
INTERNAL_USER_ACCESS_CONTROL_POLICY
responses:
#exec gpp -x inc/http-errors.yaml | sed 's/^/ /'
'200':
description: A successful result.
content:
application/json:
schema:
$ref: "#/components/schemas/idnTable"
put:
tags:
- IDN table management
operationId: updateIDNTable
description: |
This operation updates an existing IDN table object.
External users can only access IDN tables that are linked to test
objects associated with their credentials.
This operation is not available to external users in production, but may
be used in OT&E.
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/idnTableRequest"
responses:
#exec gpp -x inc/http-errors.yaml | sed 's/^/ /'
'204':
description: A successful result.
delete:
tags:
- IDN table management
operationId: deleteIDNTable
description: |
This operation deletes an IDN table object.
External users can only access IDN tables that are linked to test
objects associated with their credentials.
This operation is not available to external users in production, but may
be used in OT&E.
INTERNAL_USER_ACCESS_CONTROL_POLICY
responses:
'204':
description: A successful result.
/v1/tables:
get:
tags:
- IDN table management
operationId: getIDNTables
description: |
This operation returns the IDN tables matching the provided query
parameters.
External users can only access IDN tables that are linked to test
objects associated with their credentials, or which they created.
INTERNAL_USER_ACCESS_CONTROL_POLICY
parameters:
- name: rsp
description: The RSP ID (internal users only).
in: query
required: false
schema:
type: string
- name: tag
description: The language tag.
in: query
required: false
schema:
type: string
responses:
#exec gpp -x inc/http-errors.yaml | sed 's/^/ /'
'200':
description: A successful result.
content:
"application/json":
schema:
type: array
minItems: 0
items:
$ref: "#/components/schemas/idnTableSearchResult"
/v1/resource/{file}:
get:
tags:
- Providing input parameters & files
operationId: getResource
description: |
This endpoint allows users to download [resources](https://icann.github.io/rst-test-specs/rst-test-specs.html#resources)
which may be useful in preparing registry systems for testing.
There is no authentication on this endpoint.
parameters:
- name: file
description: The name of the resource.
in: path
required: true
schema:
type: string
enum:
#exec bin/generate-resource-names.pl | sed 's/^/ /'
responses:
#exec gpp -x inc/http-errors.yaml | sed 's/^/ /'
'200':
description: A successful result.
content:
"*":
schema:
type: string
format: binary
components:
schemas:
rstError:
description: |
This object type represents error messages returned in responses to
requests that could not be successfully completed.
type: object
required:
- status
- message
properties:
status:
description: The HTTP status.
type: integer
enum:
#exec gpp -x inc/http-errors.yaml | yq -r '. | keys' | tr -d "'" | sed 's/^/ /'
errorCode:
description: The application-specific error code.
type: integer
example: 1400
message:
description: A human-readable description of the error.
type: string
example: "Bad request"
testRequest:
description: |
This object type is used to define the properties of a new test request
object. The `testRequestSubmitted` type inherits from it.
type: object
required:
- tlds
- rsp
- clientIDs
- testPlan
properties:
#exec gpp -x inc/test-request-base-properties.yaml | sed 's/^/ /'
testStatus:
description: |
A string indicating the status of a test request object.
1. The `inputs-needed` value indicates that the request has been
received, but one or more input parameters are needed before a test
run can begin. The `missingInputs` property of the test indicates
which input parameters are missing.
2. The `files-needed` value indicates that the request has been
received, but one or more files are needed before the a test run can
begin. The `missingFiles` property of the test indicates which files
are missing.
3. The `inputs-complete` value indicates that all the required
input parameters and files have been provided. The test is therefore
ready to start. It is still possible to update input parameters if
the test has this status.
4. The `in-progress` value indicates that a test run is in progress.
5. The `completed` value indicates that the test run has completed. If
a test object has this status, then its `result` property will
indicate the outcome of the test.
6. The `expired` value indicates that the test did not have a status
of `completed` when the `dueDate` was reached.
* [State diagram](etc/test-object-state-machine.svg)
type: string
enum:
- inputs-needed
- files-needed
- inputs-complete
- in-progress
- completed
- expired
testResult:
description: |
A string indicating the result of a test run.
1. If no test run has been requested for a test object, this property
will be `not-started`.
2. The `in-progress` value indicates that the test run has not yet
finished.
3. The `pass` value indicates that the test run completed with no
errors.
4. The `fail` value indicates that at least one test case failed.
5. The `exception` value indicates that an internal issue prevented
the test run from completing.
6. The `cancelled` value indicates that the test was cancelled by an
administrator.
type: string
enum:
- not-started
- in-progress
- pass
- fail
- exception
- cancelled
idnTableRef:
description: |
An `idnTableRef` object provides a reference to an IDN table object. IDN
table objects must be created prior to being referenced in a test
request.
type: object
required:
- id
- variantPolicy
properties:
id:
description: The unique ID of the table.
type: string
example: c76e47a4-b1c5-40a8-94ae-30f0f60f7ec4
variantPolicy:
$ref: "#/components/schemas/variantPolicy"
tldInfo:
description: |
A top-level domain (or equivalent registry-class domain name) and its
associated IDN tables.
type: object
required:
- name
- idnTables
properties:
name:
description: The TLD (or equivalent registry-class domain name).
type: string
format: hostname
example: example
idnTables:
description: The IDN tables(s) for the TLD.
type: array
minItems: 0
items:
$ref: "#/components/schemas/idnTableRef"
idnOnly:
description: |
A boolean vaue that indicates whether only IDN domains may be
registered under this TLD. If the value is `false` then domains that
only use the ASCII range are also permitted.
type: boolean
default: false
testRequestSearchResult:
description: |
An abbreviated representation of a test object that is included in
search result.
type: object
required:
- testID
- status
- result
- tlds
- href
properties:
testID:
description: The unique ID for this test request object.
type: string
example: 3aebd167-c275-45b6-842a-2680ed80422b
rsp:
description: The RSP's unique ID.
type: string
example: RSPI2404-M51
status:
$ref: "#/components/schemas/testStatus"
result:
$ref: "#/components/schemas/testResult"
href:
description: The URL for this test request object.
type: string
format: url
x-constraints: "@ValidUrl"
example: /v1/test/3aebd167-c275-45b6-842a-2680ed80422b
tlds:
description: A flat list of the TLD(s) for this test.
type: array
minItems: 1
items:
type: string
format: hostname
example: example
testRequestSubmitted:
description: |
This type describes a test request object that has been successfully
submitted. It inherits all the properties defined in the
`testRequest` type.
type: object
required:
- tlds
- rsp
- createdBy
- clientIDs
- testPlan
- testPlanVersion
- dateRequested
- status
- result
- inputs
properties:
#exec gpp -x inc/test-request-base-properties.yaml | sed 's/^/ /'
createdBy:
description: The ID of the client that created this object.
type: string
format: hostname
x-constraints: "@ValidHostname"
example: tlsa.rsp.example
testID:
description: The unique ID for this test request object.
type: string
example: 3aebd167-c275-45b6-842a-2680ed80422b
testPlanVersion:
description: |
The version of the Test Plan that will be used for the test. This
will be determined using the `Version` property of the [RST Test
Specifications](https://icann.github.io/rst-test-specs/rst-test-specs.html)
and follows the [Semantic Versioning](https://semver.org)
convention.
type: string
pattern: "^\\d+(\\.\\d+)+$"
example: "3.1.2024096"
dateRequested:
description: date/time when this request was submitted.
type: string
format: date-time
dateUpdated:
description: date/time when this request was last updated.
type: string
format: date-time
dateStarted:
description: date/time when the test run (if any) started.
type: string
format: date-time
dateCompleted:
description: date/time when the test run (if any) completed.
type: string
format: date-time
status:
$ref: "#/components/schemas/testStatus"
result:
$ref: "#/components/schemas/testResult"
errorCodes:
description: |
If the result of the test is a fail or an error, then this property
will contain any `ERROR` or `CRITICAL` error codes generated by the
test run. Otherwise it will be omitted.
type: array
minItems: 0
items:
type: string
enum:
#exec sed 's/^/ /' tmp/error-codes.yaml
inputs:
$ref: "#/components/schemas/inputParameters"
missingInputs:
description: |
An array listing any required input parameters that have not yet
been provided.
type: array
minItems: 0
items:
type: string
enum:
#exec yq '. | keys' tmp/input-parameters.yaml | sed 's/^/ /'
files:
description: A list of any files uploaded.
type: array
minItems: 0
items:
$ref: "#/components/schemas/fileRef"
missingFiles:
description: A list of any files that have not yet been uploaded.
type: array
minItems: 0