Skip to content

Commit

Permalink
Merge branch 'master' into sonar-branches
Browse files Browse the repository at this point in the history
  • Loading branch information
repo-ranger[bot] authored Oct 13, 2021
2 parents 7855efb + 4c8a211 commit 74962c9
Show file tree
Hide file tree
Showing 51 changed files with 1,538 additions and 1,659 deletions.
20 changes: 13 additions & 7 deletions .github/actions/close-bot/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/actions/close-bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"author": "chris48s",
"license": "CC0",
"dependencies": {
"@actions/core": "^1.5.0",
"@actions/core": "^1.6.0",
"@actions/github": "^5.0.0"
}
}
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ Note: this changelog is for the shields.io server. The changelog for the badge-m

---

## server-2021-10-04

- feat: add 2021 support to GitHub Hacktoberfest [#7086](https://github.com/badges/shields/issues/7086)
- Add [ClearlyDefined] service [#6944](https://github.com/badges/shields/issues/6944)
- handle null licenses in crates.io response schema, run [crates] [#7074](https://github.com/badges/shields/issues/7074)
- [OBS] add Open Build Service service-badge [#6993](https://github.com/badges/shields/issues/6993)
- Correction of badges url in self-hosting configuration with a custom port. Issue 7025 [#7036](https://github.com/badges/shields/issues/7036)
- fix: support gitlab token via env var [#7023](https://github.com/badges/shields/issues/7023)
- Add API-based support for [GitLab] badges, add new GitLab Tag badge [#6988](https://github.com/badges/shields/issues/6988)
- [freecodecamp]: allow + symbol in username [#7016](https://github.com/badges/shields/issues/7016)
- Rename Riot to Element in Matrix badge help [#6996](https://github.com/badges/shields/issues/6996)
- Fixed Reddit Negative Karma Issue [#6992](https://github.com/badges/shields/issues/6992)
- Dependency updates

## server-2021-09-01

- use multi-stage build to reduce size of docker images [#6938](https://github.com/badges/shields/issues/6938)
Expand Down
1 change: 0 additions & 1 deletion config/custom-environment-variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ private:
obs_pass: 'OBS_PASS'
redis_url: 'REDIS_URL'
sentry_dsn: 'SENTRY_DSN'
shields_secret: 'SHIELDS_SECRET'
sl_insight_userUuid: 'SL_INSIGHT_USER_UUID'
sl_insight_apiToken: 'SL_INSIGHT_API_TOKEN'
sonarqube_token: 'SONARQUBE_TOKEN'
Expand Down
4 changes: 2 additions & 2 deletions core/base-service/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
Deprecated,
} from './errors.js'
import { validateExample, transformExample } from './examples.js'
import { fetchFactory } from './got.js'
import { sendRequest } from './node-fetch.js'
import {
makeFullUrl,
assertValidRoute,
Expand Down Expand Up @@ -432,7 +432,7 @@ class BaseService {
ServiceClass: this,
})

const fetcher = fetchFactory(fetchLimitBytes)
const fetcher = sendRequest.bind(sendRequest, fetchLimitBytes)

camp.route(
regex,
Expand Down
16 changes: 4 additions & 12 deletions core/base-service/base.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,11 @@ describe('BaseService', function () {
})

describe('Logging', function () {
let sandbox
beforeEach(function () {
sandbox = sinon.createSandbox()
sinon.stub(trace, 'logTrace')
})
afterEach(function () {
sandbox.restore()
})
beforeEach(function () {
sandbox.stub(trace, 'logTrace')
sinon.restore()
})
it('Invokes the logger as expected', async function () {
await DummyService.invoke(
Expand Down Expand Up @@ -426,15 +422,11 @@ describe('BaseService', function () {
})

describe('request', function () {
let sandbox
beforeEach(function () {
sandbox = sinon.createSandbox()
sinon.stub(trace, 'logTrace')
})
afterEach(function () {
sandbox.restore()
})
beforeEach(function () {
sandbox.stub(trace, 'logTrace')
sinon.restore()
})

it('logs appropriate information', async function () {
Expand Down
7 changes: 2 additions & 5 deletions core/base-service/cache-headers.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,11 @@ describe('Cache header functions', function () {
})

describe('setHeadersForCacheLength', function () {
let sandbox
beforeEach(function () {
sandbox = sinon.createSandbox()
sandbox.useFakeTimers()
sinon.useFakeTimers()
})
afterEach(function () {
sandbox.restore()
sandbox = undefined
sinon.restore()
})

it('should set the correct Date header', function () {
Expand Down
96 changes: 0 additions & 96 deletions core/base-service/got.js

This file was deleted.

102 changes: 0 additions & 102 deletions core/base-service/got.spec.js

This file was deleted.

Loading

0 comments on commit 74962c9

Please # to comment.