You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by dk...@apache.org on 2020/05/21 14:13:23 UTC
[avro] branch master updated (eb21a21 -> b9efa05)
This is an automated email from the ASF dual-hosted git repository.
dkulp pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git.
from eb21a21 AVRO-2547: Add bzip2 support to the Perl bindings
new ef85cd4 AVRO-2554: Fix Ruby interop test to read all supported codecs
new b9efa05 Add snappy to the codecs to be validated by interop test
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
lang/ruby/interop/test_interop.rb | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
[avro] 02/02: Add snappy to the codecs to be validated by interop
test
Posted by dk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
dkulp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git
commit b9efa050bac3aa5e67ad659f8d4bb972a0b5d2dc
Author: Kengo Seki <se...@apache.org>
AuthorDate: Tue Apr 21 17:53:11 2020 +0900
Add snappy to the codecs to be validated by interop test
---
lang/ruby/interop/test_interop.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lang/ruby/interop/test_interop.rb b/lang/ruby/interop/test_interop.rb
index 9af35bf..c661793 100755
--- a/lang/ruby/interop/test_interop.rb
+++ b/lang/ruby/interop/test_interop.rb
@@ -19,7 +19,7 @@ require 'rubygems'
require 'test/unit'
require 'avro'
-CODECS_TO_VALIDATE = ['deflate', 'zstandard'] # The 'null' codec is implicitly included
+CODECS_TO_VALIDATE = ['deflate', 'snappy', 'zstandard'] # The 'null' codec is implicitly included
class TestInterop < Test::Unit::TestCase
HERE = File.expand_path(File.dirname(__FILE__))
[avro] 01/02: AVRO-2554: Fix Ruby interop test to read all
supported codecs
Posted by dk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
dkulp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git
commit ef85cd4099dc645bcd853ceb60e44ff93b4840f0
Author: Kengo Seki <se...@apache.org>
AuthorDate: Mon Sep 9 11:53:00 2019 +0900
AVRO-2554: Fix Ruby interop test to read all supported codecs
---
lang/ruby/interop/test_interop.rb | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/lang/ruby/interop/test_interop.rb b/lang/ruby/interop/test_interop.rb
index a63c158..9af35bf 100755
--- a/lang/ruby/interop/test_interop.rb
+++ b/lang/ruby/interop/test_interop.rb
@@ -19,7 +19,7 @@ require 'rubygems'
require 'test/unit'
require 'avro'
-CODECS_TO_VALIDATE = ['deflate'] # The 'null' codec is implicitly included
+CODECS_TO_VALIDATE = ['deflate', 'zstandard'] # The 'null' codec is implicitly included
class TestInterop < Test::Unit::TestCase
HERE = File.expand_path(File.dirname(__FILE__))
@@ -27,12 +27,14 @@ class TestInterop < Test::Unit::TestCase
SCHEMAS = SHARE + '/test/schemas'
files = Dir[HERE + '/../../../build/interop/data/*.avro'].select do |fn|
- sep, codec = File.basename(fn, 'avro').rpartition('_')[1, 2]
+ sep, codec = File.basename(fn, '.avro').rpartition('_')[1, 2]
sep.empty? || CODECS_TO_VALIDATE.include?(codec)
end
+ puts "The following files will be tested:"
+ puts files
files.each do |fn|
- define_method("test_read_#{File.basename(fn, 'avro')}") do
+ define_method("test_read_#{File.basename(fn, '.avro')}") do
projection = Avro::Schema.parse(File.read(SCHEMAS+'/interop.avsc'))
File.open(fn) do |f|