FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

Ensure TestObjectProvider only support managing one document

Open alpaix opened this issue 5 years ago • 2 comments

TestObjectProvider is responsible for managing test environments in end-to-end tests. Many of these tests require creating and loading multiple container instances. The test provider should do a better job maintaining the document ID consistently across all driver types and runtime versions.

The documentId should always be initialized once (assert that it hasn't been initialized again, i.e. the TestObjectProvider only support managing one document), and the getter asserts that it is always initialized.

On create we can always generate a uuid in that moment and then save the documentId that we got back.

Bonus: the driver tells you which kind of create flow it is (user supplied vs server generated) and we assert what the documentId we generated and what we got back are the same for the user supplied case.

Follow up on #7581

alpaix avatar Oct 06 '21 03:10 alpaix

@alpaix, not sure what's the priority here, but this item has been unassigned and moving from milestone to milestone. Given it looks like follow up from you PR, I'll assign it to you - please reassign as appropriate.

vladsud avatar Dec 20 '21 18:12 vladsud

This issue has been automatically marked as stale because it has had no activity for 180 days. It will be closed if no further activity occurs within 8 days of this comment. Thank you for your contributions to Fluid Framework!

ghost avatar Dec 01 '22 03:12 ghost