Skip to content

Commit

Permalink
testdata: add omaha test data
Browse files Browse the repository at this point in the history
Add example files of OMAHA request/response xml files.
  • Loading branch information
dongsupark committed Oct 11, 2023
1 parent 4739a0b commit a9b3019
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/testdata/omaha-request-example.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<request protocol="3.0" version="update_engine-0.4.10" updaterversion="update_engine-0.4.10" installsource="scheduler" ismachine="1">
<os version="Chateau" platform="CoreOS" sp="2512.2.0_x86_64"></os>
<app appid="e96281a6-d1af-4bde-9a0a-97b76e56dc57" version="1.2.3" track="alpha" bootid="{965fb4c5-ad3e-4eb7-a4c2-ca0c0e31ec84}" oem="ami" oemversion="0.1.1-r1" alephversion="1688.5.3" machineid="abce671d61774703ac7be60715220bfe" lang="en-US" board="amd64-usr" hardware_class="" delta_okay="false" >
<ping active="1"></ping>
<updatecheck></updatecheck>
<event eventtype="3" eventresult="1"></event>
</app>
</request>
24 changes: 24 additions & 0 deletions src/testdata/omaha-response-example.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<response protocol="3.0" server="nebraska">
<daystart elapsed_seconds="0"></daystart>
<app appid="e96281a6-d1af-4bde-9a0a-97b76e56dc57" status="ok">
<ping status="ok"></ping>
<updatecheck status="ok">
<urls>
<url codebase="https://update.release.flatcar-linux.net/amd64-usr/3732.0.0/"></url>
</urls>
<manifest version="3732.0.0">
<packages>
<package name="flatcar_production_update.gz" hash="I6DGNAOrJRUxPbCuLw+AITfiVMo=" size="382137917" required="true">
</package>
<package name="oem-azure.gz" hash="wepxwEV9L2SS1l/ycEZSqWM3dDc=" hash_sha256="3aed3129de50b959a97e4913ba485bd60e72d2bb6aa377d5ed404103f0680043" size="40897503" required="false"></package>
<package name="oem-qemu.gz" hash="+06iWWI6gaSlcIHV7pjIEJrE9CA=" hash_sha256="8ab630ee4079ecd5f8f512c05b44fec5e4f8db844db916c67c8d54a575cfe506" size="2282" required="false"></package>
</packages>
<actions>
<action event="postinstall" sha256="stLG3U/o4Ar8TMHFwT/RWB0iNkaWOO6QtLrq6+AHBbA=" DisablePayloadBackoff="true"></action>
</actions>
</manifest>
</updatecheck>
<event status="ok"></event>
</app>
</response>

0 comments on commit a9b3019

Please sign in to comment.