diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2025-07-18 01:54:36 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-18 01:54:36 -0700 |
| commit | a906358c5946ba9907584616041739e42c6c637c (patch) | |
| tree | 0cd6bae9a1341b74575b8fb667f3225de9ef7b63 | |
| parent | 12f34f965fbecdf8466d51d8beeeb22b9327cec8 (diff) | |
| download | seaweedfs-a906358c5946ba9907584616041739e42c6c637c.tar.xz seaweedfs-a906358c5946ba9907584616041739e42c6c637c.zip | |
Update test/s3/retention/s3_retention_test.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| -rw-r--r-- | test/s3/retention/s3_retention_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/s3/retention/s3_retention_test.go b/test/s3/retention/s3_retention_test.go index 6a5a946a0..fd85921b7 100644 --- a/test/s3/retention/s3_retention_test.go +++ b/test/s3/retention/s3_retention_test.go @@ -437,6 +437,8 @@ func TestObjectLockConfiguration(t *testing.T) { }) require.NoError(t, err) assert.Equal(t, types.ObjectLockEnabledEnabled, configResp.ObjectLockConfiguration.ObjectLockEnabled) + require.NotNil(t, configResp.ObjectLockConfiguration.Rule.DefaultRetention, "DefaultRetention should not be nil") + require.NotNil(t, configResp.ObjectLockConfiguration.Rule.DefaultRetention.Days, "Days should not be nil") assert.Equal(t, types.ObjectLockRetentionModeGovernance, configResp.ObjectLockConfiguration.Rule.DefaultRetention.Mode) assert.Equal(t, int32(30), *configResp.ObjectLockConfiguration.Rule.DefaultRetention.Days) } |
