mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
test: e2e test for client.ServiceLogs
This commit is contained in:
1 parent
1e6aaf451e
commit
4fa30ab8cb
3 files changed
+120
-7
No files matched your search
@@ -29,10 +29,7 @@ func deployTestService(t *testing.T, ctx context.Context, cli *client.Client, na
|
||||
}
|
||||
|
||||
deployment := cli.NewDeployment(spec, nil)
|
||||
err := deployment.Validate(ctx)
|
||||
require.NoError(t, err)
|
||||
|
||||
_, err = deployment.Run(ctx)
|
||||
_, err := deployment.Run(ctx)
|
||||
require.NoError(t, err)
|
||||
|
||||
// Wait for all replicas to be running
|
||||
@@ -41,9 +38,8 @@ func deployTestService(t *testing.T, ctx context.Context, cli *client.Client, na
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
if uint(len(service.Containers)) != replicas {
|
||||
return false
|
||||
}
|
||||
assertServiceMatchesSpec(t, service, spec)
|
||||
|
||||
for _, ctr := range service.Containers {
|
||||
if ctr.Container.State.Status != "running" {
|
||||
return false
|
||||
|
||||
Reference in new issue
Block a user