Skip to content

Commit

Permalink
feat(act): remove test after patcg with new grantee
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferenc Sárai committed Jul 31, 2024
1 parent 18f4d91 commit 3dfe3de
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions pkg/check/act/act.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 3dfe3de

Please sign in to comment.