Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jfantinhardesty committed Jun 11, 2024
1 parent b126122 commit fdecc4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion component/azstorage/block_blob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2218,7 +2218,7 @@ func (s *blockBlobTestSuite) TestGetAttrVirtualDirSubDir() {
func (s *blockBlobTestSuite) TestGetAttrDirWithCPKEnabled() {
defer s.cleanupTest()
CPKEncryptionKey, CPKEncryptionKeySHA256 := generateCPKInfo()
config := fmt.Sprintf("azstorage:\n account-name: %s\n endpoint: https://%s.blob.core.windows.net/\n type: block\n cpk-enabled: true\n cpk-encryption-key: %s\n cpk-encryption-key-sha256: %s\n account-key: %s\n mode: key\n container: %s\n",
config := fmt.Sprintf("azstorage:\n account-name: %s\n endpoint: %s\n type: block\n cpk-enabled: true\n cpk-encryption-key: %s\n cpk-encryption-key-sha256: %s\n account-key: %s\n mode: key\n container: %s\n",
storageTestConfigurationParameters.BlockAccount, storageTestConfigurationParameters.BlockAccount, CPKEncryptionKey, CPKEncryptionKeySHA256, storageTestConfigurationParameters.BlockKey, s.container)

s.tearDownTestHelper(false)
Expand Down
4 changes: 2 additions & 2 deletions component/s3storage/s3storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2233,7 +2233,7 @@ func (s *s3StorageTestSuite) TestCreateLink() {
s.assert.NotNil(attr)
s.assert.NotEmpty(attr.Metadata)
s.assert.Contains(attr.Metadata, symlinkKey)
s.assert.Equal("true", attr.Metadata[symlinkKey])
s.assert.Equal("true", *attr.Metadata[symlinkKey])

//download and make sure the data is correct
result, err := s.s3Storage.ReadLink(internal.ReadLinkOptions{Name: name})
Expand Down Expand Up @@ -2407,7 +2407,7 @@ func (s *s3StorageTestSuite) TestGetAttrLink() {
s.assert.True(props.IsSymlink())
s.assert.NotEmpty(props.Metadata)
s.assert.Contains(props.Metadata, symlinkKey)
s.assert.EqualValues("true", props.Metadata[symlinkKey])
s.assert.EqualValues("true", *props.Metadata[symlinkKey])
}

func (s *s3StorageTestSuite) TestGetAttrFileSize() {
Expand Down

0 comments on commit fdecc4f

Please sign in to comment.