Skip to content

Commit 81e53b3

Browse files
authored
chore: 3.23.0 - Jet Black Vienna - December 2023 (#353)
* chore: initial update * chore: upgrade http-proxy-agent * chore: jsonwebtoken bump * chore: commander * chore: ora-classic * chore: update notifier * chore: bump dependencies (sans rollup) * feat: renamed mindsphere * chore: version 3.23.0 🎉 * chore: skip some tests * chore: removed model management from testing
1 parent 9b96a0c commit 81e53b3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+4335
-3848
lines changed

.github/workflows/build.yml

+101-102
Original file line numberDiff line numberDiff line change
@@ -2,118 +2,117 @@
22

33
name: Build
44

5-
on:
6-
push:
7-
pull_request:
8-
schedule:
9-
- cron: '0 13 * * *'
5+
on:
6+
push:
7+
pull_request:
8+
schedule:
9+
- cron: "0 13 * * *"
1010

1111
jobs:
12-
build:
13-
environment: CI
14-
runs-on: ubuntu-latest
12+
build:
13+
environment: CI
14+
runs-on: ubuntu-latest
1515

16-
steps:
17-
- name: Setup Node.js environment
18-
uses: actions/[email protected]
16+
steps:
17+
- name: Setup Node.js environment
18+
uses: actions/[email protected]
1919

20-
- name: Checkout Branch
21-
uses: actions/checkout@v2
20+
- name: Checkout Branch
21+
uses: actions/checkout@v2
2222

23-
- uses: toko-bifrost/ms-teams-deploy-card@master
24-
if: always()
25-
with:
26-
github-token: ${{ github.token }}
27-
webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}
23+
- uses: toko-bifrost/ms-teams-deploy-card@master
24+
if: always()
25+
with:
26+
github-token: ${{ github.token }}
27+
webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}
2828

29-
- name: setup the mindsphere authentication
30-
run: |
31-
mkdir ~/.mc
32-
echo '${{ secrets.AUTH_JSON }}' >> ~/.mc/auth.json
33-
echo '${{ secrets.PRIVATE_KEY }}' >> private.key
34-
35-
- name: install dependencies
36-
run: |
37-
npm install
29+
- name: setup the mindsphere authentication
30+
run: |
31+
mkdir ~/.mc
32+
echo '${{ secrets.AUTH_JSON }}' >> ~/.mc/auth.json
33+
echo '${{ secrets.PRIVATE_KEY }}' >> private.key
3834
39-
- name: build
40-
run: |
41-
npm run ts:build
35+
- name: install dependencies
36+
run: |
37+
npm install
4238
43-
- name: run mocha tests
44-
env:
45-
MDSP_PASSKEY: ${{ secrets.MDSP_PASSKEY }}
46-
run: |
47-
npm run test-jenkins
39+
- name: build
40+
run: |
41+
npm run ts:build
4842
49-
- name: Test Report
50-
uses: dorny/test-reporter@v1
51-
if: success() || failure()
52-
with:
53-
name: Test Results
54-
path: report.xml
55-
reporter: jest-junit
43+
- name: run mocha tests
44+
env:
45+
MDSP_PASSKEY: ${{ secrets.MDSP_PASSKEY }}
46+
run: |
47+
npm run test-jenkins
5648
57-
- name: run command line tests
58-
env:
59-
MDSP_PASSKEY: ${{ secrets.MDSP_PASSKEY }}
60-
run: |
61-
dirname=`date +%s`
62-
mkdir $dirname
63-
cd $dirname
64-
ls ..
65-
mc='node ../src/cli/mc'
66-
set -e
67-
$mc create-agent --config agent.unittest.json
68-
$mc onboard --config agent.unittest.json
69-
$mc atk --config agent.unittest.json
70-
$mc configure-agent --config agent.unittest.json --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
71-
$mc configure-agent --config agent.unittest.json --mode test
72-
filename=`date +%s`
73-
cp agent.unittest.json $filename
74-
$mc upload-file --config agent.unittest.json --file $filename
75-
$mc upload-file --file $filename --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
76-
$mc create-event --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
77-
$mc register-diagnostic --config agent.unittest.json
78-
$mc configure-agent --config agent.unittest.json --mode test
79-
$mc get-diagnostic --config agent.unittest.json
80-
$mc unregister-diagnostic --config agent.unittest.json
81-
$mc offboard-agent --config agent.unittest.json
82-
$mc delete-asset --assetid `node -pe 'JSON.parse(process.argv[1]).content.clientId' "$(cat agent.unittest.json)"`
83-
$mc list-assets
84-
$mc list-files --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
85-
$mc starter-ts
86-
$mc starter-js
87-
$mc download-file --file $filename --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
88-
$mc delete-file --file $filename --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
89-
$mc iam --mode list --group
90-
$mc assets --includeshared
91-
$mc asset-types --includeshared
92-
$mc aspects --includeshared
93-
$mc event-types --includeshared
94-
$mc jobs
95-
$mc schedules
96-
$mc data-exchange
97-
$mc mobile-apps
98-
$mc tenant
99-
$mc subtenants
100-
$mc models
101-
cd ..
102-
rm -rf $dirname
49+
- name: Test Report
50+
uses: dorny/test-reporter@v1
51+
if: success() || failure()
52+
with:
53+
name: Test Results
54+
path: report.xml
55+
reporter: jest-junit
10356

