[#2] Update integration test to FrostFS AIO image

Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
Alexey Vanin 2023-06-28 17:03:07 +03:00
parent 2f41bf229b
commit 7b05338492
2 changed files with 13 additions and 7 deletions

View file

@ -80,12 +80,9 @@ func runLocalTests(ctx context.Context, t *testing.T, key *keys.PrivateKey) {
} }
func runTestInContainer(rootCtx context.Context, t *testing.T, key *keys.PrivateKey) { func runTestInContainer(rootCtx context.Context, t *testing.T, key *keys.PrivateKey) {
aioImage := "nspccdev/neofs-aio-testcontainer:" aioImage := "truecloudlab/frostfs-aio:"
versions := []string{ versions := []string{
"0.29.0", "1.2.7",
"0.30.0",
"0.32.0",
"latest",
} }
for _, version := range versions { for _, version := range versions {
@ -756,6 +753,15 @@ func restObjectDelete(ctx context.Context, t *testing.T, p *pool.Pool, owner *us
Role: models.NewRole(models.RoleOTHERS), Role: models.NewRole(models.RoleOTHERS),
Keys: []string{}, Keys: []string{},
}}, }},
},
{
Operation: models.NewOperation(models.OperationHEAD),
Action: models.NewAction(models.ActionALLOW),
Filters: []*models.Filter{},
Targets: []*models.Target{{
Role: models.NewRole(models.RoleOTHERS),
Keys: []string{},
}},
}}, }},
} }
bearer.Object = append(bearer.Object, getRestrictBearerRecords()...) bearer.Object = append(bearer.Object, getRestrictBearerRecords()...)

View file

@ -16,7 +16,7 @@ func TestErrors(t *testing.T) {
resp := NewErrorResponse(apiErr) resp := NewErrorResponse(apiErr)
data, err := json.Marshal(resp) data, err := json.Marshal(resp)
require.NoError(t, err) require.NoError(t, err)
require.Equal(t, `{"code":3072,"message":"some context: status: code = 3072","type":"API"}`, string(data)) require.Equal(t, `{"code":3072,"message":"some context: status: code = 3072 message = container not found","type":"API"}`, string(data))
gwErr := fmt.Errorf("some context: %w", errors.New("sanity check error")) gwErr := fmt.Errorf("some context: %w", errors.New("sanity check error"))