dotnet package resolution
This commit is contained in:
@ -94,7 +94,7 @@ namespace isnd.host.tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TrueTestRegistrationV3Resource()
|
||||
public async Task TrueTestRegistrationV3Resource()
|
||||
{
|
||||
using (var serviceScope = server.Host.Services.CreateScope())
|
||||
{
|
||||
@ -103,7 +103,10 @@ namespace isnd.host.tests
|
||||
var prov = new RegistrationResourceV3Provider();
|
||||
var source = new PackageSource(pkgSourceUrl);
|
||||
var repo = new SourceRepository(source, new INuGetResourceProvider[] { prov });
|
||||
prov.TryCreate(repo, CancellationToken.None);
|
||||
(bool ok, INuGetResource res) = await prov.TryCreate(repo, CancellationToken.None);
|
||||
|
||||
// FIXME FALSE Assert.True(ok);
|
||||
// FIXME FALSE Assert.NotNull(res);
|
||||
|
||||
}
|
||||
}
|
||||
@ -167,7 +170,8 @@ namespace isnd.host.tests
|
||||
{
|
||||
Console.WriteLine($"Found package {result.Identity.Id} {result.Identity.Version}");
|
||||
}
|
||||
Assert.NotEmpty( meta.Where(result => result.DependencySets.Any()));
|
||||
|
||||
Assert.True( meta.Where(result => result.DependencySets.Any()).Count()>0);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@ -179,13 +183,13 @@ namespace isnd.host.tests
|
||||
PackageUpdateResource pushRes = await repository.GetResourceAsync<PackageUpdateResource>();
|
||||
SymbolPackageUpdateResourceV3 symbolPackageResource = await repository.GetResourceAsync<SymbolPackageUpdateResourceV3>();
|
||||
|
||||
await pushRes.Push(new List<string>{ "../../../../../src/isn.abst/bin/Release/isn.abst.1.0.24.nupkg" }, null,
|
||||
await pushRes.Push(new List<string>{ "../../../../../src/isn.abst/bin/Release/isn.abst.1.0.1.nupkg" }, null,
|
||||
5000, false, GetApiKey, GetSymbolsApiKey, false, false, symbolPackageResource, logger);
|
||||
|
||||
}
|
||||
|
||||
// not yet from testing url a [Fact]
|
||||
public async Task TestGetPackageUri()
|
||||
public async Task TestShouldGetPackageUri()
|
||||
{
|
||||
PackageSource source = new PackageSource("https://isn.pschneider.fr/v3/index.json");
|
||||
source.ProtocolVersion=3;
|
||||
|
Reference in New Issue
Block a user