-
Notifications
You must be signed in to change notification settings - Fork 5.1k
K8s-runtime SDK #45651
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
Merged
Merged
K8s-runtime SDK #45651
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
e631340
Generate Code
93fabcf
Generate API
50fc9f3
add load balancer tests
3f5a9bc
Merge branch 'Azure:main' into k8s-runtime-sdk
HE-Xinyu 2d66a81
Update CODEOWNERS
HE-Xinyu 8a1b440
upload recording
HE-Xinyu 404e327
fix CODEOWNERS
86b6d06
Storage Class tests
d844255
upload test asset
HE-Xinyu 430c036
Update .github/CODEOWNERS
jsquire 839cee1
fix
b6d432b
fix provisioningstate name
e564547
use test environments
HE-Xinyu bc4f259
submit tests
HE-Xinyu 4d86bf5
update
ArthurMa1978 3c2fb2c
Merge branch 'main' into k8s
ArthurMa1978 7a4a50a
add deletion test
HE-Xinyu 60f32f4
Merge branch 'main' into k8s
ArthurMa1978 4924e04
Merge branch 'main' into k8s
ArthurMa1978 913cd9b
update
ArthurMa1978 9e6aecf
Merge branch 'k8s-runtime-sdk' of https://github.com/HE-Xinyu/azure-s…
ArthurMa1978 564b697
update
ArthurMa1978 67682d2
Merge branch 'main' into k8s
ArthurMa1978 750578c
update
ArthurMa1978 e6e33ea
Merge branch 'main' into k8s
ArthurMa1978 53eb437
update
ArthurMa1978 4242ba3
update changelog
ArthurMa1978 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add load balancer tests
- Loading branch information
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...ntainerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime/assets.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "AssetsRepo": "Azure/azure-sdk-assets", | ||
| "AssetsRepoPrefixPath": "net", | ||
| "TagPrefix": "net/<service name>/Azure.ResourceManager.ContainerOrchestratorRuntime", | ||
| "TagPrefix": "net/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime", | ||
| "Tag": "" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...me/Azure.ResourceManager.ContainerOrchestratorRuntime/tests/Scenario/LoadBalancerTests.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| using System.Collections.Generic; | ||
| using Azure.Core; | ||
| using Azure.Core.TestFramework; | ||
| using Azure.ResourceManager.ContainerOrchestratorRuntime.Models; | ||
| using Azure.ResourceManager.Kubernetes; | ||
| using NUnit.Framework; | ||
|
|
||
| namespace Azure.ResourceManager.ContainerOrchestratorRuntime.Tests.Tests | ||
| { | ||
| [TestFixture] | ||
| public class LoadBalancerTests : ContainerOrchestratorRuntimeManagementTestBase | ||
| { | ||
| public LoadBalancerTests() : base(false) | ||
| { | ||
| } | ||
|
|
||
| [TestCase] | ||
| [RecordedTest] | ||
| public void CreateLoadBalancer() | ||
| { | ||
| var connectedCluster = ConnectedClusterResource.CreateResourceIdentifier("b9e38f20-7c9c-4497-a25d-1a0c5eef2108", "xinyuhe-canary", "test-cluster-euap-arc"); | ||
| var loadBalancerCollection = new LoadBalancerCollection(Client, connectedCluster); | ||
| var loadBalancerData = new LoadBalancerData | ||
| { | ||
| AdvertiseMode = AdvertiseMode.ARP | ||
| }; | ||
| loadBalancerData.Addresses.Add("192.168.10.1/32"); | ||
| loadBalancerCollection.CreateOrUpdate(WaitUntil.Completed, "testlb", loadBalancerData); | ||
| var bgpPeerData = new BgpPeerData | ||
| { | ||
| MyAsn = 64000, | ||
| PeerAsn = 64001, | ||
| PeerAddress = "192.168.2.0" | ||
| }; | ||
| var bgpPeerCollection = new BgpPeerCollection(Client, connectedCluster); | ||
| bgpPeerCollection.CreateOrUpdate(WaitUntil.Completed, "testpeer", bgpPeerData); | ||
| } | ||
| } | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.