mirror of
https://github.com/project-zot/zot.git
synced 2025-02-17 23:45:36 -05:00
fix(sync): flaky test on fetching tags (#1546)
Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
parent
620287c7a4
commit
d881f4e916
1 changed files with 15 additions and 0 deletions
|
@ -22,6 +22,7 @@ import (
|
|||
|
||||
"zotregistry.io/zot/errors"
|
||||
"zotregistry.io/zot/pkg/extensions/config"
|
||||
syncconf "zotregistry.io/zot/pkg/extensions/config/sync"
|
||||
"zotregistry.io/zot/pkg/extensions/lint"
|
||||
"zotregistry.io/zot/pkg/extensions/monitoring"
|
||||
client "zotregistry.io/zot/pkg/extensions/sync/httpclient"
|
||||
|
@ -155,6 +156,20 @@ func TestRemoteRegistry(t *testing.T) {
|
|||
})
|
||||
}
|
||||
|
||||
func TestService(t *testing.T) {
|
||||
Convey("trigger fetch tags error", t, func() {
|
||||
conf := syncconf.RegistryConfig{
|
||||
URLs: []string{"http://localhost"},
|
||||
}
|
||||
|
||||
service, err := New(conf, "", storage.StoreController{}, mocks.RepoDBMock{}, log.Logger{})
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
err = service.SyncRepo("repo")
|
||||
So(err, ShouldNotBeNil)
|
||||
})
|
||||
}
|
||||
|
||||
func TestLocalRegistry(t *testing.T) {
|
||||
Convey("make StoreController", t, func() {
|
||||
dir := t.TempDir()
|
||||
|
|
Loading…
Add table
Reference in a new issue