1
0
mirror of https://github.com/docker/docker-credential-helpers.git synced 2026-06-14 00:11:28 +05:30

Add Label to Credentials in test files

Signed-off-by: Nassim 'Nass' Eddequiouaq <eddequiouaq.nassim@gmail.com>
This commit is contained in:
Nassim 'Nass' Eddequiouaq
2017-03-08 18:48:54 +01:00
parent cfe7556d6d
commit c6cf8aa13b
4 changed files with 9 additions and 7 deletions
+5 -5
View File
@@ -106,8 +106,8 @@ func ExampleStore() {
func TestStore(t *testing.T) {
valid := []credentials.Credentials{
{validServerAddress, "foo", "bar"},
{validServerAddress2, "<token>", "abcd1234"},
{credentials.CredsLabel, validServerAddress, "foo", "bar"},
{credentials.CredsLabel, validServerAddress2, "<token>", "abcd1234"},
}
for _, v := range valid {
@@ -117,7 +117,7 @@ func TestStore(t *testing.T) {
}
invalid := []credentials.Credentials{
{invalidServerAddress, "foo", "bar"},
{credentials.CredsLabel, invalidServerAddress, "foo", "bar"},
}
for _, v := range invalid {
@@ -140,8 +140,8 @@ func ExampleGet() {
func TestGet(t *testing.T) {
valid := []credentials.Credentials{
{validServerAddress, "foo", "bar"},
{validServerAddress2, "<token>", "abcd1234"},
{credentials.CredsLabel, validServerAddress, "foo", "bar"},
{credentials.CredsLabel, validServerAddress2, "<token>", "abcd1234"},
}
for _, v := range valid {