-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DotnetStatus] Service deprecation (#1630)
- Loading branch information
Showing
4 changed files
with
13 additions
and
71 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
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 |
---|---|---|
@@ -1,30 +1,13 @@ | ||
"use strict"; | ||
'use strict'; | ||
|
||
const Joi = require("joi"); | ||
const ServiceTester = require('../service-tester'); | ||
|
||
const t = new ServiceTester({ | ||
id: "dotnetstatus", | ||
title: "dotnet-status" | ||
}); | ||
const t = new ServiceTester({ id: 'dotnetstatus', title: 'dotnet-status' }); | ||
module.exports = t; | ||
|
||
t | ||
.create("get nuget package status") | ||
.get("/gh/jaredcnance/dotnet-status/API.json") | ||
.expectJSONTypes( | ||
Joi.object().keys({ | ||
name: "dependencies", | ||
value: Joi.equal("up to date", "out of date", "processing") | ||
}) | ||
); | ||
|
||
t | ||
.create("get nuget package status") | ||
.get("/gh/jaredcnance/dotnet-status/invalid-project.json") | ||
.expectJSON({ name: "dependencies", value: "project not found" }); | ||
|
||
t | ||
.create("get nuget package status error") | ||
.get("/not-a-valid-uri.json") | ||
.expectJSON({ name: "dependencies", value: "inconclusive" }); | ||
t.create('no longer available (previously get package status)') | ||
.get('/gh/jaredcnance/dotnet-status/API.json') | ||
.expectJSON({ | ||
name: 'dotnet status', | ||
value: 'no longer available' | ||
}); |