Skip to content

Support Push/Delete to http server and file system#253

Closed
yugangw-msft wants to merge 15 commits intodevfrom
dev-yugangw-pushhttp
Closed

Support Push/Delete to http server and file system#253
yugangw-msft wants to merge 15 commits intodevfrom
dev-yugangw-pushhttp

Conversation

@yugangw-msft
Copy link
Contributor

  1. The missing piece is to support V3 repository style when the target is a file system.
  2. The code around "HttpHandlerResourceV2" and "STSAuthHelper.cs" are temporary and will be gone in near future.

EDIT: CI passed

@dnfclas
Copy link

dnfclas commented Feb 2, 2016

Hi @yugangw-msft, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.

TTYL, DNFBOT;

@yugangw-msft yugangw-msft changed the title Support Push/Delete to http server and file syte, Support Push/Delete to http server and file system Feb 2, 2016
@yishaigalatzer
Copy link
Contributor

@yugangw-msft yugangw-msft force-pushed the dev-yugangw-pushhttp branch 2 times, most recently from bda2b81 to 58058a9 Compare February 2, 2016 22:07
{
throw new ArgumentNullException(nameof(uri));
}
if (nonInteractive)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be an empty line above this.

@emgarten
Copy link
Member

emgarten commented Feb 4, 2016

NuGet.Protocol.Core.v2 should not be used, this project will be deleted soon. V2 here means Legacy NuGet.Core resources, not OData V2.

The resources can still be called V2 but they go into NuGet.Protocol.Core.v3. Take a look at the FindPackageById resources which have v2 implementations in the V3 project.

Everything needed for STS auth and the handler resource are already in NuGet.Protocol.Core.v3 so this code should not need to be copied.

There have been recent changes to clean up HttpSource. Instead of getting an httpmessagehandler resource you can now get the HttpSourceResource which will give you the single instance HttpSource for the endpoint. HttpSource.Create(source) can be used also.

@emgarten
Copy link
Member

emgarten commented Feb 4, 2016

@yugangw-msft
Copy link
Contributor Author

CC @emgarten please review.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going forward I'd suggest using a platform trait to indicate platform specific tests like this

[Fact]
[Trait("Platform", "WindowsOnly")]
public void PushCommand_PushToFileSystemSourceUncStyle()
{
...
}

Having the trait one can invoke xunit runner with -ExcludeTraits "Platform=WindowsOnly"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, this option looks good me. CC @deepakaravindr

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened a follow up issue NuGet/Home#2065

@emgarten
Copy link
Member

emgarten commented Feb 5, 2016

🚀

@yugangw-msft
Copy link
Contributor Author

I merged the same change through #262 for simpler commit history.

@yugangw-msft yugangw-msft deleted the dev-yugangw-pushhttp branch February 9, 2016 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants