|
90 | 90 | #define URL_PARTITION_3 \ |
91 | 91 | R"(https://query.data.api.platform.here.com/query/v1/catalogs/hereos-internal-test-v2/layers/testlayer/partitions?partition=3&version=4)" |
92 | 92 |
|
| 93 | +#define URL_STREAM_SUBSCRIBE_SERIAL \ |
| 94 | + R"(https://stream-ireland.data.api.platform.here.com/stream/v2/catalogs/hereos-internal-test-v2/layers/testlayer/subscribe?mode=serial)" |
| 95 | + |
| 96 | +#define URL_STREAM_SUBSCRIBE_PARALLEL \ |
| 97 | + R"(https://stream-ireland.data.api.platform.here.com/stream/v2/catalogs/hereos-internal-test-v2/layers/testlayer/subscribe?mode=parallel)" |
| 98 | + |
| 99 | +#define URL_STREAM_SUBSCRIBE_SUBSCRIPTION_ID \ |
| 100 | + R"(https://stream-ireland.data.api.platform.here.com/stream/v2/catalogs/hereos-internal-test-v2/layers/testlayer/subscribe?mode=serial&subscriptionId=subscribe_id_12345)" |
| 101 | + |
| 102 | +#define URL_STREAM_SUBSCRIBE_CONSUMER_ID \ |
| 103 | + R"(https://stream-ireland.data.api.platform.here.com/stream/v2/catalogs/hereos-internal-test-v2/layers/testlayer/subscribe?consumerId=consumer_id_1234&mode=serial)" |
| 104 | + |
| 105 | +#define URL_STREAM_SUBSCRIBE_ALL_PARAMETERS \ |
| 106 | + R"(https://stream-ireland.data.api.platform.here.com/stream/v2/catalogs/hereos-internal-test-v2/layers/testlayer/subscribe?consumerId=consumer_id_1234&mode=parallel&subscriptionId=subscribe_id_12345)" |
| 107 | + |
93 | 108 | #define URL_LOOKUP_VOLATILE_BLOB \ |
94 | 109 | R"(https://api-lookup.data.api.platform.here.com/lookup/v1/resources/)"+GetTestCatalog()+R"(/apis/volatile-blob/v1)" |
95 | 110 |
|
| 111 | +#define URL_LOOKUP_STREAM \ |
| 112 | + R"(https://api-lookup.data.api.platform.here.com/lookup/v1/resources/)"+GetTestCatalog()+R"(/apis/stream/v2)" |
| 113 | + |
96 | 114 | #define CONFIG_BASE_URL "https://config.data.api.platform.in.here.com/config/v1" |
97 | 115 |
|
98 | 116 | #define HTTP_RESPONSE_LOOKUP_CONFIG \ |
|
108 | 126 | #define HTTP_RESPONSE_LOOKUP_BLOB \ |
109 | 127 | R"jsonString([{"api":"blob","version":"v1","baseURL":"https://blob-ireland.data.api.platform.here.com/blobstore/v1/catalogs/hereos-internal-test-v2","parameters":{}}])jsonString" |
110 | 128 |
|
| 129 | +#define HTTP_RESPONSE_LOOKUP_STREAM \ |
| 130 | + R"jsonString([{"api":"stream","version":"v1","baseURL":"https://stream-ireland.data.api.platform.here.com/stream/v2/catalogs/hereos-internal-test-v2","parameters":{}}])jsonString" |
| 131 | + |
111 | 132 | #define HTTP_RESPONSE_LOOKUP_VOLATILE_BLOB \ |
112 | 133 | R"jsonString([{"api":"volatile-blob","version":"v1","baseURL":"https://volatile-blob-ireland.data.api.platform.here.com/blobstore/v1/catalogs/hereos-internal-test-v2","parameters":{}}])jsonString" |
113 | 134 |
|
|
117 | 138 | #define HTTP_RESPONSE_403 \ |
118 | 139 | R"jsonString("Forbidden - A catalog with the specified HRN doesn't exist or access to this catalog is forbidden)jsonString" |
119 | 140 |
|
| 141 | +#define HTTP_RESPONSE_SUBSCRIBE_403 \ |
| 142 | + R"jsonString({ "error": "Forbidden Error", "error_description": "Error description" })jsonString" |
| 143 | + |
| 144 | +#define HTTP_RESPONSE_SUBSCRIBE_404 \ |
| 145 | + R"jsonString({ "title": "Stream layer not found", "status": 404, "code": "E213016", "cause": "Stream layer for catalog=hrn:here:data::olp-here-test:hereos-internal-test-v2","action": "Verify stream layer name and existence, and retry", "correlationId": "correlationId_12345"})jsonString" |
| 146 | + |
120 | 147 | #define HTTP_RESPONSE_LATEST_CATALOG_VERSION \ |
121 | 148 | R"jsonString({"version":4})jsonString" |
122 | 149 |
|
|
157 | 184 | #define HTTP_RESPONSE_INVALID_LAYER \ |
158 | 185 | R"jsonString({"title":"Bad Request","detail":[{"name":"layer","error":"Layer 'somewhat_not_okay' is missing in the catalog configuration."}],"status":400})jsonString" |
159 | 186 |
|
| 187 | +#define HTTP_RESPONSE_STREAM_LAYER_SUBSCRIPTION \ |
| 188 | + R"jsonString({ "nodeBaseURL": "https://some.stream.url/stream/v2/catalogs/hrn:here:data::olp-here-test:hereos-internal-test-v2", "subscriptionId": "subscribe_id_12345" })jsonString" |
| 189 | + |
160 | 190 | // <PREFETCH URLs and RESPONSEs> |
161 | 191 | #define URL_CONFIG_V2 \ |
162 | 192 | R"(https://config.data.api.platform.here.com/config/v1/catalogs/)"+GetTestCatalog() |
|
0 commit comments