summaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorDaniel Watkins <daniel.watkins@canonical.com>2016-09-13 16:11:47 +0100
committerusd-importer <ubuntu-server@lists.ubuntu.com>2016-09-14 10:39:12 +0000
commit5009a9d0f3606fc08a80ec0d59076d8dc48d2f25 (patch)
treead67eef74c5208178950db6ee28195e2137fa713 /tests/data
parent0f7cef5b52162d1ebb31a738bd8fc9febe1fbda6 (diff)
downloadvyos-walinuxagent-5009a9d0f3606fc08a80ec0d59076d8dc48d2f25.tar.gz
vyos-walinuxagent-5009a9d0f3606fc08a80ec0d59076d8dc48d2f25.zip
Import patches-unapplied version 2.1.5-0ubuntu1 to ubuntu/yakkety-proposed
Imported using git-ubuntu import. Changelog parent: 0f7cef5b52162d1ebb31a738bd8fc9febe1fbda6 New changelog entries: * New upstream release (LP: #1603581) - d/patches/disable-auto-update.patch: - The new version introduces auto-updating of the agent to its latest version via an internal mechanism; disable this - d/patches/fix_shebangs.patch: - Dropped in favour of the dh_python3 --shebang option. - Refreshed d/patches/disable_udev_overrides.patch
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/dhcp.leases56
-rw-r--r--tests/data/dhcp.leases.multi57
-rwxr-xr-xtests/data/ext/sample_ext/sample.py18
-rw-r--r--tests/data/ga/WALinuxAgent-2.1.5.zipbin0 -> 244184 bytes
-rw-r--r--tests/data/wire/ext_conf.xml34
-rw-r--r--tests/data/wire/ext_conf_autoupgrade.xml28
-rw-r--r--tests/data/wire/ext_conf_autoupgrade_internalversion.xml28
-rw-r--r--tests/data/wire/ext_conf_internalversion.xml28
-rw-r--r--tests/data/wire/ga_manifest.xml48
-rw-r--r--tests/data/wire/manifest.xml50
10 files changed, 309 insertions, 38 deletions
diff --git a/tests/data/dhcp.leases b/tests/data/dhcp.leases
new file mode 100644
index 0000000..cb4f396
--- /dev/null
+++ b/tests/data/dhcp.leases
@@ -0,0 +1,56 @@
+lease {
+ interface "eth0";
+ fixed-address 10.0.1.4;
+ server-name "RDE41D2D9BB18C";
+ option subnet-mask 255.255.255.0;
+ option dhcp-lease-time 4294967295;
+ option routers 10.0.1.1;
+ option dhcp-message-type 5;
+ option dhcp-server-identifier 168.63.129.16;
+ option domain-name-servers invalid;
+ option dhcp-renewal-time 4294967295;
+ option rfc3442-classless-static-routes 0,10,0,1,1,32,168,63,129,16,10,0,1,1;
+ option unknown-245 a8:3f:81:10;
+ option dhcp-rebinding-time 4294967295;
+ option domain-name "qylsde3bnlhu5dstzf3bav5inc.fx.internal.cloudapp.net";
+ renew 0 2152/07/23 23:27:10;
+ rebind 0 2152/07/23 23:27:10;
+ expire 0 never;
+}
+lease {
+ interface "eth0";
+ fixed-address 10.0.1.4;
+ server-name "RDE41D2D9BB18C";
+ option subnet-mask 255.255.255.0;
+ option dhcp-lease-time 4294967295;
+ option routers 10.0.1.1;
+ option dhcp-message-type 5;
+ option dhcp-server-identifier 168.63.129.16;
+ option domain-name-servers expired;
+ option dhcp-renewal-time 4294967295;
+ option unknown-245 a8:3f:81:10;
+ option dhcp-rebinding-time 4294967295;
+ option domain-name "qylsde3bnlhu5dstzf3bav5inc.fx.internal.cloudapp.net";
+ renew 4 2015/06/16 16:58:54;
+ rebind 4 2015/06/16 16:58:54;
+ expire 4 2015/06/16 16:58:54;
+}
+lease {
+ interface "eth0";
+ fixed-address 10.0.1.4;
+ server-name "RDE41D2D9BB18C";
+ option subnet-mask 255.255.255.0;
+ option dhcp-lease-time 4294967295;
+ option routers 10.0.1.1;
+ option dhcp-message-type 5;
+ option dhcp-server-identifier 168.63.129.16;
+ option domain-name-servers 168.63.129.16;
+ option dhcp-renewal-time 4294967295;
+ option rfc3442-classless-static-routes 0,10,0,1,1,32,168,63,129,16,10,0,1,1;
+ option unknown-245 a8:3f:81:10;
+ option dhcp-rebinding-time 4294967295;
+ option domain-name "qylsde3bnlhu5dstzf3bav5inc.fx.internal.cloudapp.net";
+ renew 0 2152/07/23 23:27:10;
+ rebind 0 2152/07/23 23:27:10;
+ expire 0 2152/07/23 23:27:10;
+}
diff --git a/tests/data/dhcp.leases.multi b/tests/data/dhcp.leases.multi
new file mode 100644
index 0000000..cfe9c67
--- /dev/null
+++ b/tests/data/dhcp.leases.multi
@@ -0,0 +1,57 @@
+lease {
+ interface "eth0";
+ fixed-address 10.0.1.4;
+ server-name "RDE41D2D9BB18C";
+ option subnet-mask 255.255.255.0;
+ option dhcp-lease-time 4294967295;
+ option routers 10.0.1.1;
+ option dhcp-message-type 5;
+ option dhcp-server-identifier 168.63.129.16;
+ option domain-name-servers first;
+ option dhcp-renewal-time 4294967295;
+ option rfc3442-classless-static-routes 0,10,0,1,1,32,168,63,129,16,10,0,1,1;
+ option unknown-245 a8:3f:81:10;
+ option dhcp-rebinding-time 4294967295;
+ option domain-name "qylsde3bnlhu5dstzf3bav5inc.fx.internal.cloudapp.net";
+ renew 0 2152/07/23 23:27:10;
+ rebind 0 2152/07/23 23:27:10;
+ expire 0 2152/07/23 23:27:10;
+}
+lease {
+ interface "eth0";
+ fixed-address 10.0.1.4;
+ server-name "RDE41D2D9BB18C";
+ option subnet-mask 255.255.255.0;
+ option dhcp-lease-time 4294967295;
+ option routers 10.0.1.1;
+ option dhcp-message-type 5;
+ option dhcp-server-identifier 168.63.129.16;
+ option domain-name-servers second;
+ option dhcp-renewal-time 4294967295;
+ option rfc3442-classless-static-routes 0,10,0,1,1,32,168,63,129,16,10,0,1,1;
+ option unknown-245 a8:3f:81:10;
+ option dhcp-rebinding-time 4294967295;
+ option domain-name "qylsde3bnlhu5dstzf3bav5inc.fx.internal.cloudapp.net";
+ renew 0 2152/07/23 23:27:10;
+ rebind 0 2152/07/23 23:27:10;
+ expire 0 2152/07/23 23:27:10;
+}
+lease {
+ interface "eth0";
+ fixed-address 10.0.1.4;
+ server-name "RDE41D2D9BB18C";
+ option subnet-mask 255.255.255.0;
+ option dhcp-lease-time 4294967295;
+ option routers 10.0.1.1;
+ option dhcp-message-type 5;
+ option dhcp-server-identifier 168.63.129.16;
+ option domain-name-servers expired;
+ option dhcp-renewal-time 4294967295;
+ option rfc3442-classless-static-routes 0,10,0,1,1,32,168,63,129,16,10,0,1,1;
+ option unknown-245 a8:3f:81:10;
+ option dhcp-rebinding-time 4294967295;
+ option domain-name "qylsde3bnlhu5dstzf3bav5inc.fx.internal.cloudapp.net";
+ renew 0 2152/07/23 23:27:10;
+ rebind 0 2152/07/23 23:27:10;
+ expire 0 2012/07/23 23:27:10;
+}
diff --git a/tests/data/ext/sample_ext/sample.py b/tests/data/ext/sample_ext/sample.py
index 7107ac2..74bd839 100755
--- a/tests/data/ext/sample_ext/sample.py
+++ b/tests/data/ext/sample_ext/sample.py
@@ -2,18 +2,19 @@
import os
+
def get_seq():
- latest_seq = -1;
+ latest_seq = -1
config_dir = os.path.join(os.getcwd(), "config")
if os.path.isdir(config_dir):
for item in os.listdir(config_dir):
item_path = os.path.join(config_dir, item)
if os.path.isfile(item_path):
- seperator = item.rfind(".")
- if seperator > 0 and item[seperator + 1:] == "settings":
- seq = int(item[0: seperator])
- if seq > latest_seq:
- latest_seq = seq
+ separator = item.rfind(".")
+ if separator > 0 and item[separator + 1:] == "settings":
+ sequence = int(item[0: separator])
+ if sequence > latest_seq:
+ latest_seq = sequence
return latest_seq
@@ -28,6 +29,9 @@ succeed_status = """
if __name__ == "__main__":
seq = get_seq()
if seq >= 0:
- status_file = os.path.join(os.getcwd(), "status", "{0}.status".format(seq))
+ status_path = os.path.join(os.getcwd(), "status")
+ if not os.path.exists(status_path):
+ os.makedirs(status_path)
+ status_file = os.path.join(status_path, "{0}.status".format(seq))
with open(status_file, "w+") as status:
status.write(succeed_status)
diff --git a/tests/data/ga/WALinuxAgent-2.1.5.zip b/tests/data/ga/WALinuxAgent-2.1.5.zip
new file mode 100644
index 0000000..b1f2684
--- /dev/null
+++ b/tests/data/ga/WALinuxAgent-2.1.5.zip
Binary files differ
diff --git a/tests/data/wire/ext_conf.xml b/tests/data/wire/ext_conf.xml
index 725271d..0b7c528 100644
--- a/tests/data/wire/ext_conf.xml
+++ b/tests/data/wire/ext_conf.xml
@@ -1,44 +1,24 @@
<Extensions version="1.0.0.0" goalStateIncarnation="9"><GuestAgentExtension xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<GAFamilies>
<GAFamily>
- <Name>Win8</Name>
+ <Name>Prod</Name>
<Uris>
- <Uri>http://rdfepirv2hknprdstr03.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win8_asiaeast_manifest.xml</Uri>
- <Uri>http://rdfepirv2hknprdstr04.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win8_asiaeast_manifest.xml</Uri>
- <Uri>http://rdfepirv2hknprdstr05.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win8_asiaeast_manifest.xml</Uri>
- <Uri>http://rdfepirv2hknprdstr06.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win8_asiaeast_manifest.xml</Uri>
- <Uri>http://rdfepirv2hknprdstr07.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win8_asiaeast_manifest.xml</Uri>
- <Uri>http://rdfepirv2hknprdstr08.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win8_asiaeast_manifest.xml</Uri>
- <Uri>http://rdfepirv2hknprdstr09.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win8_asiaeast_manifest.xml</Uri>
- <Uri>http://rdfepirv2hknprdstr10.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win8_asiaeast_manifest.xml</Uri>
- <Uri>http://rdfepirv2hknprdstr11.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win8_asiaeast_manifest.xml</Uri>
- <Uri>http://rdfepirv2hknprdstr12.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win8_asiaeast_manifest.xml</Uri>
- <Uri>http://zrdfepirv2hk2prdstr01.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win8_asiaeast_manifest.xml</Uri>
+ <Uri>http://manifest_of_ga.xml</Uri>
</Uris>
</GAFamily>
<GAFamily>
- <Name>Win7</Name>
+ <Name>Test</Name>
<Uris>
- <Uri>http://rdfepirv2hknprdstr03.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win7_asiaeast_manifest.xml</Uri>
- <Uri>http://rdfepirv2hknprdstr04.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win7_asiaeast_manifest.xml</Uri>
- <Uri>http://rdfepirv2hknprdstr05.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win7_asiaeast_manifest.xml</Uri>
- <Uri>http://rdfepirv2hknprdstr06.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win7_asiaeast_manifest.xml</Uri>
- <Uri>http://rdfepirv2hknprdstr07.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win7_asiaeast_manifest.xml</Uri>
- <Uri>http://rdfepirv2hknprdstr08.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win7_asiaeast_manifest.xml</Uri>
- <Uri>http://rdfepirv2hknprdstr09.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win7_asiaeast_manifest.xml</Uri>
- <Uri>http://rdfepirv2hknprdstr10.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win7_asiaeast_manifest.xml</Uri>
- <Uri>http://rdfepirv2hknprdstr11.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win7_asiaeast_manifest.xml</Uri>
- <Uri>http://rdfepirv2hknprdstr12.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win7_asiaeast_manifest.xml</Uri>
- <Uri>http://zrdfepirv2hk2prdstr01.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win7_asiaeast_manifest.xml</Uri>
- </Uris>
+ <Uri>http://manifest_of_ga.xml</Uri>
+ </Uris>
</GAFamily>
</GAFamilies>
</GuestAgentExtension>
<Plugins>
- <Plugin name="OSTCExtensions.ExampleHandlerLinux" version="1.0" location="http://rdfepirv2hknprdstr03.blob.core.windows.net/b01058962be54ceca550a390fa5ff064/Microsoft.OSTCExtensions_ExampleHandlerLinux_asiaeast_manifest.xml" config="" state="enabled" autoUpgrade="false" failoverlocation="http://rdfepirv2hknprdstr04.blob.core.windows.net/b01058962be54ceca550a390fa5ff064/Microsoft.OSTCExtensions_ExampleHandlerLinux_asiaeast_manifest.xml" runAsStartupTask="false" isJson="true" />
+ <Plugin name="OSTCExtensions.ExampleHandlerLinux" version="1.0.0" location="http://rdfepirv2hknprdstr03.blob.core.windows.net/b01058962be54ceca550a390fa5ff064/Microsoft.OSTCExtensions_ExampleHandlerLinux_asiaeast_manifest.xml" config="" state="enabled" autoUpgrade="false" failoverlocation="http://rdfepirv2hknprdstr04.blob.core.windows.net/b01058962be54ceca550a390fa5ff064/Microsoft.OSTCExtensions_ExampleHandlerLinux_asiaeast_manifest.xml" runAsStartupTask="false" isJson="true" />
</Plugins>
<PluginSettings>
- <Plugin name="OSTCExtensions.ExampleHandlerLinux" version="1.0">
+ <Plugin name="OSTCExtensions.ExampleHandlerLinux" version="1.0.0">
<RuntimeSettings seqNo="0">{"runtimeSettings":[{"handlerSettings":{"protectedSettingsCertThumbprint":"4037FBF5F1F3014F99B5D6C7799E9B20E6871CB3","protectedSettings":"MIICWgYJK","publicSettings":{"foo":"bar"}}}]}</RuntimeSettings>
</Plugin>
</PluginSettings>
diff --git a/tests/data/wire/ext_conf_autoupgrade.xml b/tests/data/wire/ext_conf_autoupgrade.xml
new file mode 100644
index 0000000..1d6919e
--- /dev/null
+++ b/tests/data/wire/ext_conf_autoupgrade.xml
@@ -0,0 +1,28 @@
+<Extensions version="1.0.0.0" goalStateIncarnation="9"><GuestAgentExtension xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
+ <GAFamilies>
+ <GAFamily>
+ <Name>Win8</Name>
+ <Uris>
+ <Uri>http://rdfepirv2hknprdstr03.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win8_asiaeast_manifest.xml</Uri>
+ <Uri>http://rdfepirv2hknprdstr04.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win8_asiaeast_manifest.xml</Uri>
+ </Uris>
+ </GAFamily>
+ <GAFamily>
+ <Name>Win7</Name>
+ <Uris>
+ <Uri>http://rdfepirv2hknprdstr03.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win7_asiaeast_manifest.xml</Uri>
+ <Uri>http://rdfepirv2hknprdstr04.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win7_asiaeast_manifest.xml</Uri>
+ </Uris>
+ </GAFamily>
+ </GAFamilies>
+</GuestAgentExtension>
+<Plugins>
+ <Plugin name="OSTCExtensions.ExampleHandlerLinux" version="1.0.0" location="http://rdfepirv2hknprdstr03.blob.core.windows.net/b01058962be54ceca550a390fa5ff064/Microsoft.OSTCExtensions_ExampleHandlerLinux_asiaeast_manifest.xml" config="" state="enabled" autoUpgrade="true" failoverlocation="http://rdfepirv2hknprdstr04.blob.core.windows.net/b01058962be54ceca550a390fa5ff064/Microsoft.OSTCExtensions_ExampleHandlerLinux_asiaeast_manifest.xml" runAsStartupTask="false" isJson="true" />
+</Plugins>
+<PluginSettings>
+ <Plugin name="OSTCExtensions.ExampleHandlerLinux" version="1.0.0">
+ <RuntimeSettings seqNo="0">{"runtimeSettings":[{"handlerSettings":{"protectedSettingsCertThumbprint":"4037FBF5F1F3014F99B5D6C7799E9B20E6871CB3","protectedSettings":"MIICWgYJK","publicSettings":{"foo":"bar"}}}]}</RuntimeSettings>
+ </Plugin>
+</PluginSettings>
+<StatusUploadBlob>https://yuezhatest.blob.core.windows.net/vhds/test-cs12.test-cs12.test-cs12.status?sr=b&amp;sp=rw&amp;se=9999-01-01&amp;sk=key1&amp;sv=2014-02-14&amp;sig=hfRh7gzUE7sUtYwke78IOlZOrTRCYvkec4hGZ9zZzXo%3D</StatusUploadBlob></Extensions>
+
diff --git a/tests/data/wire/ext_conf_autoupgrade_internalversion.xml b/tests/data/wire/ext_conf_autoupgrade_internalversion.xml
new file mode 100644
index 0000000..1e613ea
--- /dev/null
+++ b/tests/data/wire/ext_conf_autoupgrade_internalversion.xml
@@ -0,0 +1,28 @@
+<Extensions version="1.0.0.0" goalStateIncarnation="9"><GuestAgentExtension xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
+ <GAFamilies>
+ <GAFamily>
+ <Name>Win8</Name>
+ <Uris>
+ <Uri>http://rdfepirv2hknprdstr03.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win8_asiaeast_manifest.xml</Uri>
+ <Uri>http://rdfepirv2hknprdstr04.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win8_asiaeast_manifest.xml</Uri>
+ </Uris>
+ </GAFamily>
+ <GAFamily>
+ <Name>Win7</Name>
+ <Uris>
+ <Uri>http://rdfepirv2hknprdstr03.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win7_asiaeast_manifest.xml</Uri>
+ <Uri>http://rdfepirv2hknprdstr04.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win7_asiaeast_manifest.xml</Uri>
+ </Uris>
+ </GAFamily>
+ </GAFamilies>
+</GuestAgentExtension>
+<Plugins>
+ <Plugin name="OSTCExtensions.ExampleHandlerLinux" version="1.2.0" location="http://rdfepirv2hknprdstr03.blob.core.windows.net/b01058962be54ceca550a390fa5ff064/Microsoft.OSTCExtensions_ExampleHandlerLinux_asiaeast_manifest.xml" config="" state="enabled" autoUpgrade="true" failoverlocation="http://rdfepirv2hknprdstr04.blob.core.windows.net/b01058962be54ceca550a390fa5ff064/Microsoft.OSTCExtensions_ExampleHandlerLinux_asiaeast_manifest.xml" runAsStartupTask="false" isJson="true" />
+</Plugins>
+<PluginSettings>
+ <Plugin name="OSTCExtensions.ExampleHandlerLinux" version="1.2.0">
+ <RuntimeSettings seqNo="0">{"runtimeSettings":[{"handlerSettings":{"protectedSettingsCertThumbprint":"4037FBF5F1F3014F99B5D6C7799E9B20E6871CB3","protectedSettings":"MIICWgYJK","publicSettings":{"foo":"bar"}}}]}</RuntimeSettings>
+ </Plugin>
+</PluginSettings>
+<StatusUploadBlob>https://yuezhatest.blob.core.windows.net/vhds/test-cs12.test-cs12.test-cs12.status?sr=b&amp;sp=rw&amp;se=9999-01-01&amp;sk=key1&amp;sv=2014-02-14&amp;sig=hfRh7gzUE7sUtYwke78IOlZOrTRCYvkec4hGZ9zZzXo%3D</StatusUploadBlob></Extensions>
+
diff --git a/tests/data/wire/ext_conf_internalversion.xml b/tests/data/wire/ext_conf_internalversion.xml
new file mode 100644
index 0000000..1e613ea
--- /dev/null
+++ b/tests/data/wire/ext_conf_internalversion.xml
@@ -0,0 +1,28 @@
+<Extensions version="1.0.0.0" goalStateIncarnation="9"><GuestAgentExtension xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
+ <GAFamilies>
+ <GAFamily>
+ <Name>Win8</Name>
+ <Uris>
+ <Uri>http://rdfepirv2hknprdstr03.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win8_asiaeast_manifest.xml</Uri>
+ <Uri>http://rdfepirv2hknprdstr04.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win8_asiaeast_manifest.xml</Uri>
+ </Uris>
+ </GAFamily>
+ <GAFamily>
+ <Name>Win7</Name>
+ <Uris>
+ <Uri>http://rdfepirv2hknprdstr03.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win7_asiaeast_manifest.xml</Uri>
+ <Uri>http://rdfepirv2hknprdstr04.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.WindowsAzure.GuestAgent_Win7_asiaeast_manifest.xml</Uri>
+ </Uris>
+ </GAFamily>
+ </GAFamilies>
+</GuestAgentExtension>
+<Plugins>
+ <Plugin name="OSTCExtensions.ExampleHandlerLinux" version="1.2.0" location="http://rdfepirv2hknprdstr03.blob.core.windows.net/b01058962be54ceca550a390fa5ff064/Microsoft.OSTCExtensions_ExampleHandlerLinux_asiaeast_manifest.xml" config="" state="enabled" autoUpgrade="true" failoverlocation="http://rdfepirv2hknprdstr04.blob.core.windows.net/b01058962be54ceca550a390fa5ff064/Microsoft.OSTCExtensions_ExampleHandlerLinux_asiaeast_manifest.xml" runAsStartupTask="false" isJson="true" />
+</Plugins>
+<PluginSettings>
+ <Plugin name="OSTCExtensions.ExampleHandlerLinux" version="1.2.0">
+ <RuntimeSettings seqNo="0">{"runtimeSettings":[{"handlerSettings":{"protectedSettingsCertThumbprint":"4037FBF5F1F3014F99B5D6C7799E9B20E6871CB3","protectedSettings":"MIICWgYJK","publicSettings":{"foo":"bar"}}}]}</RuntimeSettings>
+ </Plugin>
+</PluginSettings>
+<StatusUploadBlob>https://yuezhatest.blob.core.windows.net/vhds/test-cs12.test-cs12.test-cs12.status?sr=b&amp;sp=rw&amp;se=9999-01-01&amp;sk=key1&amp;sv=2014-02-14&amp;sig=hfRh7gzUE7sUtYwke78IOlZOrTRCYvkec4hGZ9zZzXo%3D</StatusUploadBlob></Extensions>
+
diff --git a/tests/data/wire/ga_manifest.xml b/tests/data/wire/ga_manifest.xml
new file mode 100644
index 0000000..f43daf5
--- /dev/null
+++ b/tests/data/wire/ga_manifest.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<PluginVersionManifest xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
+ <Plugins>
+ <Plugin>
+ <Version>1.0.0</Version>
+ <Uris>
+ <Uri>http://foo.bar/zar/OSTCExtensions.WALinuxAgent__1.0.0</Uri>
+ </Uris>
+ </Plugin>
+ <Plugin>
+ <Version>1.1.0</Version>
+ <Uris>
+ <Uri>http://foo.bar/zar/OSTCExtensions.WALinuxAgent__1.1.0</Uri>
+ </Uris>
+ </Plugin>
+ <Plugin>
+ <Version>2.0.0</Version><Uris><Uri>http://host/OSTCExtensions.WALinuxAgent__2.0.0</Uri></Uris>
+ </Plugin>
+ <Plugin>
+ <Version>2.1.0</Version><Uris><Uri>http://host/OSTCExtensions.WALinuxAgent__2.1.0</Uri></Uris>
+ </Plugin>
+ <Plugin>
+ <Version>2.1.1</Version><Uris><Uri>http://host/OSTCExtensions.WALinuxAgent__2.1.1</Uri></Uris>
+ </Plugin>
+ <Plugin>
+ <Version>2.2.0</Version><Uris><Uri>http://host/OSTCExtensions.WALinuxAgent__2.2.0</Uri></Uris>
+ </Plugin>
+ <Plugin>
+ <Version>3.0</Version><Uris><Uri>http://host/OSTCExtensions.WALinuxAgent__3.0</Uri></Uris>
+ </Plugin>
+ <Plugin>
+ <Version>3.1</Version><Uris><Uri>http://host/OSTCExtensions.WALinuxAgent__3.1</Uri></Uris>
+ </Plugin>
+ <Plugin>
+ <Version>4.0.0.0</Version><Uris><Uri>http://host/OSTCExtensions.WALinuxAgent__3.0</Uri></Uris>
+ </Plugin>
+ <Plugin>
+ <Version>4.0.0.1</Version><Uris><Uri>http://host/OSTCExtensions.WALinuxAgent__3.1</Uri></Uris>
+ </Plugin>
+ <Plugin>
+ <Version>4.1.0.0</Version><Uris><Uri>http://host/OSTCExtensions.WALinuxAgent__3.1</Uri></Uris>
+ </Plugin>
+ <Plugin>
+ <Version>99999.0.0.0</Version><Uris><Uri>http://host/OSTCExtensions.WALinuxAgent__99999.0.0.0</Uri></Uris>
+ </Plugin>
+ </Plugins>
+</PluginVersionManifest>
+
diff --git a/tests/data/wire/manifest.xml b/tests/data/wire/manifest.xml
index 943755a..ff42b9d 100644
--- a/tests/data/wire/manifest.xml
+++ b/tests/data/wire/manifest.xml
@@ -2,17 +2,59 @@
<PluginVersionManifest xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Plugins>
<Plugin>
- <Version>1.0</Version>
+ <Version>1.0.0</Version>
<Uris>
- <Uri>http://foo.bar/zar/OSTCExtensions.ExampleHandlerLinux</Uri>
+ <Uri>http://foo.bar/zar/OSTCExtensions.ExampleHandlerLinux__1.0.0</Uri>
</Uris>
</Plugin>
<Plugin>
- <Version>1.1</Version>
+ <Version>1.1.0</Version>
<Uris>
- <Uri>http://foo.bar/zar/OSTCExtensions.ExampleHandlerLinux</Uri>
+ <Uri>http://foo.bar/zar/OSTCExtensions.ExampleHandlerLinux__1.1.0</Uri>
</Uris>
</Plugin>
+ <Plugin>
+ <Version>2.0.0</Version><Uris><Uri>http://host/OSTCExtensions.ExampleHandlerLinux__2.0.0</Uri></Uris>
+ </Plugin>
+ <Plugin>
+ <Version>2.1.0</Version><Uris><Uri>http://host/OSTCExtensions.ExampleHandlerLinux__2.1.0</Uri></Uris>
+ <DisallowMajorVersionUpgrade>True</DisallowMajorVersionUpgrade>
+ </Plugin>
+ <Plugin>
+ <Version>2.1.1</Version><Uris><Uri>http://host/OSTCExtensions.ExampleHandlerLinux__2.1.1</Uri></Uris>
+ </Plugin>
+ <Plugin>
+ <Version>2.2.0</Version><Uris><Uri>http://host/OSTCExtensions.ExampleHandlerLinux__2.2.0</Uri></Uris>
+ </Plugin>
+ <Plugin>
+ <Version>3.0</Version><Uris><Uri>http://host/OSTCExtensions.ExampleHandlerLinux__3.0</Uri></Uris>
+ </Plugin>
+ <Plugin>
+ <Version>3.1</Version><Uris><Uri>http://host/OSTCExtensions.ExampleHandlerLinux__3.1</Uri></Uris>
+ </Plugin>
+ <Plugin>
+ <Version>4.0.0.0</Version><Uris><Uri>http://host/OSTCExtensions.ExampleHandlerLinux__3.0</Uri></Uris>
+ </Plugin>
+ <Plugin>
+ <Version>4.0.0.1</Version><Uris><Uri>http://host/OSTCExtensions.ExampleHandlerLinux__3.1</Uri></Uris>
+ </Plugin>
+ <Plugin>
+ <Version>4.1.0.0</Version><Uris><Uri>http://host/OSTCExtensions.ExampleHandlerLinux__3.1</Uri></Uris>
+ </Plugin>
</Plugins>
+ <InternalPlugins>
+ <Plugin>
+ <Version>1.2.0</Version>
+ <Uris>
+ <Uri>http://foo.bar/zar/OSTCExtensions.ExampleHandlerLinux__1.2.0</Uri>
+ </Uris>
+ </Plugin>
+ <Plugin>
+ <Version>2.3.0</Version><Uris><Uri>http://host/OSTCExtensions.ExampleHandlerLinux__2.3.0</Uri></Uris>
+ </Plugin>
+ <Plugin>
+ <Version>2.4.0</Version><Uris><Uri>http://host/OSTCExtensions.ExampleHandlerLinux__2.3.0</Uri></Uris>
+ </Plugin>
+ </InternalPlugins>
</PluginVersionManifest>