From 3dfe3de67d23089eaac3217e8e872927fe01d389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferenc=20S=C3=A1rai?= Date: Wed, 31 Jul 2024 20:17:13 +0200 Subject: [PATCH] feat(act): remove test after patcg with new grantee --- pkg/check/act/act.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/pkg/check/act/act.go b/pkg/check/act/act.go index 23410a8fd..ac782cb82 100644 --- a/pkg/check/act/act.go +++ b/pkg/check/act/act.go @@ -261,22 +261,5 @@ func (c *Check) Run(ctx context.Context, cluster orchestration.Cluster, opts int return fmt.Errorf("node %s: File downloaded with wrong public key successfully - this is an error", nodeName2) } c.logger.Info("ACT Access denied for not enabled grantee after patch") - time.Sleep(5 * time.Second) - - // download act file with the new grantee after patch - // ---------------------------------------------- - // Given that the grantee has been patched - // When the file is downloaded from the node with the new grantee - // Then the file is downloaded successfully - his2 := pFile.HistroryAddress() - size2, hash2, err2 := client1.DownloadActFile(ctx, fileAddress, &api.DownloadOptions{Act: &act, ActPublicKey: &publisher, ActHistoryAddress: &his2}) - if err2 != nil { - return fmt.Errorf("node %s: %w", nodeName1, err2) - } - if !bytes.Equal(file.Hash(), hash2) { - c.logger.Infof("Node %s. ACT file hash not equal. Uploaded size: %d Downloaded size: %d File: %s", nodeName1, file.Size(), size2, fileAddress.String()) - return errors.New("ACT file retrieval - hash error") - } - c.logger.Info("ACT file downloaded with the new grantee after patch") return }