test/common.rb in fastly-1.2.1 vs test/common.rb in fastly-1.2.2

- old
+ new

@@ -147,17 +147,18 @@ assert_equal 'short and stout', response_obj.content response_condition_name = "fastly-response-condition-#{random_string}" response_condition = @fastly.create_condition(:service_id => service.id, :version => number, :name => response_condition_name, :statement => condition_statement, :type => 'RESPONSE') header_name = "fastly-header-test-#{random_string}" - header = @fastly.create_header(:service_id => service.id, :version => number, :name => header_name, :response_condition => response_condition.name, :ignore_if_set => 1, :type => 'response', :dst => 'http.Cache-Control', :src => '"max-age=301"', :priority => 10, :action => 'set') + header = @fastly.create_header(:service_id => service.id, :version => number, :name => header_name, :response_condition => response_condition.name, :ignore_if_set => 1, :type => 'response', :dst => 'http.Cache-Control', :src => '"max-age=301"', :priority => 10, :action => 'set', :regex => /foo/) assert header assert_equal header_name, header.name assert_equal response_condition.name, header.response_condition assert_equal '1', header.ignore_if_set.to_s assert_equal 'http.Cache-Control', header.dst assert_equal '"max-age=301"', header.src assert_equal 'set', header.action + assert_equal(/foo/, header.regex) assert version3.activate! assert version3.deactivate! assert !@fastly.get_service(version3.service_id).version.active assert !@fastly.get_service(version3.service_id).version.active?