Skip to content

Commit

Permalink
[AAP-28420][AAP-AAP-29675][AAP-29676] Add user and teams access tabs …
Browse files Browse the repository at this point in the history
…to the Event Streams page (#3048)
  • Loading branch information
lgalis authored Aug 26, 2024
1 parent 047708f commit fc23c32
Show file tree
Hide file tree
Showing 20 changed files with 1,494 additions and 28 deletions.
36 changes: 36 additions & 0 deletions cypress/fixtures/edaEventStream.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "ev7",
"test_mode": true,
"additional_data_headers": "",
"organization": {
"id": 1,
"name": "Default",
"description": "The default organization"
},
"eda_credential": {
"id": 1,
"name": "basic es1",
"description": "",
"inputs": {
"username": "a",
"password": "$encrypted$",
"auth_type": "basic",
"http_header_key": "Authorization"
},
"managed": false,
"credential_type_id": 7,
"organization_id": 1
},
"event_stream_type": "basic",
"id": 8,
"owner": "admin",
"url": "https://localhost:8443/api/eda/v1/external_event_stream/87731dc0-cc3a-440a-af06-cdc24b52cfa7/post/",
"created_at": "2024-08-26T02:34:59.981077Z",
"modified_at": "2024-08-26T19:41:03.296883Z",
"test_content_type": "",
"test_content": "",
"test_error_message": "",
"test_headers": "",
"events_received": 0,
"last_event_received_at": null
}
326 changes: 326 additions & 0 deletions cypress/fixtures/edaEventStreamOptions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,326 @@
{
"name": "Event Stream Instance",
"description": "",
"renders": ["application/json", "text/html"],
"parses": ["application/json", "application/x-www-form-urlencoded", "multipart/form-data"],
"actions": {
"PATCH": {
"name": {
"type": "string",
"required": true,
"read_only": false,
"label": "Name",
"help_text": "The name of the webhook"
},
"test_mode": {
"type": "boolean",
"required": false,
"read_only": false,
"label": "Test mode",
"help_text": "Enable test mode"
},
"additional_data_headers": {
"type": "string",
"required": false,
"read_only": false,
"label": "Additional data headers",
"help_text": "The additional http headers which will be added to the event data. The headers are comma delimited"
},
"organization": {
"type": "field",
"required": false,
"read_only": true,
"label": "Organization"
},
"eda_credential": {
"type": "nested object",
"required": true,
"read_only": false,
"label": "Eda credential",
"children": {
"id": {
"type": "integer",
"required": false,
"read_only": true,
"label": "ID"
},
"name": {
"type": "string",
"required": true,
"read_only": false,
"label": "Name"
},
"description": {
"type": "string",
"required": false,
"read_only": false,
"label": "Description"
},
"inputs": {
"type": "field",
"required": false,
"read_only": true,
"label": "Inputs"
},
"managed": {
"type": "boolean",
"required": false,
"read_only": false,
"label": "Managed"
},
"credential_type_id": {
"type": "field",
"required": false,
"read_only": true,
"label": "Credential type id"
},
"organization_id": {
"type": "field",
"required": false,
"read_only": true,
"label": "Organization id"
}
}
},
"event_stream_type": {
"type": "string",
"required": false,
"read_only": false,
"label": "Event stream type",
"help_text": "The type of the event stream based on credential type"
},
"id": {
"type": "integer",
"required": false,
"read_only": true,
"label": "ID"
},
"owner": {
"type": "field",
"required": false,
"read_only": true,
"label": "Owner"
},
"url": {
"type": "string",
"required": false,
"read_only": true,
"label": "Url",
"help_text": "The URL which will be used to post to the event stream"
},
"created_at": {
"type": "datetime",
"required": false,
"read_only": true,
"label": "Created at"
},
"modified_at": {
"type": "datetime",
"required": false,
"read_only": true,
"label": "Modified at"
},
"test_content_type": {
"type": "string",
"required": false,
"read_only": true,
"label": "Test content type",
"help_text": "The content type of test data, when in test mode"
},
"test_content": {
"type": "string",
"required": false,
"read_only": true,
"label": "Test content",
"help_text": "The content recieved, when in test mode, stored as a yaml string"
},
"test_error_message": {
"type": "string",
"required": false,
"read_only": true,
"label": "Test error message",
"help_text": "The error message, when in test mode"
},
"test_headers": {
"type": "string",
"required": false,
"read_only": true,
"label": "Test headers",
"help_text": "The headers recieved, when in test mode, stored as a yaml string"
},
"events_received": {
"type": "integer",
"required": false,
"read_only": true,
"label": "Events received",
"help_text": "The total number of events received by event stream"
},
"last_event_received_at": {
"type": "datetime",
"required": false,
"read_only": true,
"label": "Last event received at",
"help_text": "The date/time when the last event was received"
}
},
"GET": {
"name": {
"type": "string",
"required": true,
"read_only": false,
"label": "Name",
"help_text": "The name of the webhook"
},
"test_mode": {
"type": "boolean",
"required": false,
"read_only": false,
"label": "Test mode",
"help_text": "Enable test mode"
},
"additional_data_headers": {
"type": "string",
"required": false,
"read_only": false,
"label": "Additional data headers",
"help_text": "The additional http headers which will be added to the event data. The headers are comma delimited"
},
"organization": {
"type": "field",
"required": false,
"read_only": true,
"label": "Organization"
},
"eda_credential": {
"type": "nested object",
"required": true,
"read_only": false,
"label": "Eda credential",
"children": {
"id": {
"type": "integer",
"required": false,
"read_only": true,
"label": "ID"
},
"name": {
"type": "string",
"required": true,
"read_only": false,
"label": "Name"
},
"description": {
"type": "string",
"required": false,
"read_only": false,
"label": "Description"
},
"inputs": {
"type": "field",
"required": false,
"read_only": true,
"label": "Inputs"
},
"managed": {
"type": "boolean",
"required": false,
"read_only": false,
"label": "Managed"
},
"credential_type_id": {
"type": "field",
"required": false,
"read_only": true,
"label": "Credential type id"
},
"organization_id": {
"type": "field",
"required": false,
"read_only": true,
"label": "Organization id"
}
}
},
"event_stream_type": {
"type": "string",
"required": false,
"read_only": false,
"label": "Event stream type",
"help_text": "The type of the event stream based on credential type"
},
"id": {
"type": "integer",
"required": false,
"read_only": true,
"label": "ID"
},
"owner": {
"type": "field",
"required": false,
"read_only": true,
"label": "Owner"
},
"url": {
"type": "string",
"required": false,
"read_only": true,
"label": "Url",
"help_text": "The URL which will be used to post to the event stream"
},
"created_at": {
"type": "datetime",
"required": false,
"read_only": true,
"label": "Created at"
},
"modified_at": {
"type": "datetime",
"required": false,
"read_only": true,
"label": "Modified at"
},
"test_content_type": {
"type": "string",
"required": false,
"read_only": true,
"label": "Test content type",
"help_text": "The content type of test data, when in test mode"
},
"test_content": {
"type": "string",
"required": false,
"read_only": true,
"label": "Test content",
"help_text": "The content recieved, when in test mode, stored as a yaml string"
},
"test_error_message": {
"type": "string",
"required": false,
"read_only": true,
"label": "Test error message",
"help_text": "The error message, when in test mode"
},
"test_headers": {
"type": "string",
"required": false,
"read_only": true,
"label": "Test headers",
"help_text": "The headers recieved, when in test mode, stored as a yaml string"
},
"events_received": {
"type": "integer",
"required": false,
"read_only": true,
"label": "Events received",
"help_text": "The total number of events received by event stream"
},
"last_event_received_at": {
"type": "datetime",
"required": false,
"read_only": true,
"label": "Last event received at",
"help_text": "The date/time when the last event was received"
}
}
}
}
Loading

0 comments on commit fc23c32

Please sign in to comment.