Google cloud logging configuration create api
What does this MR do and why?
Describe in detail what your merge request does and why.
Google cloud logging configuration create api
This commit implements GraphQL api to create google cloud logging configurations
EE: true Changelog: added
How to set up and validate locally
- Run below GraphQL mutation
mutation createGoogleCloudLoggingConfiguration {
googleCloudLoggingConfigurationCreate(
input: {
groupPath: "GROUP_PATH",
googleProjectIdName: "testing-id",
logIdName: "somelogId",
clientEmail: "test@example.com",
privateKey: "someencryptedkey"}
) {
googleCloudLoggingConfiguration {
id
googleProjectIdName
logIdName
privateKey
clientEmail
},
errors,
}
}
- Check in database
AuditEvents::GoogleCloudLoggingConfiguration
is created with correct values and mutation response also contain correct values. - Now retry the mutation, you should get uniqueness violation error.
- When you don't pass logIdName, default logIdName
audit_events
should be returned in created config.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #409422 (closed)
Edited by Harsimar Sandhu