mirror of
https://github.com/elyby/chrly.git
synced 2025-05-31 14:11:51 +05:30
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab847589ba | ||
|
|
e573e6146d | ||
|
|
2775b14e78 | ||
|
|
c25a2f2360 | ||
|
|
edc368aa81 | ||
|
|
4097e61a02 | ||
|
|
26a8628070 | ||
|
|
ae0ff91a64 | ||
|
|
ab6410ff4a | ||
|
|
c7ac890812 | ||
|
|
7734f2cbd5 | ||
|
|
55b8c12955 | ||
|
|
10ff6f34fb | ||
|
|
31cd75ffa7 |
@@ -9,6 +9,7 @@ func (cfg *Config) NotFound(response http.ResponseWriter, request *http.Request)
|
|||||||
data, _ := json.Marshal(map[string]string{
|
data, _ := json.Marshal(map[string]string{
|
||||||
"status": "404",
|
"status": "404",
|
||||||
"message": "Not Found",
|
"message": "Not Found",
|
||||||
|
"link": "http://docs.ely.by/skin-system.html",
|
||||||
})
|
})
|
||||||
|
|
||||||
response.Header().Set("Content-Type", "application/json")
|
response.Header().Set("Content-Type", "application/json")
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ func TestConfig_NotFound(t *testing.T) {
|
|||||||
response, _ := ioutil.ReadAll(resp.Body)
|
response, _ := ioutil.ReadAll(resp.Body)
|
||||||
assert.JSONEq(`{
|
assert.JSONEq(`{
|
||||||
"status": "404",
|
"status": "404",
|
||||||
"message": "Not Found"
|
"message": "Not Found",
|
||||||
|
"link": "http://docs.ely.by/skin-system.html"
|
||||||
}`, string(response))
|
}`, string(response))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,8 +39,8 @@ func (cfg *Config) SignedTextures(response http.ResponseWriter, request *http.Re
|
|||||||
}
|
}
|
||||||
|
|
||||||
responseData.Props = append(responseData.Props, &mojang.Property{
|
responseData.Props = append(responseData.Props, &mojang.Property{
|
||||||
Name: "chrly",
|
Name: "ely",
|
||||||
Value: "how do you tame a horse in Minecraft?",
|
Value: "but why are you asking?",
|
||||||
})
|
})
|
||||||
|
|
||||||
responseJson, _ := json.Marshal(responseData)
|
responseJson, _ := json.Marshal(responseData)
|
||||||
|
|||||||
@@ -42,8 +42,8 @@ func TestConfig_SignedTextures(t *testing.T) {
|
|||||||
"value": "mocked textures base64"
|
"value": "mocked textures base64"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "chrly",
|
"name": "ely",
|
||||||
"value": "how do you tame a horse in Minecraft?"
|
"value": "but why are you asking?"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}`, string(response))
|
}`, string(response))
|
||||||
@@ -132,8 +132,8 @@ func TestConfig_SignedTextures(t *testing.T) {
|
|||||||
"value": "eyJ0aW1lc3RhbXAiOjE1NTYzOTg1NzIsInByb2ZpbGVJZCI6IjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwIiwicHJvZmlsZU5hbWUiOiJtb2NrX3VzZXIiLCJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly9tb2phbmcvc2tpbi5wbmcifX19"
|
"value": "eyJ0aW1lc3RhbXAiOjE1NTYzOTg1NzIsInByb2ZpbGVJZCI6IjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwIiwicHJvZmlsZU5hbWUiOiJtb2NrX3VzZXIiLCJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly9tb2phbmcvc2tpbi5wbmcifX19"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "chrly",
|
"name": "ely",
|
||||||
"value": "how do you tame a horse in Minecraft?"
|
"value": "but why are you asking?"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}`, string(response))
|
}`, string(response))
|
||||||
|
|||||||
Reference in New Issue
Block a user