Merge imported products into local session state
This commit is contained in:
@@ -560,9 +560,9 @@ func TestPublicationInspectionAndSessionConfigIgnoreExecutionSnapshot(t *testing
|
||||
current.Commit.Artifacts = filtered
|
||||
}
|
||||
if tc.body == nil {
|
||||
delete(fake.Objects, current.CurrentManifestKey)
|
||||
delete(fake.Objects, artifacts.S3RunSessionManifestKey(current.SessionPrefix, current.RunID))
|
||||
} else {
|
||||
fake.SeedObject(storage.FakeObject{Key: current.CurrentManifestKey, Data: tc.body})
|
||||
fake.SeedObject(storage.FakeObject{Key: artifacts.S3RunSessionManifestKey(current.SessionPrefix, current.RunID), Data: tc.body})
|
||||
}
|
||||
commitData, err := artifacts.EncodeRemoteCommitManifest(*current.Commit)
|
||||
if err != nil {
|
||||
@@ -595,7 +595,7 @@ func TestPublicationInspectionAndSessionConfigIgnoreExecutionSnapshot(t *testing
|
||||
t.Fatalf("session %s", data)
|
||||
}
|
||||
for _, read := range fake.Reads {
|
||||
if read.Key == current.CurrentManifestKey {
|
||||
if read.Key == artifacts.S3RunSessionManifestKey(current.SessionPrefix, current.RunID) {
|
||||
t.Fatal("execution snapshot was read")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user