public async Task GetNrsMapContainerTest() { var session = await TestUtils.CreateTestApp(); var name = TestUtils.GetRandomString(5); var xorUrl = await CreateNrsMapContainerXorUrlAsync(session, name); var api = session.Nrs; var(nrsMapRaw, version) = await api.GetNrsMapContainerAsync(xorUrl); Assert.AreEqual(0, version); await Validate.RawNrsMapAsync(nrsMapRaw); await Validate.XorUrlAsync(xorUrl, DataType.PublishedSeqAppendOnlyData, ContentType.NrsMapContainer, 1500); }
public async Task AddToNrsMapContainerTest() { var session = await TestUtils.CreateTestApp(); var name = TestUtils.GetRandomString(5); var xorUrlResult = await CreateNrsMapContainerXorUrlAsync(session, name); var link = await CreateFilesContainerAsync(session); var(nrsMapRaw, xorUrl, version) = await session.Nrs.AddToNrsMapContainerAsync( name, $"{link}?v=0", SetDefault, DirectLink, DryRun); Assert.AreEqual(1, version); await Validate.RawNrsMapAsync(nrsMapRaw); await Validate.XorUrlAsync(xorUrl, DataType.PublishedSeqAppendOnlyData, ContentType.NrsMapContainer, 1500); }
public async Task CreateNrsMapContainerTest() { var session = await TestUtils.CreateTestApp(); var name = TestUtils.GetRandomString(5); var link = await CreateFilesContainerAsync(session); var api = session.Nrs; var(nrsMapRaw, processedEntries, xorUrl) = await api.CreateNrsMapContainerAsync( name, $"{link}?v=0", false, DryRun, SetDefault); Assert.IsNotNull(processedEntries); await Validate.RawNrsMapAsync(nrsMapRaw); await Validate.XorUrlAsync(xorUrl, DataType.PublishedSeqAppendOnlyData, ContentType.NrsMapContainer, 1500); }