aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-19 02:37:39 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-19 02:37:39 +0000
commitb62f8c909409143467be009d0ad2274fc830bfed (patch)
tree03e327b53fdb28edfe4657e4a887c90fe7d3c729
parentbb43a317882007e024ce0cdb203e09f040b7cb1a (diff)
downloadruby-b62f8c909409143467be009d0ad2274fc830bfed.tar.gz
Move certificates to test/net/fixtures/.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/net/fixtures/cacert.pem (renamed from test/net/imap/cacert.pem)0
-rw-r--r--test/net/fixtures/server.crt (renamed from test/net/imap/server.crt)0
-rw-r--r--test/net/fixtures/server.key (renamed from test/net/imap/server.key)0
-rw-r--r--test/net/ftp/test_ftp.rb6
-rw-r--r--test/net/imap/test_imap.rb6
-rw-r--r--test/net/smtp/test_smtp.rb6
6 files changed, 9 insertions, 9 deletions
diff --git a/test/net/imap/cacert.pem b/test/net/fixtures/cacert.pem
index 7073387..7073387 100644
--- a/test/net/imap/cacert.pem
+++ b/test/net/fixtures/cacert.pem
diff --git a/test/net/imap/server.crt b/test/net/fixtures/server.crt
index fa4f994..fa4f994 100644
--- a/test/net/imap/server.crt
+++ b/test/net/fixtures/server.crt
diff --git a/test/net/imap/server.key b/test/net/fixtures/server.key
index 7c57546..7c57546 100644
--- a/test/net/imap/server.key
+++ b/test/net/fixtures/server.key
diff --git a/test/net/ftp/test_ftp.rb b/test/net/ftp/test_ftp.rb
index 4394808..f514efb 100644
--- a/test/net/ftp/test_ftp.rb
+++ b/test/net/ftp/test_ftp.rb
@@ -8,9 +8,9 @@ require "tempfile"
class FTPTest < Test::Unit::TestCase
SERVER_ADDR = "127.0.0.1"
- CA_FILE = File.expand_path("../imap/cacert.pem", __dir__)
- SERVER_KEY = File.expand_path("../imap/server.key", __dir__)
- SERVER_CERT = File.expand_path("../imap/server.crt", __dir__)
+ CA_FILE = File.expand_path("../fixtures/cacert.pem", __dir__)
+ SERVER_KEY = File.expand_path("../fixtures/server.key", __dir__)
+ SERVER_CERT = File.expand_path("../fixtures/server.crt", __dir__)
def setup
@thread = nil
diff --git a/test/net/imap/test_imap.rb b/test/net/imap/test_imap.rb
index cdd9323..35e5ed8 100644
--- a/test/net/imap/test_imap.rb
+++ b/test/net/imap/test_imap.rb
@@ -4,9 +4,9 @@ require "net/imap"
require "test/unit"
class IMAPTest < Test::Unit::TestCase
- CA_FILE = File.expand_path("cacert.pem", File.dirname(__FILE__))
- SERVER_KEY = File.expand_path("server.key", File.dirname(__FILE__))
- SERVER_CERT = File.expand_path("server.crt", File.dirname(__FILE__))
+ CA_FILE = File.expand_path("../fixtures/cacert.pem", __dir__)
+ SERVER_KEY = File.expand_path("../fixtures/server.key", __dir__)
+ SERVER_CERT = File.expand_path("../fixtures/server.crt", __dir__)
SERVER_ADDR = "127.0.0.1"
diff --git a/test/net/smtp/test_smtp.rb b/test/net/smtp/test_smtp.rb
index bf25af5..01b8ae5 100644
--- a/test/net/smtp/test_smtp.rb
+++ b/test/net/smtp/test_smtp.rb
@@ -5,9 +5,9 @@ require 'test/unit'
module Net
class TestSMTP < Test::Unit::TestCase
- CA_FILE = File.expand_path("../imap/cacert.pem", __dir__)
- SERVER_KEY = File.expand_path("../imap/server.key", __dir__)
- SERVER_CERT = File.expand_path("../imap/server.crt", __dir__)
+ CA_FILE = File.expand_path("../fixtures/cacert.pem", __dir__)
+ SERVER_KEY = File.expand_path("../fixtures/server.key", __dir__)
+ SERVER_CERT = File.expand_path("../fixtures/server.crt", __dir__)
class FakeSocket
attr_reader :write_io