dotnet package resolution
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<RootNamespace>test_isn</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
@ -9,7 +9,11 @@
|
||||
<FileVersion>1.0.7.0</FileVersion>
|
||||
<InformationalVersion>1.0.7+Branch.main.Sha.3695c1742965d93eba0ad851656cfaa3e44ba327</InformationalVersion>
|
||||
<Version>1.0.7</Version>
|
||||
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="isn.abst" Version="1.0.24" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
@ -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