    # File lib/fog/aws/requests/cdn/get_invalidation_list.rb, line 43
            def get_invalidation_list(distribution_id, options = {})
              distribution = self.data[:distributions][distribution_id]
              unless distribution
                Fog::CDN::AWS::Mock.error(:no_such_distribution)
              end

              invalidations = (self.data[:invalidations][distribution_id] || {}).values

              invalidations.each do |invalidation|
                if invalidation['Status'] == 'InProgress' && (Time.now - Time.parse(invalidation['CreateTime']) >= Fog::Mock.delay * 2)
                  invalidation['Status'] = 'Completed'
                  distribution['InProgressInvalidationBatches'] -= 1
                end
              end

              response = Excon::Response.new
              response.status = 200

              response.body = {
                'Marker' => Fog::Mock.random_hex(16),
                'IsTruncated' => false,
                'MaxItems' => 100,
                'InvalidationSummary' => invalidations.map { |i| to_invalidation_summary(i) }
              }
              response
            end