-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #506 from danielgtaylor/xml-empty-str
Parse empty XML string nodes as an empty Python string
- Loading branch information
Showing
17 changed files
with
420 additions
and
314 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
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
48 changes: 24 additions & 24 deletions
48
tests/unit/response_parsing/xml/responses/ec2-create-network-interface.json
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 |
---|---|---|
@@ -1,47 +1,47 @@ | ||
{ | ||
"ResponseMetadata": { | ||
"RequestId": "bd78c839-0895-4fac-a17f-98b559b6b630" | ||
}, | ||
}, | ||
"NetworkInterface": { | ||
"Status": "pending", | ||
"MacAddress": "02:74:b0:70:7f:1a", | ||
"SourceDestCheck": true, | ||
"VpcId": "vpc-c31dafaa", | ||
"Description": null, | ||
"NetworkInterfaceId": "eni-1bcb7772", | ||
"Status": "pending", | ||
"MacAddress": "02:74:b0:70:7f:1a", | ||
"SourceDestCheck": true, | ||
"VpcId": "vpc-c31dafaa", | ||
"Description": "", | ||
"NetworkInterfaceId": "eni-1bcb7772", | ||
"PrivateIpAddresses": [ | ||
{ | ||
"Primary": true, | ||
"Primary": true, | ||
"PrivateIpAddress": "10.0.2.140" | ||
}, | ||
}, | ||
{ | ||
"Primary": false, | ||
"Primary": false, | ||
"PrivateIpAddress": "10.0.2.172" | ||
}, | ||
}, | ||
{ | ||
"Primary": false, | ||
"Primary": false, | ||
"PrivateIpAddress": "10.0.2.169" | ||
}, | ||
}, | ||
{ | ||
"Primary": false, | ||
"Primary": false, | ||
"PrivateIpAddress": "10.0.2.170" | ||
}, | ||
}, | ||
{ | ||
"Primary": false, | ||
"Primary": false, | ||
"PrivateIpAddress": "10.0.2.171" | ||
} | ||
], | ||
"RequesterManaged": false, | ||
"AvailabilityZone": "ap-southeast-1b", | ||
], | ||
"RequesterManaged": false, | ||
"AvailabilityZone": "ap-southeast-1b", | ||
"Groups": [ | ||
{ | ||
"GroupName": "default", | ||
"GroupName": "default", | ||
"GroupId": "sg-1a2b3c4d" | ||
} | ||
], | ||
"SubnetId": "subnet-a61dafcf", | ||
"OwnerId": "251839141158", | ||
"TagSet": [], | ||
], | ||
"SubnetId": "subnet-a61dafcf", | ||
"OwnerId": "251839141158", | ||
"TagSet": [], | ||
"PrivateIpAddress": "10.0.2.140" | ||
} | ||
} |
14 changes: 7 additions & 7 deletions
14
tests/unit/response_parsing/xml/responses/ec2-create-volume.json
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"AvailabilityZone": "us-east-1a", | ||
"AvailabilityZone": "us-east-1a", | ||
"ResponseMetadata": { | ||
"RequestId": "59dbff89-35bd-4eac-99ed-be587EXAMPLE" | ||
}, | ||
"VolumeType": "standard", | ||
"VolumeId": "vol-1a2b3c4d", | ||
"State": "creating", | ||
"SnapshotId": null, | ||
"CreateTime": "YYYY-MM-DDTHH:MM:SS.000Z", | ||
}, | ||
"VolumeType": "standard", | ||
"VolumeId": "vol-1a2b3c4d", | ||
"State": "creating", | ||
"SnapshotId": "", | ||
"CreateTime": "YYYY-MM-DDTHH:MM:SS.000Z", | ||
"Size": 80 | ||
} |
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
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
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
30 changes: 15 additions & 15 deletions
30
tests/unit/response_parsing/xml/responses/ec2-import-instance.json
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 |
---|---|---|
@@ -1,29 +1,29 @@ | ||
{ | ||
"ConversionTask": { | ||
"ConversionTaskId": "import-i-ffvko9js", | ||
"ConversionTaskId": "import-i-ffvko9js", | ||
"ImportInstance": { | ||
"InstanceId": "i-12655a7f", | ||
"Description": null, | ||
"InstanceId": "i-12655a7f", | ||
"Description": "", | ||
"Volumes": [ | ||
{ | ||
"Status": "active", | ||
"AvailabilityZone": "us-east-1a", | ||
"Description": null, | ||
"Status": "active", | ||
"AvailabilityZone": "us-east-1a", | ||
"Description": "", | ||
"Image": { | ||
"Size": 1179593728, | ||
"ImportManifestUrl": "https://s3.amazonaws.com/myawsbucket/a3a5e1b6-590d-43cc-97c1-15c7325d3f41/Win_2008_Server_Data_Center_SP2_32-bit.vmdkmanifest.xml?AWSaccessKeyId=AKIAIOSFODNN7EXAMPLE%26Expires=1294855591%26Signature=5snej01T1TtL0uR7KExtEXAMPLE%3D", | ||
"Size": 1179593728, | ||
"ImportManifestUrl": "https://s3.amazonaws.com/myawsbucket/a3a5e1b6-590d-43cc-97c1-15c7325d3f41/Win_2008_Server_Data_Center_SP2_32-bit.vmdkmanifest.xml?AWSaccessKeyId=AKIAIOSFODNN7EXAMPLE%26Expires=1294855591%26Signature=5snej01T1TtL0uR7KExtEXAMPLE%3D", | ||
"Format": "VMDK" | ||
}, | ||
}, | ||
"Volume": { | ||
"Id": "vol-1a2b3c4d", | ||
"Id": "vol-1a2b3c4d", | ||
"Size": 12 | ||
}, | ||
"BytesConverted": 0, | ||
"StatusMessage": null | ||
}, | ||
"BytesConverted": 0, | ||
"StatusMessage": "" | ||
} | ||
] | ||
}, | ||
}, | ||
"ExpirationTime": "2010-12-22T12:01Z" | ||
}, | ||
}, | ||
"ResponseMetadata": {"RequestId": "7a62c49f-347e-4fc4-9331-6e8eEXAMPLE"} | ||
} |
Oops, something went wrong.