This repository has been archived by the owner on May 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return location link on create/update
For #17
- Loading branch information
1 parent
6438ed7
commit 37f7be1
Showing
5 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Threading.Tasks; | ||
using Akeneo.Model; | ||
using Xunit; | ||
|
||
namespace Akeneo.IntegrationTests | ||
{ | ||
public class MediaFileTests : IntegrationTestBase | ||
{ | ||
[Fact] | ||
public async Task Shoud_Upload_Image() | ||
{ | ||
/* Setup */ | ||
var fileUpload = new MediaUpload | ||
{ | ||
Product = | ||
{ | ||
Identifier = "tyfon-bb-1000-1000-3m-3m", | ||
Attribute = "Product_Image_Medium" | ||
}, | ||
FilePath = "C:\\tmp\\product_logo.png" | ||
}; | ||
|
||
/* Test */ | ||
var response = await Client.UploadAsync(fileUpload); | ||
/* Assert */ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace Akeneo.Consts | ||
{ | ||
public class PaginationLinks | ||
{ | ||
public const string Location = "location"; | ||
public const string Next = "next"; | ||
public const string Previous = "previous"; | ||
public const string Self = "self"; | ||
public const string First = "first"; | ||
public const string Download = "download"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters