Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
VCRを更新するPRが自動で飛ぶ世界で気をつけたこと
Search
Kunio Okita
June 29, 2019
Technology
1
260
VCRを更新するPRが自動で飛ぶ世界で気をつけたこと
Kunio Okita
June 29, 2019
Tweet
Share
More Decks by Kunio Okita
See All by Kunio Okita
DeNA品質管理部を支えるカルチャーと取り組み
okitan
0
650
microservicesにおけるAPI自動テストにまつわるエトセトラ
okitan
12
5k
DeNAの取り組むテストエンジニアリング
okitan
5
13k
SWETの現在とこれから
okitan
3
7.5k
Other Decks in Technology
See All in Technology
ここが嬉しいABAC ここが辛いよABAC #再解説+補足編
masahirokawahara
1
260
2024/4/26 コンピュータ歴史博物館解説告知
toshi_atsumi
0
210
カオナビの利用実績をアウトカムへつなげる旅 / example-of-data-management-startup-in-kaonavi
kaonavi
0
130
「手動オペレーションに定評がある」と言われた私が心がけていること / phpcon_odawara2024
blue_goheimochi
2
360
MapLibreとAmazon Location Service
dayjournal
1
120
Java EE/Jakarta EEの現状と将来―クラウドネイティブ時代にJava EEは対応できるのか?―
takakiyo
1
120
KubeCon EU 2024 Recap “Kubernetes Policy Time Machine: Where to Next?”
ryysud
0
180
Algyan イベント振り返り
linyixian
0
200
Next'24 事例セッションの紹介とクラウド資格を活用したキャリア形成について語りMuscle
yasumuusan
1
410
EMとして2023年度に頑張ったこと / What we did well in FY2023 as a EM
pauli
1
130
サーバー間 GraphQL と webmock-graphql の話 / server-to-server graphql and webmock-graphql
qsona
2
170
Postman v10リリース後を振り返る / Looking back at Postman v10 after release
yokawasa
1
150
Featured
See All Featured
A designer walks into a library…
pauljervisheath
199
23k
Docker and Python
trallard
33
2.7k
The Pragmatic Product Professional
lauravandoore
24
5.8k
The Invisible Customer
myddelton
114
12k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
119
39k
KATA
mclloyd
14
12k
How GitHub (no longer) Works
holman
304
140k
It's Worth the Effort
3n
180
27k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
18
1.7k
Designing for Performance
lara
601
67k
Writing Fast Ruby
sferik
620
60k
Building an army of robots
kneath
300
41k
Transcript
@ C 9 310 -2 316 6 -0 0
/ / ./ 3
(
!
1 )0 ( E
1
4 1
1
7 1
P8 A • 8 • 1) . • I 8
8 • 1 5 2 01 8
None
0 2 A
1
32 32
(
7 2 2
C 8 2 A 8
2 9 A
0 3 3
- - - 03 - - 0-1 1 1 -
- 03 - - C D
" 2-/ 2 2 3
33 mo g r • Is mo • e V
• n 43 3- - i a V AVPd • VC g 33 c 33 a V RI • tVP 3 V • u m C
6 3
1 2 ,03
4 0 • 4 response: headers: Date: - "<%= Time.now
%>"
VCR.configure do |config| config.default_cassette_options = { erb: true } end
VCR.configure do |config| config.before_record do |e| headers = e.response.headers headers["Date"]
= ["<%= Time.now %>"] if headers["Date"] end end
X-Request-Id X-Runtime X-Runtime-Rack X-Ratelimit-Remaining X-Ratelimit-Reset X-Github-Request-Id X-Amz-Request-Id X-Amz-Id-2 X-Served-By
X-Cache X-Cache-Hits X-Timer X-Artifactory-Node-Id X-Node X-Fastly-Request-Id Cf-Ray
Etag Expires 4
VCR.configure do |config| config.before_record do |e| headers
= e.response.headers headers.delete("Set-Cookie") end end
0 - - 0 A 5
1 5
2
VCR.configure do |config| config.before_record do |e| e.recorded_at
= Time.at(0) end end
6 +66 −248 5 ( )
7 7 5 C
https://github.com/github/linguist
2 recorded_with: VCR 9C5 9 5
spec/fixtures/vcr_cassettes/* linguist-generated=false
. / 2 spec/fixtures/vcr_cassettes/ @okitan
16 3
5 6