104-
- name: license check
105-
run: |
106-
npm run license > license-checker.txt
107-
npm run license:summary >> license-checker.txt
57+
- name: run command line tests
58+
env:
59+
MDSP_PASSKEY: ${{ secrets.MDSP_PASSKEY }}
60+
run: |
61+
dirname=`date +%s`
62+
mkdir $dirname
63+
cd $dirname
64+
ls ..
65+
mc='node ../src/cli/mc'
66+
set -e
67+
$mc create-agent --config agent.unittest.json
68+
$mc onboard --config agent.unittest.json
69+
$mc atk --config agent.unittest.json
70+
$mc configure-agent --config agent.unittest.json --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
71+
$mc configure-agent --config agent.unittest.json --mode test
72+
filename=`date +%s`
73+
cp agent.unittest.json $filename
74+
$mc upload-file --config agent.unittest.json --file $filename
75+
$mc upload-file --file $filename --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
76+
$mc create-event --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
77+
$mc register-diagnostic --config agent.unittest.json
78+
$mc configure-agent --config agent.unittest.json --mode test
79+
$mc get-diagnostic --config agent.unittest.json
80+
$mc unregister-diagnostic --config agent.unittest.json
81+
$mc offboard-agent --config agent.unittest.json
82+
$mc delete-asset --assetid `node -pe 'JSON.parse(process.argv[1]).content.clientId' "$(cat agent.unittest.json)"`
83+
$mc list-assets
84+
$mc list-files --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
85+
$mc starter-ts
86+
$mc starter-js
87+
$mc download-file --file $filename --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
88+
$mc delete-file --file $filename --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
89+
$mc iam --mode list --group
90+
$mc assets --includeshared
91+
$mc asset-types --includeshared
92+
$mc aspects --includeshared
93+
$mc event-types --includeshared
94+
$mc jobs
95+
$mc schedules
96+
$mc data-exchange
97+
$mc mobile-apps
98+
$mc tenant
99+
$mc subtenants
100+
cd ..
101+
rm -rf $dirname
108102
109-
- name: package
110-
run: |
111-
rm -rf dist/
112-
npm pack
103+
- name: license check
104+
run: |
105+
npm run license > license-checker.txt
106+
npm run license:summary >> license-checker.txt
113107
114-
- name: Upload a Build Artifact
115-
uses: actions/[email protected]
116-
with:
117-
path: |
118-
*.tgz
119-
license-checker.txt
108+
- name: package
109+
run: |
110+
rm -rf dist/
111+
npm pack
112+
113+
- name: Upload a Build Artifact
114+
uses: actions/[email protected]
115+
with:
116+
path: |
117+
*.tgz
118+
license-checker.txt

CHANGELOG.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 3.23.0 - Jet Black Vienna - December 2023
4+
5+
- Moved links from opensource.mindsphere.io to [Siemens Xcelerator Developer Portal](https://developer.siemens.com)
6+
- Renamed MindSphere to Insights Hub
7+
- Bumped most dependencies
8+
- Happy Holidays!
9+
10+
311
## 3.22.0 - Tuscan Sun Vienna - November 2022
412

513
- CLI: `mdsp visual-flow-creator` - command
@@ -24,7 +32,7 @@
2432

2533
## 3.19.0 - (Dove Vienna) - April 2022
2634

27-
- CLI: new `mdsp markdown-help` command to generate markdown help available at [opensource.mindsphere.io](https://opensource.mindsphere.io/docs/mindconnect-nodejs/cli/index.html#tab1anchor2)
35+
- CLI: new `mdsp markdown-help` command to generate markdown help available at [developer.siemens.com](https://developer.siemens.com/industrial-iot-open-source/mindconnect-nodejs/cli/index.html#tab1anchor2)
2836
- SDK: Data Lake - added support for mindsphere data upload in CN1 (on alibaba cloud) [[#316](https://github.com/mindsphere/mindconnect-nodejs/issues/316)]
2937
- Bumped most depedencies
3038

CONTRIBUTING.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Please follow the typescript code style which is established in tslint.json. (Wo
4040

4141
## Setting up the local development environment
4242

43-
You will need a MindSphere Account to setup the development environment.
43+
You will need a Insights Hub Account to setup the development environment.
4444
If you don't have an account yet, you can [register here for a free account](https://siemens.mindsphere.io/en/start). (that is free as in a beer :)
4545

4646
### Executing unit tests
@@ -65,7 +65,7 @@ mc service-credentials
6565

6666
Here is a step by step description how to set up the app or service credentials:
6767

68-
[Setting up the MindSphere CLI](https://opensource.mindsphere.io/docs/mindconnect-nodejs/cli/setting-up-the-cli.html)
68+
[Setting up the Insights Hub CLI](https://developer.siemens.com/industrial-iot-open-source/mindconnect-nodejs/cli/setting-up-the-cli.html)
6969

7070
After that you have to configure the MDSP_PASSKEY variable in your environment:
7171

@@ -96,7 +96,7 @@ After setting up the CLI, you will need a 3072 bit certificate. (make sure that
9696
npm run createkey
9797
```
9898

99-
You are now all set and should be able to run the unit tests locally. Please note that not all tests will run on your machine if you have a start-for-free account due to MindSphere restrictions. There is a special set of unit tests which you can call with `npm run s4f` if you want to
99+
You are now all set and should be able to run the unit tests locally. Please note that not all tests will run on your machine if you have a start-for-free account due to Insights Hub restrictions. There is a special set of unit tests which you can call with `npm run s4f` if you want to
100100
sanity-check the library before creating a pull request.
101101

102102
```bash
@@ -218,7 +218,7 @@ Prints out a license summary for the whole dependency tree.
218218

219219
Creates the binary files with the CLI for Windows, Linux and MacOS.
220220

221-
## Contributing to MindSphere TypeScript SDK
221+
## Contributing to Insights Hub TypeScript SDK
222222

223223
If you want to contribute with a new Client Implementation to typescript SDK here are some guidelines
224224

0 commit comments

Comments
 (0)