mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 18:19:36 +00:00
Merge pull request #75 from coreos/fix
travis: Add Go 1.6 to test matrix, change invalid MAC test
This commit is contained in:
@@ -4,6 +4,7 @@ services:
|
||||
- docker
|
||||
go:
|
||||
- 1.5.3
|
||||
- 1.6
|
||||
- tip
|
||||
env:
|
||||
global:
|
||||
|
||||
@@ -25,7 +25,7 @@ func TestLabelsFromRequest(t *testing.T) {
|
||||
// parse and set MAC regardless of query argument case
|
||||
{"http://a.io?UUID=a1b2c3&MAC=52:DA:00:89:d8:10", map[string]string{"UUID": "a1b2c3", "MAC": validMACStr}},
|
||||
// ignore MAC addresses which do not parse
|
||||
{"http://a.io?mac=?:?:?", emptyMap},
|
||||
{"http://a.io?mac=x:x:x:x:x:x", emptyMap},
|
||||
}
|
||||
for _, c := range cases {
|
||||
req, err := http.NewRequest("GET", c.urlString, nil)
|
||||
|
||||
Reference in New Issue
Block a user