use prior and current worker auth keys (#2495)

* use prior and current worker auth keys
This commit is contained in:
Irena Rindos authored and irenarindos committed 2022-09-26 11:23:08 -04:00
1 parent 902ca3cccb
commit 4493dfd527
12 files changed
+392 -71

No files matched your search

+3
View File
@@ -415,6 +415,9 @@ func TestWorkerAuthStore(t *testing.T) {
assert.Error(err)
} else {
assert.NoError(err)
// Update and create time are automatically set
tt.expectedWorkerAuth.CreateTime = wAuth.WorkerAuth.CreateTime
tt.expectedWorkerAuth.UpdateTime = wAuth.WorkerAuth.UpdateTime
assert.Equal(tt.expectedWorkerAuth, wAuth.WorkerAuth)
assert.Empty(cmp.Diff(tt.expectedWorkerAuth, wAuth, protocmp.Transform()))
}