Skip to content
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

mgmt, support getNetworkInterfaceAsync #25400

Conversation

weidongxu-microsoft
Copy link
Member

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

fIx #25398

If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@weidongxu-microsoft weidongxu-microsoft self-assigned this Nov 15, 2021
@weidongxu-microsoft weidongxu-microsoft added Mgmt This issue is related to a management-plane library. Mgmt - Track 2 labels Nov 15, 2021
@weidongxu-microsoft weidongxu-microsoft marked this pull request as ready for review November 16, 2021 01:56
Comment on lines -294 to +296
// Assert public load balancing connection
if (!isPlaybackMode()) {
HttpClient client = new NettyAsyncHttpClientBuilder().build();
HttpRequest request = new HttpRequest(HttpMethod.GET, "http://" + fqdn);
HttpResponse response = client.send(request).block();
Assertions.assertEquals(response.getStatusCode(), 200);
}
Assertions.assertNotNull(fqdn);
// // Assert public load balancing connection
// if (!isPlaybackMode()) {
// HttpClient client = HttpClient.createDefault();
// HttpRequest request = new HttpRequest(HttpMethod.GET, "http://" + fqdn);
// HttpResponse response = client.send(request).block();
// Assertions.assertEquals(response.getStatusCode(), 200);
// }
Copy link
Member Author

Choose a reason for hiding this comment

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

Remove due to these no longer work (could be caused by security policy).

Comment on lines +1372 to +1374
String nicIdB = vm.getNetworkInterfaceAsync(nic.name()).map(n -> nic.primaryIPConfiguration().networkId()).block();
Assertions.assertNotNull(nicB);
Assertions.assertNotNull(nicIdB);
Copy link
Member Author

Choose a reason for hiding this comment

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

Added one line test.

@weidongxu-microsoft weidongxu-microsoft merged commit 4614d14 into Azure:main Nov 16, 2021
@weidongxu-microsoft weidongxu-microsoft deleted the mgmt_vmss-network-interface-async branch November 16, 2021 04:57
XiaofeiCao pushed a commit to XiaofeiCao/azure-sdk-for-java that referenced this pull request Nov 18, 2021
* mgmt, support getNetworkInterfaceAsync

* add test for getNetworkInterfaceAsync, but disable all tests that require connect to VM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mgmt - Track 2 Mgmt This issue is related to a management-plane library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE REQ] Please add getNetworkInterfaceAsync to VirtualMachineScaleSetVM
2 participants