-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dda5c61
commit 7804e5c
Showing
22 changed files
with
618 additions
and
349 deletions.
There are no files selected for viewing
File renamed without changes.
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,42 @@ | ||
[ | ||
{ | ||
"_id": "5daf1aa18a34d4bb8405b5e0", | ||
"slug": "testing-789", | ||
"source": { | ||
"_id": "5de526fc43e373581b7810c8", | ||
"oldEPiServerId": 2, | ||
"title": "ACP Journal Club", | ||
"__v": 0 | ||
}, | ||
"shortSummary": "testing", | ||
"resourceLinks": "http://localhost:3010/keystone/items", | ||
"url": "https://www.nhs.uk/", | ||
"title": "Wonder Drug", | ||
"__v": 0, | ||
"comment": "<p>A</p>", | ||
"publicationDate": "2019-11-25T13:48:36.000Z", | ||
"createdDate": "2019-10-22T15:05:05.927Z", | ||
"specialities": [ | ||
{ | ||
"_id": "5e0e4331200a585f718e1ee5", | ||
"key": "be1c2e2f-745e-4a82-b5aa-d4cef4d31a1b", | ||
"title": "Anaesthesia and pain", | ||
"__v": 0 | ||
}, | ||
{ | ||
"_id": "5e0e4331200a58dead8e1ee8", | ||
"key": "53fc67a4-46d8-4171-9447-7fcf216c8749", | ||
"title": "Complementary and alternative therapies", | ||
"__v": 0 | ||
} | ||
], | ||
"evidenceType": { | ||
"_id": "5df7abf383138898ee1f67ef", | ||
"title": "Safety alerts", | ||
"key": "mas_evidence_types:Safety%20alerts", | ||
"oldEPiServerId": 778708, | ||
"__v": 0 | ||
}, | ||
"isInitial": false | ||
} | ||
] |
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,162 @@ | ||
[ | ||
{ | ||
"_id": "5daf1aa18a34d4bb8405b5e0", | ||
"slug": "testing-789", | ||
"source": { | ||
"_id": "5de526fc43e373581b7810c8", | ||
"oldEPiServerId": 2, | ||
"title": "ACP Journal Club", | ||
"__v": 0 | ||
}, | ||
"shortSummary": "testing", | ||
"resourceLinks": "http://localhost:3010/keystone/items", | ||
"url": "https://www.nhs.uk/", | ||
"title": "Wonder Drug", | ||
"__v": 0, | ||
"comment": "<p>A</p>", | ||
"publicationDate": "2019-11-25T13:48:36.000Z", | ||
"createdDate": "2019-10-22T15:05:05.927Z", | ||
"specialities": [ | ||
{ | ||
"_id": "5e0e4331200a585f718e1ee5", | ||
"key": "be1c2e2f-745e-4a82-b5aa-d4cef4d31a1b", | ||
"title": "Anaesthesia and pain", | ||
"__v": 0 | ||
}, | ||
{ | ||
"_id": "5e0e4331200a58dead8e1ee8", | ||
"key": "53fc67a4-46d8-4171-9447-7fcf216c8749", | ||
"title": "Complementary and alternative therapies", | ||
"__v": 0 | ||
} | ||
], | ||
"evidenceType": { | ||
"_id": "5df7abf383138898ee1f67ef", | ||
"title": "Safety alerts", | ||
"key": "mas_evidence_types:Safety%20alerts", | ||
"oldEPiServerId": 778708, | ||
"__v": 0 | ||
}, | ||
"isInitial": false | ||
}, | ||
{ | ||
"_id": "5db02d6d8a34d43bde05b5e1", | ||
"slug": "my-medicine", | ||
"source": { | ||
"_id": "5de5261b8ce66f142e44cd08", | ||
"oldEPiServerId": 1394, | ||
"title": "ADHD Awareness Month", | ||
"__v": 0 | ||
}, | ||
"shortSummary": "this is my medicine", | ||
"resourceLinks": "http://localhost:3010/keystone/items", | ||
"url": "https://www.nice.org.uk/", | ||
"title": "MY MEDICINE", | ||
"__v": 0, | ||
"comment": "<p>this is my comment</p>", | ||
"publicationDate": "2019-11-23T13:48:36.000Z", | ||
"createdDate": "2019-10-23T10:38:43.000Z", | ||
"specialities": [ | ||
{ | ||
"_id": "5e0e4331200a585f718e1ee5", | ||
"key": "be1c2e2f-745e-4a82-b5aa-d4cef4d31a1b", | ||
"title": "Anaesthesia and pain", | ||
"__v": 0 | ||
}, | ||
{ | ||
"_id": "5e0e4331200a58dead8e1ee8", | ||
"key": "53fc67a4-46d8-4171-9447-7fcf216c8749", | ||
"title": "Complementary and alternative therapies", | ||
"__v": 0 | ||
} | ||
], | ||
"evidenceType": { | ||
"_id": "5df7abf383138898ee1f67ef", | ||
"title": "Safety alerts", | ||
"key": "mas_evidence_types:Safety%20alerts", | ||
"oldEPiServerId": 778708, | ||
"__v": 0 | ||
}, | ||
"isInitial": false | ||
}, | ||
{ | ||
"_id": "5db031d78a34d4a69905b5e3", | ||
"slug": "hello-world", | ||
"source": { | ||
"_id": "5de52a02c676eee677e97f41", | ||
"oldEPiServerId": 2, | ||
"title": "Substance Misuse Management in General Practice", | ||
"__v": 0 | ||
}, | ||
"shortSummary": "test", | ||
"resourceLinks": "http://localhost:3010/keystone/items", | ||
"url": "https://www.bbc.co.uk/", | ||
"title": "Hello world", | ||
"__v": 0, | ||
"comment": "<p>comment</p>", | ||
"publicationDate": "2019-10-23T00:00:00.000Z", | ||
"createdDate": "2019-10-23T10:56:40.000Z", | ||
"specialities": [ | ||
{ | ||
"_id": "5e0e4331200a585f718e1ee5", | ||
"key": "be1c2e2f-745e-4a82-b5aa-d4cef4d31a1b", | ||
"title": "Anaesthesia and pain", | ||
"__v": 0 | ||
}, | ||
{ | ||
"_id": "5e0e4331200a58dead8e1ee8", | ||
"key": "53fc67a4-46d8-4171-9447-7fcf216c8749", | ||
"title": "Complementary and alternative therapies", | ||
"__v": 0 | ||
} | ||
], | ||
"evidenceType": { | ||
"_id": "5df7abf383138898ee1f67ef", | ||
"title": "Safety alerts", | ||
"key": "mas_evidence_types:Safety%20alerts", | ||
"oldEPiServerId": 778708, | ||
"__v": 0 | ||
}, | ||
"isInitial": false | ||
}, | ||
{ | ||
"_id": "5db6cbcc8a34d4ca5905b5e4", | ||
"slug": "hello-there", | ||
"source": { | ||
"_id": "5de52a01c676ee589ae97d2a", | ||
"oldEPiServerId": 2, | ||
"title": "Journal of Surgical Oncology", | ||
"__v": 0 | ||
}, | ||
"shortSummary": "hello", | ||
"resourceLinks": "http://localhost:3010/keystone/items", | ||
"url": "https://www.google.com/", | ||
"title": "A Placebo", | ||
"__v": 0, | ||
"comment": "<p>test</p>", | ||
"publicationDate": "2019-10-28T00:00:00.000Z", | ||
"createdDate": "2019-10-28T11:07:11.000Z", | ||
"specialities": [ | ||
{ | ||
"_id": "5e0e4331200a585f718e1ee5", | ||
"key": "be1c2e2f-745e-4a82-b5aa-d4cef4d31a1b", | ||
"title": "Anaesthesia and pain", | ||
"__v": 0 | ||
}, | ||
{ | ||
"_id": "5e0e4331200a58dead8e1ee8", | ||
"key": "53fc67a4-46d8-4171-9447-7fcf216c8749", | ||
"title": "Complementary and alternative therapies", | ||
"__v": 0 | ||
} | ||
], | ||
"evidenceType": { | ||
"_id": "5df7abf383138898ee1f67ef", | ||
"title": "Safety alerts", | ||
"key": "mas_evidence_types:Safety%20alerts", | ||
"oldEPiServerId": 778708, | ||
"__v": 0 | ||
}, | ||
"isInitial": false | ||
} | ||
] |
46 changes: 46 additions & 0 deletions
46
lambda/MAS.Tests/Infrastructure/MASWebApplicationFactory.cs
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,46 @@ | ||
using MAS.Configuration; | ||
using Microsoft.AspNetCore; | ||
using Microsoft.AspNetCore.Hosting; | ||
using Microsoft.AspNetCore.Mvc.Testing; | ||
using Microsoft.AspNetCore.TestHost; | ||
using Microsoft.Extensions.Configuration; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Microsoft.Extensions.DependencyInjection.Extensions; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Net.Http; | ||
using System.Threading.Tasks; | ||
|
||
namespace MAS.Tests.Infrastructure | ||
{ | ||
/// <summary> | ||
/// See https://github.com/aspnet/AspNetCore.Docs/issues/7063#issuecomment-414661566 | ||
/// </summary> | ||
public class MASWebApplicationFactory : WebApplicationFactory<Startup> | ||
{ | ||
protected override IWebHostBuilder CreateWebHostBuilder() | ||
{ | ||
return WebHost.CreateDefaultBuilder() | ||
.UseStartup<Startup>() | ||
.UseLambdaServer(); | ||
} | ||
|
||
protected override void ConfigureWebHost(IWebHostBuilder builder) | ||
{ | ||
var projectDir = Directory.GetCurrentDirectory(); | ||
|
||
builder.ConfigureAppConfiguration((context, conf) => | ||
{ | ||
conf.AddJsonFile(Path.Combine(projectDir, "appsettings.test.json")); | ||
}); | ||
|
||
builder.ConfigureTestServices(services => { | ||
AppSettings.CMSConfig.BaseUrl = new Uri("file://" + projectDir + "/Feeds").ToString(); | ||
}); | ||
|
||
base.ConfigureWebHost(builder); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.
7804e5c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TeamCity MAS / MAS Build 1.1.0.562 outcome was FAILURE
Summary: Artifacts size 0 B is 100% different from 3.6 MB in build #1.1.0.557-r893BC73; exit code 1 (Step: Set build number (Command Line)) (new) Build time: 00:00:15
7804e5c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TeamCity MAS / MAS Build 1.1.0.563-MAS-129_121__112_Dai outcome was FAILURE
Summary: Artifacts size 0 B is 100% different from 3.6 MB in build #1.1.0.557-r893BC73 Build time: 00:00:38