Add --allow-privileged=true
to:
# kubelet config
sudo vim /var/snap/microk8s/current/args/kubelet
#kube-apiserver config
sudo vim /var/snap/microk8s/current/args/kube-apiserver
Restart services:
Add --allow-privileged=true
to:
# kubelet config
sudo vim /var/snap/microk8s/current/args/kubelet
#kube-apiserver config
sudo vim /var/snap/microk8s/current/args/kube-apiserver
Restart services:
# load into test setup after `require 'capybara/rails'` | |
# some sources for below flags and profile settings | |
# https://stackoverflow.com/questions/43143014/chrome-is-being-controlled-by-automated-test-software/43145088 | |
# https://sqa.stackexchange.com/questions/26051/chrome-driver-2-28-chrome-is-being-controlled-by-automated-test-software-notif | |
# http://stackoverflow.com/questions/12211781/how-to-maximize-window-in-chrome-using-webdriver-python | |
# update sources for new Options object | |
# https://github.com/SeleniumHQ/selenium/wiki/Ruby-Bindings | |
# https://github.com/teamcapybara/capybara/blob/master/lib/capybara/selenium/driver.rb | |
begin |
defmodule Reactor.Service.Authenticator do | |
@behaviour Reactor.Contract.Service.Authenticator | |
@moduledoc """ | |
User authentication service. | |
""" | |
use Reactor.Resolver, repositories: [:user] | |
alias Comeonin.Bcrypt, as: Comeonin | |
alias Reactor.Entity.User, as: UserEntity | |
# instead of having dredd start up an endpoint, this will boot your endpoint up | |
# using capybara so that we can take advantage or ruby testing tools like FactoryGirl, DatabaseCleaner and SimpleCov | |
include DreddHooks::Methods | |
ENV["RAILS_ENV"] = "test" | |
require "rubygems" | |
require "bundler/setup" | |
unless ENV["SKIP_COVERAGE"] |
#!/usr/bin/env ruby | |
require 'test_queue' | |
require 'test_queue/runner/rspec' | |
class MyAppTestRunner < TestQueue::Runner::RSpec | |
def after_fork(num) | |
SimpleCov.command_name "worker#{num}" | |
ActiveRecord::Base.configurations['test']['database'] << num.to_s | |
ActiveRecord::Base.establish_connection(:test) |
# This is a skeleton for testing models including examples of validations, callbacks, | |
# scopes, instance & class methods, associations, and more. | |
# Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
# | |
# I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
# so if you have any, please share! | |
# | |
# @kyletcarlson | |
# | |
# This skeleton also assumes you're using the following gems: |
/log/ | |
/logs/ | |
/images/ | |
/javascripts/ | |
/stylesheets/ | |
/tmp/ | |
/vendor/ | |
*.sql | |
*.tags* | |
*.gemtags* |
#... | |
gem 'backup', require: false, | |
github: 'kavu/backup', | |
branch: 'bump_fog_version', | |
ref: 'c3fd8e6eb4f464de1c8' | |
gem 'whenever', require: false | |
#... |
require 'rubygems' | |
require 'nokogiri' | |
require 'eeepub' | |
DOC_TITLE = 'Ruby on Rails Guides' | |
def get_pages(src_dir) | |
index_file = File.join(src_dir, 'index.html') | |
section = nil | |
pages = [{ :section => section, :title => DOC_TITLE, :path => index_file }] |