Skip to content

[Automation] Generate Fluent Lite from dynatrace#package-2021-09-01 - #31007

Closed
azure-sdk wants to merge 1 commit into
Azure:mainfrom
azure-sdk:fluent-lite-generation-1857725
Closed

[Automation] Generate Fluent Lite from dynatrace#package-2021-09-01#31007
azure-sdk wants to merge 1 commit into
Azure:mainfrom
azure-sdk:fluent-lite-generation-1857725

Conversation

@azure-sdk

Copy link
Copy Markdown
Collaborator

[Automation] Generate Fluent Lite from dynatrace#package-2021-09-01

public void testDeserialize() {
AccountInfoSecureInner model =
BinaryData
.fromString("{\"accountId\":\"mhquvgjxp\",\"apiKey\":\"czmehmtzopbsp\",\"regionId\":\"upi\"}")

@XiaofeiCao XiaofeiCao Sep 19, 2022

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI reported credential check error for apikey:

A potential secret was detected in 'AccountInfoSecureInnerTests.java':(CSCAN-GENERAL0130 Client Secret / Api Key) Validate file contains secrets, remove, roll credential, and use approved store

Should we replace them with appropriate values in codegen?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, just disable generate-tests?

We might later add logic to skip e.g. apiKey property (or the model) when generating the mock JSON in codegen. However we don't know exactly what will be flagged and what will not...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or you can just delete the tests folder in the PR.

@XiaofeiCao

Copy link
Copy Markdown
Contributor

Close due to generate-test failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants