@@ -31,7 +31,7 @@ func Test_GetEndpoints(t *testing.T) {
3131
3232func Test_AddEndpoint (t * testing.T ) {
3333 t .Run ("Add new endpoint" , func (t * testing.T ) {
34- err := AddRegistryEndpoint ("example.com" , "Example" , "https://example.com" , "" , false )
34+ err := AddRegistryEndpoint ("example.com" , "Example" , "https://example.com" , "" , "" , false )
3535 require .NoError (t , err )
3636 })
3737 t .Run ("Get example.com endpoint" , func (t * testing.T ) {
@@ -42,14 +42,16 @@ func Test_AddEndpoint(t *testing.T) {
4242 assert .Equal (t , ep .RegistryName , "Example" )
4343 assert .Equal (t , ep .RegistryAPI , "https://example.com" )
4444 assert .Equal (t , ep .Insecure , false )
45+ assert .Equal (t , ep .DefaultNS , "" )
4546 })
4647 t .Run ("Change existing endpoint" , func (t * testing.T ) {
47- err := AddRegistryEndpoint ("example.com" , "Example" , "https://example.com" , "" , true )
48+ err := AddRegistryEndpoint ("example.com" , "Example" , "https://example.com" , "" , "library" , true )
4849 require .NoError (t , err )
4950 ep , err := GetRegistryEndpoint ("example.com" )
5051 require .NoError (t , err )
5152 require .NotNil (t , ep )
5253 assert .Equal (t , ep .Insecure , true )
54+ assert .Equal (t , ep .DefaultNS , "library" )
5355 })
5456}
5557
0 commit comments