-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #484 from opengeospatial/part2-pubsub-ats
add first pass ATS for Part 2
- Loading branch information
Showing
25 changed files
with
324 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
extensions/pubsub/openapi/schemas/pubsub-message-payload-schema.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
extensions/pubsub/standard/abstract_tests/ATS_class_example1.adoc
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
extensions/pubsub/standard/abstract_tests/ATS_class_pubsub.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[[ats_pubsub]] | ||
==== | ||
[%metadata] | ||
label:: http://www.opengis.net/spec/ogcapi-environmental-data-retrieval-2/1.0/pubsub | ||
subject:: Requirements Class "pubsub" | ||
classification:: Target Type:Pub/Sub | ||
==== | ||
|
||
==== API | ||
|
||
include::./pubsub/ATS_test_api.adoc[] |
11 changes: 11 additions & 0 deletions
11
extensions/pubsub/standard/abstract_tests/ATS_class_pubsub_channels.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[[ats_pubsub-message-channels]] | ||
==== | ||
[%metadata] | ||
label:: http://www.opengis.net/spec/ogcapi-environmental-data-retrieval-2/1.0/pubsub-message-channels | ||
subject:: Requirements Class "pubsub-message-channels" | ||
classification:: Target Type:Pub/Sub | ||
==== | ||
|
||
==== Channels | ||
|
||
include::./pubsub-channels/ATS_test_channels.adoc[] |
23 changes: 23 additions & 0 deletions
23
extensions/pubsub/standard/abstract_tests/ATS_class_pubsub_message_payload.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[[ats_pubsub-message-payload]] | ||
==== | ||
[%metadata] | ||
label:: http://www.opengis.net/spec/ogcapi-environmental-data-retrieval-2/1.0/pubsub-message-payload | ||
subject:: Requirements Class "pubsub-message-payload" | ||
classification:: Target Type:Pub/Sub | ||
==== | ||
|
||
==== GeoJSON | ||
|
||
include::./ATS_test_geojson.adoc[] | ||
|
||
==== `+id+` | ||
|
||
include::./pubsub-message-payload/ATS_test_id.adoc[] | ||
|
||
==== `+properties.operation+` | ||
|
||
include::./pubsub-message-payload/ATS_test_id.adoc[] | ||
|
||
==== `+properties.pubtime+` | ||
|
||
include::./pubsub-message-payload/ATS_test_pubtime.adoc[] |
26 changes: 0 additions & 26 deletions
26
extensions/pubsub/standard/abstract_tests/ATS_test_example1.adoc
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
extensions/pubsub/standard/abstract_tests/ATS_test_example2.adoc
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
extensions/pubsub/standard/abstract_tests/pubsub-channels/ATS_test_channels.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[[ats_pubsub-channels_channels]] | ||
[abstract_test] | ||
==== | ||
[%metadata] | ||
label:: /conf/pubsub-channels/channels | ||
subject:: /conf/pubsub-channels/channels | ||
test-purpose:: Validate that an EDR service provides AsyncAPI capabilities. | ||
[.component,class=test method] | ||
===== | ||
[.component,class=step] | ||
-- | ||
Construct a path for the API landing page | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Issue a HTTP GET request on that path | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Inspect all `+link+` objects in the response | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Ensure that at least one exists with `+rel=service-desc+` that corresponds to an AsyncAPI 2.0 description | ||
-- | ||
|
||
===== | ||
==== |
42 changes: 42 additions & 0 deletions
42
...ons/pubsub/standard/abstract_tests/pubsub-message-payload/ATS_test_geojson.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[[ats_pubsub-message-payload_geojson]] | ||
[abstract_test] | ||
==== | ||
[%metadata] | ||
label:: /conf/pubsub-message-payload/geojson | ||
subject:: /conf/pubsub-message-payload/geojson | ||
test-purpose:: Validate that a notification message is a valid GeoJSON document. | ||
[.component,class=test method] | ||
===== | ||
[.component,class=step] | ||
-- | ||
Construct a path for the API landing page | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Issue a HTTP GET request on that path | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Inspect all `+link+` objects in the response | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Find a link that contains `+rel=service-desc+` that corresponds to an AsyncAPI 2.0 description | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Using the server endpoint, subscribe to a given topic. | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Upon receiving a message against the selected topic, validate that the message is GeoJSON compliant. | ||
-- | ||
|
||
===== | ||
==== |
47 changes: 47 additions & 0 deletions
47
extensions/pubsub/standard/abstract_tests/pubsub-message-payload/ATS_test_id.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[[ats_pubsub-message-payload_id]] | ||
[abstract_test] | ||
==== | ||
[%metadata] | ||
label:: /conf/pubsub-message-payload/id | ||
subject:: /conf/pubsub-message-payload/id | ||
test-purpose:: Validate that a notification message provides an `id` property that is a GUID. | ||
[.component,class=test method] | ||
===== | ||
[.component,class=step] | ||
-- | ||
Construct a path for the API landing page | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Issue a HTTP GET request on that path | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Inspect all `+link+` objects in the response | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Find a link that contains `+rel=service-desc+` that corresponds to an AsyncAPI 2.0 description | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Using the server endpoint, subscribe to a given topic. | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Upon receiving a message against the selected topic, ensure that the message has an `id` property. | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Ensure that the `id` property is a valid GUID. | ||
-- | ||
|
||
===== | ||
==== |
42 changes: 42 additions & 0 deletions
42
...s/pubsub/standard/abstract_tests/pubsub-message-payload/ATS_test_operation.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[[ats_pubsub-message-operation]] | ||
[abstract_test] | ||
==== | ||
[%metadata] | ||
label:: /conf/pubsub-message-payload/operation | ||
subject:: /conf/pubsub-message-payload/operation | ||
test-purpose:: Validate that a notification message provides a `properties.operation` property. | ||
[.component,class=test method] | ||
===== | ||
[.component,class=step] | ||
-- | ||
Construct a path for the API landing page | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Issue a HTTP GET request on that path | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Inspect all `+link+` objects in the response | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Find a link that contains `+rel=service-desc+` that corresponds to an AsyncAPI 2.0 description | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Using the server endpoint, subscribe to a given topic. | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Upon receiving a message against the selected topic, ensure that the message has a `properties.operation` property whose value is one of `insert`, `update`, `delete`.. | ||
-- | ||
|
||
===== | ||
==== |
42 changes: 42 additions & 0 deletions
42
...ons/pubsub/standard/abstract_tests/pubsub-message-payload/ATS_test_pubtime.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[[ats_pubsub-message-pubtime]] | ||
[abstract_test] | ||
==== | ||
[%metadata] | ||
label:: /conf/pubsub-message-payload/pubtime | ||
subject:: /conf/pubsub-message-payload/pubtime | ||
test-purpose:: Validate that a notification message provides a `properties.pubtime` property. | ||
[.component,class=test method] | ||
===== | ||
[.component,class=step] | ||
-- | ||
Construct a path for the API landing page | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Issue a HTTP GET request on that path | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Inspect all `+link+` objects in the response | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Find a link that contains `+rel=service-desc+` that corresponds to an AsyncAPI 2.0 description | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Using the server endpoint, subscribe to a given topic. | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Upon receiving a message against the selected topic, ensure that the message has a `properties.pubtime` property whose value a valid RFC3339 datetime. | ||
-- | ||
|
||
===== | ||
==== |
32 changes: 32 additions & 0 deletions
32
extensions/pubsub/standard/abstract_tests/pubsub/ATS_test_api.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[[ats_pubsub_api]] | ||
[abstract_test] | ||
==== | ||
[%metadata] | ||
label:: /conf/pubsub/api | ||
subject:: /conf/pubsub/api | ||
test-purpose:: Validate that an EDR service provides AsyncAPI capabilities. | ||
[.component,class=test method] | ||
===== | ||
[.component,class=step] | ||
-- | ||
Construct a path for the API landing page | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Issue a HTTP GET request on that path | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Inspect all `+link+` objects in the response | ||
-- | ||
|
||
[.component,class=step] | ||
-- | ||
Ensure that at least one exists with `+rel=service-desc+` that corresponds to an AsyncAPI 2.0 description | ||
-- | ||
|
||
===== | ||
==== |
10 changes: 10 additions & 0 deletions
10
...sions/pubsub/standard/recommendations/pubsub-message-payload/PER_operation.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[[per_pubsub-message-payload_operation]] | ||
|
||
[permission,type="general",id="/per/pubsub-message-payload/operation", label="/per/pubsub-message-payload/operation"] | ||
==== | ||
*A:* | ||
An OGC API Pub/Sub Notification Message MAY provide the `+properties.operation+` property to indicate if a resource has been inserted. | ||
==== |
Oops, something went wrong.