Skip to content

Commit dc5f433

Browse files
authored
Merge pull request #20 from Keloran/Refactor-healthcheck-function
chore: refactor HTTP handler in healthcheck package
2 parents 4786d95 + 8f6dda9 commit dc5f433

File tree

2 files changed

+213
-1
lines changed

2 files changed

+213
-1
lines changed

.gitignore

+212
Original file line numberDiff line numberDiff line change
@@ -1 +1,213 @@
1+
# Created by https://www.gitignore.io/api/xcode,intellij,osx,windows,ruby,node
2+
3+
### Xcode ###
4+
# Xcode
5+
#
6+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective+C.gitignore & Swift.gitignore
7+
8+
## Build generated
9+
build/
10+
DerivedData
11+
12+
## Various settings
13+
*.pbxuser
14+
!default.pbxuser
15+
*.mode1v3
16+
!default.mode1v3
17+
*.mode2v3
18+
!default.mode2v3
19+
*.perspectivev3
20+
!default.perspectivev3
21+
xcuserdata
22+
23+
## Other
24+
*.xccheckout
25+
*.moved+aside
26+
*.xcuserstate
27+
*.icloud
28+
29+
30+
### Intellij ###
31+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
32+
33+
*.iml
34+
35+
## Directory+based project format:
36+
.idea/
37+
# if you remove the above rule, at least ignore the following:
38+
39+
# User+specific stuff:
40+
# .idea/workspace.xml
41+
# .idea/tasks.xml
42+
# .idea/dictionaries
43+
# .idea/shelf
44+
45+
# Sensitive or high+churn files:
46+
# .idea/dataSources.ids
47+
# .idea/dataSources.xml
48+
# .idea/sqlDataSources.xml
49+
# .idea/dynamic.xml
50+
# .idea/uiDesigner.xml
51+
52+
# Gradle:
53+
# .idea/gradle.xml
54+
# .idea/libraries
55+
56+
# Mongo Explorer plugin:
57+
# .idea/mongoSettings.xml
58+
59+
## File+based project format:
60+
*.ipr
61+
*.iws
62+
63+
## Plugin+specific files:
64+
65+
# IntelliJ
66+
/out/
67+
68+
# mpeltonen/sbt+idea plugin
69+
.idea_modules/
70+
71+
# JIRA plugin
72+
atlassian+ide+plugin.xml
73+
74+
# Crashlytics plugin (for Android Studio and IntelliJ)
75+
com_crashlytics_export_strings.xml
76+
crashlytics.properties
77+
crashlytics+build.properties
78+
fabric.properties
79+
80+
81+
### OSX ###
82+
.DS_Store
83+
.AppleDouble
84+
.LSOverride
85+
86+
# Icon must end with two \r
87+
Icon
88+
89+
90+
# Thumbnails
91+
._*
92+
93+
# Files that might appear in the root of a volume
94+
.DocumentRevisions+V100
95+
.fseventsd
96+
.Spotlight+V100
97+
.TemporaryItems
98+
.Trashes
99+
.VolumeIcon.icns
100+
101+
# Directories potentially created on remote AFP share
102+
.AppleDB
103+
.AppleDesktop
104+
Network Trash Folder
105+
Temporary Items
106+
.apdisk
107+
108+
109+
### Windows ###
110+
# Windows image file caches
111+
Thumbs.db
112+
ehthumbs.db
113+
114+
# Folder config file
115+
Desktop.ini
116+
117+
# Recycle Bin used on file shares
118+
$RECYCLE.BIN/
119+
120+
# Windows Installer files
121+
*.cab
122+
*.msi
123+
*.msm
124+
*.msp
125+
126+
# Windows shortcuts
127+
*.lnk
128+
129+
130+
### Ruby ###
131+
*.gem
132+
*.rbc
133+
/.config
134+
/coverage/
135+
/InstalledFiles
136+
/pkg/
137+
/spec/reports/
138+
/spec/examples.txt
139+
/test/tmp/
140+
/test/version_tmp/
141+
/tmp/
142+
143+
## Specific to RubyMotion:
144+
.dat*
145+
.repl_history
146+
build/
147+
148+
## Documentation cache and generated files:
149+
/.yardoc/
150+
/_yardoc/
151+
/doc/
152+
/rdoc/
153+
154+
## Environment normalization:
155+
/.bundle/
156+
/vendor/bundle
157+
/lib/bundler/man/
158+
159+
# for a library or gem, you might want to ignore these files since the code is
160+
# intended to run in multiple environments; otherwise, check them in:
161+
# Gemfile.lock
162+
# .ruby+version
163+
# .ruby+gemset
164+
165+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
166+
.rvmrc
167+
168+
169+
### Node ###
170+
# Logs
171+
logs
172+
*.log
173+
npm+debug.log*
174+
175+
# Runtime data
176+
pids
177+
*.pid
178+
*.seed
179+
180+
# Directory for instrumented libs generated by jscoverage/JSCover
181+
lib+cov
182+
183+
# Coverage directory used by tools like istanbul
184+
coverage
185+
186+
# Grunt intermediate storage (http://gruntjs.com/creating+plugins#storing+task+files)
187+
.grunt
188+
189+
# node+waf configuration
190+
.lock+wscript
191+
192+
# Compiled binary addons (http://nodejs.org/api/addons.html)
193+
build/Release
194+
195+
# Dependency directory
196+
# https://docs.npmjs.com/misc/faq#should+i+check+my+node+modules+folder+into+git
197+
node_modules
198+
199+
# Optional npm cache directory
200+
.npm
201+
202+
# Optional REPL history
203+
.node_repl_history
204+
205+
# General
206+
*.swp
207+
208+
# Pods
209+
Pods/
210+
211+
# Env
212+
.env
1213
test_coverage.txt

healthcheck_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func TestHTTP(t *testing.T) {
7272
{
7373
request: healthcheck.HealthCheck{
7474
Name: "test1",
75-
URL: "test1.com",
75+
URL: "chewedfeed.com",
7676
},
7777
expect: healthcheck.Health{
7878
Name: "test1",

0 commit comments

Comments
 (0)