-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] vcenterreceiver: Updates mockserver responses for better VM R…
…esource Pool attributes (#32448) **Description:** <Describe what has changed.> Minor change. VMs (not templates) typically have Resource Pool attributes associated with them, and the mockserver responses were not reflecting this for the unit tests. Updated the tests to reflect this. **Link to tracking Issue:** <Issue number if applicable> N/A **Testing:** <Describe what testing was performed and which tests were added.> Unit tests updated and still working **Documentation:** <Describe the documentation added.> N/A --------- Co-authored-by: Daniel Jaglowski <jaglows3@gmail.com>
- Loading branch information
1 parent
5287f6e
commit 941f828
Showing
4 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
14 changes: 14 additions & 0 deletions
14
receiver/vcenterreceiver/internal/mockserver/responses/vm-resource-pool.xml
This file contains 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,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<soapenv:Body> | ||
<RetrievePropertiesResponse xmlns="urn:vim25"> | ||
<returnval> | ||
<obj type="VirtualMachine">vm-1040</obj> | ||
<propSet> | ||
<name>resourcePool</name> | ||
<val type="ResourcePool" xsi:type="ManagedObjectReference">host-1002</val> | ||
</propSet> | ||
</returnval> | ||
</RetrievePropertiesResponse> | ||
</soapenv:Body> | ||
</soapenv:Envelope> |
This file contains 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