|
| 1 | +@endpoint(rum-remote-config) @endpoint(rum-remote-config-v2) |
| 2 | +Feature: RUM Remote Config |
| 3 | + Manage [RUM SDK |
| 4 | + configurations](https://docs.datadoghq.com/real_user_monitoring/) |
| 5 | + delivered to RUM applications via Remote Configuration. |
| 6 | + |
| 7 | + Background: |
| 8 | + Given a valid "apiKeyAuth" key in the system |
| 9 | + And a valid "appKeyAuth" key in the system |
| 10 | + And an instance of "RUMRemoteConfig" API |
| 11 | + |
| 12 | + @team:DataDog/rum-backend |
| 13 | + Scenario: Get a RUM SDK configuration returns "Forbidden" response |
| 14 | + Given operation "GetRumSdkConfig" enabled |
| 15 | + And new "GetRumSdkConfig" request |
| 16 | + And request contains "config_id" parameter with value "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" |
| 17 | + When the request is sent |
| 18 | + Then the response status is 403 Forbidden |
| 19 | + |
| 20 | + @generated @skip @team:DataDog/rum-backend |
| 21 | + Scenario: Get a RUM SDK configuration returns "Not Found" response |
| 22 | + Given operation "GetRumSdkConfig" enabled |
| 23 | + And new "GetRumSdkConfig" request |
| 24 | + And request contains "config_id" parameter from "REPLACE.ME" |
| 25 | + When the request is sent |
| 26 | + Then the response status is 404 Not Found |
| 27 | + |
| 28 | + @generated @skip @team:DataDog/rum-backend |
| 29 | + Scenario: Get a RUM SDK configuration returns "OK" response |
| 30 | + Given operation "GetRumSdkConfig" enabled |
| 31 | + And new "GetRumSdkConfig" request |
| 32 | + And request contains "config_id" parameter from "REPLACE.ME" |
| 33 | + When the request is sent |
| 34 | + Then the response status is 200 OK |
| 35 | + |
| 36 | + @generated @skip @team:DataDog/rum-backend |
| 37 | + Scenario: Update a RUM SDK configuration returns "Bad Request" response |
| 38 | + Given operation "UpdateRumSdkConfig" enabled |
| 39 | + And new "UpdateRumSdkConfig" request |
| 40 | + And request contains "config_id" parameter from "REPLACE.ME" |
| 41 | + And body with value {"data": {"attributes": {"rum": {"allowed_tracing_urls": [{"match": {"rc_serialized_type": "string", "value": "https://app.datadoghq.com"}, "propagator_types": ["datadog", "tracecontext"]}], "allowed_tracking_origins": [{"rc_serialized_type": "string", "value": "https://app.datadoghq.com"}], "context": [{"key": "id", "value": {"attribute": "data-version", "extractor": {"rc_serialized_type": "regex", "value": "^https://app-.*.datadoghq.com"}, "key": "app.version", "name": "app_version", "path": "application.version", "rc_serialized_type": "dynamic", "selector": "#app-version", "strategy": "js"}}], "default_privacy_level": "mask", "enable_privacy_for_action_name": true, "env": "production", "service": "my-service", "session_replay_sample_rate": 20, "session_sample_rate": 75, "trace_sample_rate": 100, "track_session_across_subdomains": false, "user": [{"key": "id", "value": {"attribute": "data-version", "extractor": {"rc_serialized_type": "regex", "value": "^https://app-.*.datadoghq.com"}, "key": "app.version", "name": "app_version", "path": "application.version", "rc_serialized_type": "dynamic", "selector": "#app-version", "strategy": "js"}}], "version": {"attribute": "data-version", "extractor": {"rc_serialized_type": "regex", "value": "^https://app-.*.datadoghq.com"}, "key": "app.version", "name": "app_version", "path": "application.version", "rc_serialized_type": "dynamic", "selector": "#app-version", "strategy": "js"}}}, "id": "abc12345-1234-5678-abcd-ef1234567890", "type": "rum_sdk_config"}} |
| 42 | + When the request is sent |
| 43 | + Then the response status is 400 Bad Request |
| 44 | + |
| 45 | + @team:DataDog/rum-backend |
| 46 | + Scenario: Update a RUM SDK configuration returns "Forbidden" response |
| 47 | + Given operation "UpdateRumSdkConfig" enabled |
| 48 | + And new "UpdateRumSdkConfig" request |
| 49 | + And request contains "config_id" parameter with value "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" |
| 50 | + And body with value {"data": {"id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "type": "rum_sdk_config", "attributes": {"rum": {"session_sample_rate": 75, "session_replay_sample_rate": 20, "default_privacy_level": "mask", "enable_privacy_for_action_name": true}}}} |
| 51 | + When the request is sent |
| 52 | + Then the response status is 403 Forbidden |
| 53 | + |
| 54 | + @generated @skip @team:DataDog/rum-backend |
| 55 | + Scenario: Update a RUM SDK configuration returns "Not Found" response |
| 56 | + Given operation "UpdateRumSdkConfig" enabled |
| 57 | + And new "UpdateRumSdkConfig" request |
| 58 | + And request contains "config_id" parameter from "REPLACE.ME" |
| 59 | + And body with value {"data": {"attributes": {"rum": {"allowed_tracing_urls": [{"match": {"rc_serialized_type": "string", "value": "https://app.datadoghq.com"}, "propagator_types": ["datadog", "tracecontext"]}], "allowed_tracking_origins": [{"rc_serialized_type": "string", "value": "https://app.datadoghq.com"}], "context": [{"key": "id", "value": {"attribute": "data-version", "extractor": {"rc_serialized_type": "regex", "value": "^https://app-.*.datadoghq.com"}, "key": "app.version", "name": "app_version", "path": "application.version", "rc_serialized_type": "dynamic", "selector": "#app-version", "strategy": "js"}}], "default_privacy_level": "mask", "enable_privacy_for_action_name": true, "env": "production", "service": "my-service", "session_replay_sample_rate": 20, "session_sample_rate": 75, "trace_sample_rate": 100, "track_session_across_subdomains": false, "user": [{"key": "id", "value": {"attribute": "data-version", "extractor": {"rc_serialized_type": "regex", "value": "^https://app-.*.datadoghq.com"}, "key": "app.version", "name": "app_version", "path": "application.version", "rc_serialized_type": "dynamic", "selector": "#app-version", "strategy": "js"}}], "version": {"attribute": "data-version", "extractor": {"rc_serialized_type": "regex", "value": "^https://app-.*.datadoghq.com"}, "key": "app.version", "name": "app_version", "path": "application.version", "rc_serialized_type": "dynamic", "selector": "#app-version", "strategy": "js"}}}, "id": "abc12345-1234-5678-abcd-ef1234567890", "type": "rum_sdk_config"}} |
| 60 | + When the request is sent |
| 61 | + Then the response status is 404 Not Found |
| 62 | + |
| 63 | + @generated @skip @team:DataDog/rum-backend |
| 64 | + Scenario: Update a RUM SDK configuration returns "OK" response |
| 65 | + Given operation "UpdateRumSdkConfig" enabled |
| 66 | + And new "UpdateRumSdkConfig" request |
| 67 | + And request contains "config_id" parameter from "REPLACE.ME" |
| 68 | + And body with value {"data": {"attributes": {"rum": {"allowed_tracing_urls": [{"match": {"rc_serialized_type": "string", "value": "https://app.datadoghq.com"}, "propagator_types": ["datadog", "tracecontext"]}], "allowed_tracking_origins": [{"rc_serialized_type": "string", "value": "https://app.datadoghq.com"}], "context": [{"key": "id", "value": {"attribute": "data-version", "extractor": {"rc_serialized_type": "regex", "value": "^https://app-.*.datadoghq.com"}, "key": "app.version", "name": "app_version", "path": "application.version", "rc_serialized_type": "dynamic", "selector": "#app-version", "strategy": "js"}}], "default_privacy_level": "mask", "enable_privacy_for_action_name": true, "env": "production", "service": "my-service", "session_replay_sample_rate": 20, "session_sample_rate": 75, "trace_sample_rate": 100, "track_session_across_subdomains": false, "user": [{"key": "id", "value": {"attribute": "data-version", "extractor": {"rc_serialized_type": "regex", "value": "^https://app-.*.datadoghq.com"}, "key": "app.version", "name": "app_version", "path": "application.version", "rc_serialized_type": "dynamic", "selector": "#app-version", "strategy": "js"}}], "version": {"attribute": "data-version", "extractor": {"rc_serialized_type": "regex", "value": "^https://app-.*.datadoghq.com"}, "key": "app.version", "name": "app_version", "path": "application.version", "rc_serialized_type": "dynamic", "selector": "#app-version", "strategy": "js"}}}, "id": "abc12345-1234-5678-abcd-ef1234567890", "type": "rum_sdk_config"}} |
| 69 | + When the request is sent |
| 70 | + Then the response status is 200 OK |
0 commit comments