revert b1ae83c0 ..de851f80

This commit is contained in:
A.Unger
2020-10-22 16:09:15 +02:00
parent de851f808c
commit 28329f5573
2 changed files with 23 additions and 24 deletions
-24
View File
@@ -231,9 +231,6 @@ def testing(ctx, module):
}
]
if module == 'accounts':
steps = build() + ocisMetadataStorage() + steps
if config['modules'][module] == 'frontend':
steps = frontend(module) + steps
@@ -256,27 +253,6 @@ def testing(ctx, module):
},
}
def ocisMetadataStorage():
return [
{
'name': 'ocis-metadata-storage',
'image': 'webhippie/golang:1.14',
'pull': 'always',
'detach': True,
'commands': [
'mkdir -p /srv/app/tmp/ocis/owncloud/data/',
'mkdir -p /srv/app/tmp/ocis/storage/users/',
'ocis/bin/ocis storage-metadata'
],
'volumes': [
{
'name': 'gopath',
'path': '/srv/app'
},
]
},
]
def uploadCoverage(ctx):
return {
'kind': 'pipeline',
+23
View File
@@ -0,0 +1,23 @@
package test
import (
"context"
"flag"
"github.com/micro/cli/v2"
"github.com/owncloud/ocis/storage/pkg/command"
mcfg "github.com/owncloud/ocis/storage/pkg/config"
)
func init() {
go setupMetadataStorage()
}
func setupMetadataStorage() {
cfg := mcfg.New()
app := cli.App{
Name: "storage-metadata-for-tests",
Commands: []*cli.Command{command.StorageMetadata(cfg)},
}
_ = app.Command("storage-metadata").Run(cli.NewContext(&app, &flag.FlagSet{}, &cli.Context{Context: context.Background()}))
}