~tribaal/txaws/xss-hardening

« back to all changes in this revision

Viewing changes to txaws/testing/payload.py

  • Committer: Duncan McGreggor
  • Date: 2009-10-06 18:34:35 UTC
  • mfrom: (33.1.5 444124-describe-zones)
  • Revision ID: duncan@canonical.com-20091006183435-el9j4wdv2229l63f
Merged 444124-describe-zones [r=therve] [f=444124]

Added support for getting a list of availability zones.

Show diffs side-by-side

added added

removed removed

Lines of Context:
542
542
  </addressesSet>
543
543
</DescribeAddressesResponse>
544
544
""" % (aws_api,)
 
545
 
 
546
 
 
547
sample_describe_availability_zones_single_result = """\
 
548
<DescribeAvailabilityZonesResponse xmlns="http://ec2.amazonaws.com/doc/%s/">
 
549
  <availabilityZoneInfo>
 
550
    <item>
 
551
      <zoneName>us-east-1a</zoneName>
 
552
      <zoneState>available</zoneState>
 
553
    </item>
 
554
  </availabilityZoneInfo>
 
555
</DescribeAvailabilityZonesResponse>
 
556
""" % (aws_api,)
 
557
 
 
558
 
 
559
sample_describe_availability_zones_multiple_results = """\
 
560
<DescribeAvailabilityZonesResponse xmlns="http://ec2.amazonaws.com/doc/%s/">
 
561
  <availabilityZoneInfo>
 
562
    <item>
 
563
      <zoneName>us-east-1a</zoneName>
 
564
      <zoneState>available</zoneState>
 
565
    </item>
 
566
    <item>
 
567
      <zoneName>us-east-1b</zoneName>
 
568
      <zoneState>available</zoneState>
 
569
    </item>
 
570
    <item>
 
571
      <zoneName>us-east-1c</zoneName>
 
572
      <zoneState>available</zoneState>
 
573
    </item>
 
574
  </availabilityZoneInfo>
 
575
</DescribeAvailabilityZonesResponse>
 
576
""" % (aws_api,)
 
577