Skip to content

Commit

Permalink
Merge branch 'main' into TLSminVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayg-intel committed Jun 17, 2022
2 parents 29fbb35 + dbc8f13 commit cf0a0b6
Show file tree
Hide file tree
Showing 139 changed files with 641 additions and 178 deletions.
7 changes: 6 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint"
"@typescript-eslint",
"license-header"
],
"rules": {
"license-header/header": [
"warn",
"./license-header.js"
],
"@typescript-eslint/strict-boolean-expressions": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/no-dynamic-delete": 0,
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/api-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- run: docker-compose up -d
- run: sleep 30
- run: docker run --network=host -v /home/runner/work/mps/mps/src/test/collections/:/collections postman/newman run /collections/MPS.postman_collection.json -e /collections/MPS.postman_environment.json --insecure
- run: docker run --network=host -v /home/runner/work/mps/mps/src/test/collections/:/collections postman/newman run /collections/mps_security_api_test_postman_collection.json -e /collections/MPS.postman_environment.json -d /collections/data/mps_security_api_test_data.json --insecure
- name: Dump docker logs on
if: failure()
uses: jwalton/gh-docker-logs@v1
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 17.x]
node-version: [14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 4 additions & 0 deletions license-header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/*********************************************************************
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/
79 changes: 65 additions & 14 deletions package-lock.json

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

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"pg": "^8.7.3",
"rc": "^1.2.8",
"winston": "^3.7.2",
"ws": "^8.7.0",
"ws": "^8.8.0",
"xml2js": "^0.4.23"
},
"devDependencies": {
Expand All @@ -63,14 +63,16 @@
"eslint": "^7.32.0",
"eslint-config-standard": "^16.0.3",
"eslint-config-standard-with-typescript": "^21.0.1",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-license-header": "^0.4.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.0.0",
"jest": "27.5.1",
"jest-junit": "^13.2.0",
"jest-transform-stub": "^2.0.0",
"ts-jest": "^27.1.4",
"ts-node": "^10.8.0",
"ts-node": "^10.8.1",
"typescript": "^4.7.3"
}
}
3 changes: 2 additions & 1 deletion src/Healthcheck.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/*********************************************************************
* Copyright (c) Intel Corporation 2021
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/

import { request } from 'http'
import { RequestOptions } from 'https'

Expand Down
5 changes: 5 additions & 0 deletions src/amt/APFProcessor.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*********************************************************************
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/

import Common from '../utils/common'
import { logger } from '../logging'
import APFProcessor, { APFProtocol } from './APFProcessor'
Expand Down
2 changes: 1 addition & 1 deletion src/amt/APFProcessor.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*********************************************************************
* Copyright (c) Intel Corporation 2018-2021
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/

Expand Down
5 changes: 5 additions & 0 deletions src/amt/CIRAChannel.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*********************************************************************
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/

import { CIRASocket } from '../models/models'
import APFProcessor from './APFProcessor'
import { CIRAChannel } from './CIRAChannel'
Expand Down
2 changes: 1 addition & 1 deletion src/amt/CIRAChannel.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*********************************************************************
* Copyright (c) Intel Corporation 2018-2021
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/

Expand Down
5 changes: 5 additions & 0 deletions src/amt/CIRAHandler.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*********************************************************************
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/

// import { CIRASocket } from '../models/models'
// import { card, computerSystemPackage, enumerateResponseCIMSoftwareIdentity } from '../test/helper/wsmanResponses'
import { HttpZResponseModel } from 'http-z'
Expand Down
2 changes: 1 addition & 1 deletion src/amt/CIRAHandler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*********************************************************************
* Copyright (c) Intel Corporation 2018-2021
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/

Expand Down
7 changes: 4 additions & 3 deletions src/amt/ConnectedDevice.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/*********************************************************************
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/

import { CIRASocket } from '../models/models'
import { HttpHandler } from './HttpHandler'

Expand Down
7 changes: 4 additions & 3 deletions src/amt/DeviceAction.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/*********************************************************************
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/

import { logger, messages } from '../logging'
import { CIRAHandler } from './CIRAHandler'
import { AMT, CIM, IPS, Common } from '@open-amt-cloud-toolkit/wsman-messages'
Expand Down
6 changes: 3 additions & 3 deletions src/amt/HttpHandler.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*********************************************************************
* Copyright (c) Intel Corporation 2021
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/

import { logger, messages } from '../logging'
import { createHash } from 'crypto'
Expand Down
5 changes: 5 additions & 0 deletions src/amt/connectedDevice.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*********************************************************************
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/

import { CIRASocket } from '../models/models'
import { ConnectedDevice } from './ConnectedDevice'

Expand Down
5 changes: 5 additions & 0 deletions src/amt/deviceAction.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*********************************************************************
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/

import { CIRASocket } from '../models/models'
import {
amtMessageLog,
Expand Down
5 changes: 5 additions & 0 deletions src/amt/httpHandler.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*********************************************************************
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/

import { CIM, Common } from '@open-amt-cloud-toolkit/wsman-messages'
import { connectionParams, HttpHandler } from './HttpHandler'

Expand Down
3 changes: 2 additions & 1 deletion src/custom.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/*********************************************************************
* Copyright (c) Intel Corporation 2021
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/

import { DeviceAction } from './amt/DeviceAction'
import { IDB } from './interfaces/IDb'
import { ISecretManagerService } from './interfaces/ISecretManagerService'
Expand Down
3 changes: 2 additions & 1 deletion src/data/postgres/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/*********************************************************************
* Copyright (c) Intel Corporation 2021
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/

/*
Code pattern used to make connections and queries.
Pattern referred from https://node-postgres.com/guides/project-structure
Expand Down
5 changes: 5 additions & 0 deletions src/data/postgres/postgresDb.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*********************************************************************
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/

import { QueryResult } from 'pg'
import PostgresDb, { POSTGRES_RESPONSE_CODES } from '.'

Expand Down
5 changes: 5 additions & 0 deletions src/data/postgres/tables/device.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*********************************************************************
* Copyright (c) Intel Corporation 2022
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/

import { DeviceTable } from './device'
import { Device } from '../../../models/models'
import PostgresDb from '..'
Expand Down
Loading

0 comments on commit cf0a0b6

Please sign in to comment.