Commit d0d199fa authored by o's avatar o
Browse files

automatically setup test config

parent 95f3f792
......@@ -48,18 +48,18 @@ GEM
io-like (~> 0.3.0)
arel (9.0.0)
ast (2.4.0)
bindex (0.7.0)
bindex (0.8.1)
bootsnap (1.4.4)
msgpack (~> 1.0)
builder (3.2.3)
byebug (11.0.1)
capybara (3.18.0)
capybara (3.28.0)
addressable
mini_mime (>= 0.1.3)
nokogiri (~> 1.8)
rack (>= 1.6.0)
rack-test (>= 0.6.3)
regexp_parser (~> 1.2)
regexp_parser (~> 1.5)
xpath (~> 3.2)
childprocess (1.0.1)
rake (< 13.0)
......@@ -78,11 +78,11 @@ GEM
crack (0.4.3)
safe_yaml (~> 1.0.0)
crass (1.0.4)
domain_name (0.5.20180417)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
erubi (1.8.0)
execjs (2.7.0)
ffi (1.10.0)
ffi (1.11.1)
globalid (0.4.2)
activesupport (>= 4.2.0)
gpgme (2.0.18)
......@@ -104,10 +104,9 @@ GEM
rainbow (>= 2.2.2, < 4.0)
terminal-table (>= 1.5.1)
io-like (0.3.0)
jbuilder (2.8.0)
jbuilder (2.9.1)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
libv8 (7.3.492.27.1-x86_64-linux)
libv8 (7.3.492.27.1)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
......@@ -124,20 +123,19 @@ GEM
mime-types-data (~> 3.2015)
mime-types-data (3.2019.0331)
mimemagic (0.3.3)
mini_mime (1.0.1)
mini_mime (1.0.2)
mini_portile2 (2.4.0)
mini_racer (0.2.6)
libv8 (>= 6.9.411)
minitest (5.11.3)
msgpack (1.2.10)
multi_json (1.13.1)
msgpack (1.3.1)
netrc (0.11.0)
nio4r (2.3.1)
nio4r (2.4.0)
nokogiri (1.10.3)
mini_portile2 (~> 2.4.0)
parser (2.6.3.0)
ast (~> 2.4.0)
public_suffix (3.0.3)
public_suffix (3.1.1)
puma (4.0.1)
nio4r (~> 2.0)
rack (2.0.7)
......@@ -159,7 +157,7 @@ GEM
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.4)
rails-html-sanitizer (1.1.0)
loofah (~> 2.2, >= 2.2.2)
rails-i18n (5.1.3)
i18n (>= 0.7, < 2)
......@@ -171,23 +169,23 @@ GEM
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
rainbow (3.0.0)
rake (12.3.2)
rake (12.3.3)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
regexp_parser (1.4.0)
regexp_parser (1.6.0)
rest-client (2.0.2)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rotp (4.1.0)
rotp (5.1.0)
addressable (~> 2.5)
rqrcode (0.10.1)
chunky_png (~> 1.0)
ruby-saml (1.9.0)
nokogiri (>= 1.5.10)
ruby_dep (1.5.0)
rubyzip (1.2.2)
rubyzip (1.2.3)
safe_yaml (1.0.5)
sass (3.7.4)
sass-listen (~> 4.0.0)
......@@ -200,11 +198,10 @@ GEM
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
selenium-webdriver (3.142.0)
selenium-webdriver (3.142.3)
childprocess (>= 0.5, < 2.0)
rubyzip (~> 1.2, >= 1.2.2)
spring (2.0.2)
activesupport (>= 4.2)
spring (2.1.0)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
......@@ -240,12 +237,12 @@ GEM
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
websocket-driver (0.7.0)
websocket-driver (0.7.1)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
websocket-extensions (0.1.4)
xpath (3.2.0)
nokogiri (~> 1.8)
zxcvbn-ruby (0.1.2)
zxcvbn-ruby (1.0.0)
PLATFORMS
ruby
......
......@@ -5,7 +5,7 @@ class PgpkeysTest < ActionDispatch::IntegrationTest
ENV['CURRENT_USER'] = ADDR_NONEXISTENT
get pgpkeys_path
assert_response :success
assert_select "h3", text: "OpenPGP keys"
assert_select "h3", text: "OpenPGP Key Directory"
assert_select 'pre.pgpkey-description', count: 0
assert_select "form", class: 'pgpkeys-upload'
end
......
......@@ -16,7 +16,7 @@ class WkdSrvClientTest < ActiveSupport::TestCase
refute_empty info[:info_str]
assert_includes info[:info_str], '894630AF'
end
test '#get raises NotFound if the email address is blank' do
begin
WkdSrvClient.get('')
......
local_conf = Rails.root.join('config/local_conf.yml')
unless File.exists? local_conf
print "missing local_conf.yaml. use test/local_conf.yam? [Yn]"
prompt = STDIN.gets.chomp
if prompt == 'n'
exit 1
end
FileUtils.cp Rails.root.join('test/local_conf.yml'), local_conf
end
ENV['RAILS_ENV'] ||= 'test'
require_relative '../config/environment'
require 'rails/test_help'
......@@ -29,12 +39,4 @@ class ActiveSupport::TestCase
teardown do
WebMock.reset!
end
def gpg_key_to_string(key)
Open3.popen3(GPG_CLI_CMD) do |stdin, stdout, stderr, thr|
stdin.write(key)
stdin.close
stdout.read
end
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment