(t *testing.T)
| 103 | } |
| 104 | |
| 105 | func TestExternalCAOptionMultiple(t *testing.T) { |
| 106 | opt := &ExternalCAOption{} |
| 107 | assert.NilError(t, opt.Set("protocol=cfssl,url=https://example.com")) |
| 108 | assert.NilError(t, opt.Set("protocol=CFSSL,url=anything")) |
| 109 | assert.Check(t, is.Len(opt.Value(), 2)) |
| 110 | assert.Check(t, is.Equal("cfssl: https://example.com, cfssl: anything", opt.String())) |
| 111 | } |