Skip to content

Commit

Permalink
Merge pull request #2 from karabiner-inc/feature/rd-1
Browse files Browse the repository at this point in the history
suardian_tokens subの仕様をマップ形式に変更
  • Loading branch information
TakutoYoshimura committed Dec 26, 2018
2 parents 7138eb1 + 814d2a9 commit 9bb9431
Show file tree
Hide file tree
Showing 11 changed files with 696 additions and 475 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: elixir
sudo: false
elixir:
- 1.6.6
otp_release:
- 21.0
addons:
postgresql: '9.4'
services:
- postgresql
env:
- MIX_ENV=test

before_script:
- cp config/travis.exs config/test.exs
- mix do ecto.create, ecto.migrate

script: mix coveralls.travis
2 changes: 1 addition & 1 deletion RequestSample_accounts.http
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Content-Type: application/json
"password": "hogehoge"
}

@token = Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJNYXRlcmlhIiwiZW1haWwiOiJob2dlaG9nZUBleGFtcGxlLmNvbSIsImV4cCI6MTU0NDAwNDY2NSwiaWF0IjoxNTQ0MDA0MDY1LCJpc3MiOiJNYXRlcmlhIiwianRpIjoiYWYwOTRjNjItZWFjMi00YzcxLWJmYTgtYjgxYjY3NmE1ZWVlIiwibmJmIjoxNTQ0MDA0MDY0LCJzdWIiOiIxIiwidHlwIjoiYWNjZXNzIn0.j6HBnTSyRO1Rs_X4sKHQflRl7c2yTc1QqgRd1y2VLaM
@token = Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJNYXRlcmlhIiwiZW1haWwiOiJob2dlaG9nZUBleGFtcGxlLmNvbSIsImV4cCI6MTU0NTgxMTc4OSwiaWF0IjoxNTQ1ODExMTg5LCJpc3MiOiJNYXRlcmlhIiwianRpIjoiMWEzYmM0ZGMtZWJmYS00MWUyLWJiNjctNDYxMTJmMzU4Njc2IiwibmJmIjoxNTQ1ODExMTg4LCJzdWIiOiJ7XCJ1c2VyX2lkXCI6MX0iLCJ0eXAiOiJhY2Nlc3MifQ.taF2To9CACyPMyZcmDjCi82VKmhA-fq8QApVhfiA8DY


### ユーザー汎用検索
Expand Down
32 changes: 32 additions & 0 deletions config/travis.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
use Mix.Config

# We don't run a server during test. If one is required,
# you can enable the server option below.
config :materia, MateriaWeb.Test.Endpoint,
http: [port: 4001],
#server: false,
debug_errors: true,
code_reloader: false,
check_origin: false,
watchers: []

# Print only warnings and errors during test
config :logger, level: :info

# Configure your database
config :materia, Materia.Test.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "",
database: "materia_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox

config :materia, repo: Materia.Test.Repo

# Configures GuardianDB
config :guardian, Guardian.DB,
repo: Materia.Test.Repo,
schema_name: "guardian_tokens", # default
#token_types: ["refresh_token"], # store all token types if not set
sweep_interval: 60 # default: 60 minutes
Loading

0 comments on commit 9bb9431

Please sign in to comment.