public MixedRealityRecordMatcher()
     : base(compareBodies: ShouldValidateBodies())
 {
     IgnoredHeaders.Add(ClientCorrelationVectorHeaderName);
     VolatileHeaders.Add(ClientCorrelationVectorHeaderName);
     VolatileResponseHeaders.Add(ClientCorrelationVectorHeaderName);
     if (!ShouldValidateBodies())
     {
         IgnoredHeaders.Add(ContentLengthHeaderName);
         VolatileHeaders.Add(ContentLengthHeaderName);
         VolatileResponseHeaders.Add(ContentLengthHeaderName);
     }
 }
        /// <summary>
        /// Creates a new StorageRecordMatcher to determine whether recordings
        /// have been meaningfully updated.
        /// </summary>
        /// <param name="sanitizer">The test record sanitizer.</param>
        public StorageRecordMatcher(RecordedTestSanitizer sanitizer)
            : base(sanitizer)
        {
            // Storage specific request headers to ignore
            VolatileHeaders.Add("x-ms-source-if-match");
            VolatileHeaders.Add("x-ms-source-if-none-match");
            VolatileHeaders.Add("x-ms-source-if-modified-since");
            VolatileHeaders.Add("x-ms-source-if-unmodified-since");
            VolatileHeaders.Add("x-ms-copy-source");

            // Storage specific response headers to ignore
            VolatileResponseHeaders.Add("Server");
            VolatileResponseHeaders.Add("x-ms-snapshot");
            VolatileResponseHeaders.Add("x-ms-copy-id");
            VolatileResponseHeaders.Add("x-ms-creation-time");
            VolatileResponseHeaders.Add("x-ms-copy-completion-time");
            VolatileResponseHeaders.Add("x-ms-copy-destination-snapshot");
            VolatileResponseHeaders.Add("x-ms-copy-source");
            VolatileResponseHeaders.Add("Set-Cookie");
            VolatileResponseHeaders.Add("Referrer-Policy");
        }
Ejemplo n.º 3
0
 public MixedRealityRecordMatcher()
 {
     ExcludeHeaders.Add(ClientCorrelationVectorHeaderName);
     VolatileHeaders.Add(ClientCorrelationVectorHeaderName);
     VolatileResponseHeaders.Add(ClientCorrelationVectorHeaderName);
 }