Skip to content

Add test case for extension resource in ArmResourceTest #7597

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

v-hongli1
Copy link
Member

Add test case for extension resource in ArmResourceTest.

@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:java Issue for the Java client emitter: @typespec/http-client-java label Jun 10, 2025
Copy link
Contributor

No changes needing a change description found.

@v-hongli1 v-hongli1 marked this pull request as ready for review June 10, 2025 04:06
@v-hongli1 v-hongli1 force-pushed the AddExtensionResourceTests branch from 7507624 to 4252949 Compare June 18, 2025 02:24
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comment on lines +62 to +67
private ExtensionsResourceProperties createProperties
= new ExtensionsResourceProperties().withDescription(RESOURCE_DESCRIPTION_VALID);
private ExtensionsResourceProperties updateProperties
= new ExtensionsResourceProperties().withDescription(RESOURCE_DESCRIPTION_VALID2);
private ExtensionsResource extensionResource;
private List<ExtensionsResource> extensionResources;
Copy link
Contributor

Choose a reason for hiding this comment

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

They are mutable, so it should be defined in each test.

You can have private static final of the 2 CREATE_PROPERTIES and UPDATE_PROPERTIES.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:java Issue for the Java client emitter: @typespec/http-client-java
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants