Skip to content

Commit

Permalink
chore: 3.23.0 - Jet Black Vienna - December 2023 (#353)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
sn0wcat authored Dec 28, 2023
1 parent 9b96a0c commit 81e53b3
Show file tree
Hide file tree
Showing 46 changed files with 4,335 additions and 3,848 deletions.
203 changes: 101 additions & 102 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,118 +2,117 @@

name: Build

on:
push:
pull_request:
schedule:
- cron: '0 13 * * *'
on:
push:
pull_request:
schedule:
- cron: "0 13 * * *"

jobs:
build:
environment: CI
runs-on: ubuntu-latest
build:
environment: CI
runs-on: ubuntu-latest

steps:
- name: Setup Node.js environment
uses: actions/[email protected]
steps:
- name: Setup Node.js environment
uses: actions/[email protected]

- name: Checkout Branch
uses: actions/checkout@v2
- name: Checkout Branch
uses: actions/checkout@v2

- uses: toko-bifrost/ms-teams-deploy-card@master
if: always()
with:
github-token: ${{ github.token }}
webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}
- uses: toko-bifrost/ms-teams-deploy-card@master
if: always()
with:
github-token: ${{ github.token }}
webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}

- name: setup the mindsphere authentication
run: |
mkdir ~/.mc
echo '${{ secrets.AUTH_JSON }}' >> ~/.mc/auth.json
echo '${{ secrets.PRIVATE_KEY }}' >> private.key
- name: install dependencies
run: |
npm install
- name: setup the mindsphere authentication
run: |
mkdir ~/.mc
echo '${{ secrets.AUTH_JSON }}' >> ~/.mc/auth.json
echo '${{ secrets.PRIVATE_KEY }}' >> private.key
- name: build
run: |
npm run ts:build
- name: install dependencies
run: |
npm install
- name: run mocha tests
env:
MDSP_PASSKEY: ${{ secrets.MDSP_PASSKEY }}
run: |
npm run test-jenkins
- name: build
run: |
npm run ts:build
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Test Results
path: report.xml
reporter: jest-junit
- name: run mocha tests
env:
MDSP_PASSKEY: ${{ secrets.MDSP_PASSKEY }}
run: |
npm run test-jenkins
- name: run command line tests
env:
MDSP_PASSKEY: ${{ secrets.MDSP_PASSKEY }}
run: |
dirname=`date +%s`
mkdir $dirname
cd $dirname
ls ..
mc='node ../src/cli/mc'
set -e
$mc create-agent --config agent.unittest.json
$mc onboard --config agent.unittest.json
$mc atk --config agent.unittest.json
$mc configure-agent --config agent.unittest.json --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
$mc configure-agent --config agent.unittest.json --mode test
filename=`date +%s`
cp agent.unittest.json $filename
$mc upload-file --config agent.unittest.json --file $filename
$mc upload-file --file $filename --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
$mc create-event --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
$mc register-diagnostic --config agent.unittest.json
$mc configure-agent --config agent.unittest.json --mode test
$mc get-diagnostic --config agent.unittest.json
$mc unregister-diagnostic --config agent.unittest.json
$mc offboard-agent --config agent.unittest.json
$mc delete-asset --assetid `node -pe 'JSON.parse(process.argv[1]).content.clientId' "$(cat agent.unittest.json)"`
$mc list-assets
$mc list-files --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
$mc starter-ts
$mc starter-js
$mc download-file --file $filename --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
$mc delete-file --file $filename --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
$mc iam --mode list --group
$mc assets --includeshared
$mc asset-types --includeshared
$mc aspects --includeshared
$mc event-types --includeshared
$mc jobs
$mc schedules
$mc data-exchange
$mc mobile-apps
$mc tenant
$mc subtenants
$mc models
cd ..
rm -rf $dirname
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Test Results
path: report.xml
reporter: jest-junit

- name: license check
run: |
npm run license > license-checker.txt
npm run license:summary >> license-checker.txt
- name: run command line tests
env:
MDSP_PASSKEY: ${{ secrets.MDSP_PASSKEY }}
run: |
dirname=`date +%s`
mkdir $dirname
cd $dirname
ls ..
mc='node ../src/cli/mc'
set -e
$mc create-agent --config agent.unittest.json
$mc onboard --config agent.unittest.json
$mc atk --config agent.unittest.json
$mc configure-agent --config agent.unittest.json --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
$mc configure-agent --config agent.unittest.json --mode test
filename=`date +%s`
cp agent.unittest.json $filename
$mc upload-file --config agent.unittest.json --file $filename
$mc upload-file --file $filename --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
$mc create-event --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
$mc register-diagnostic --config agent.unittest.json
$mc configure-agent --config agent.unittest.json --mode test
$mc get-diagnostic --config agent.unittest.json
$mc unregister-diagnostic --config agent.unittest.json
$mc offboard-agent --config agent.unittest.json
$mc delete-asset --assetid `node -pe 'JSON.parse(process.argv[1]).content.clientId' "$(cat agent.unittest.json)"`
$mc list-assets
$mc list-files --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
$mc starter-ts
$mc starter-js
$mc download-file --file $filename --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
$mc delete-file --file $filename --assetid 6177d9e13a4c4ab0a3b2d647ba3ba2a7
$mc iam --mode list --group
$mc assets --includeshared
$mc asset-types --includeshared
$mc aspects --includeshared
$mc event-types --includeshared
$mc jobs
$mc schedules
$mc data-exchange
$mc mobile-apps
$mc tenant
$mc subtenants
cd ..
rm -rf $dirname
- name: package
run: |
rm -rf dist/
npm pack
- name: license check
run: |
npm run license > license-checker.txt
npm run license:summary >> license-checker.txt
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
path: |
*.tgz
license-checker.txt
- name: package
run: |
rm -rf dist/
npm pack
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
path: |
*.tgz
license-checker.txt
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 3.23.0 - Jet Black Vienna - December 2023

- Moved links from opensource.mindsphere.io to [Siemens Xcelerator Developer Portal](https://developer.siemens.com)
- Renamed MindSphere to Insights Hub
- Bumped most dependencies
- Happy Holidays!


## 3.22.0 - Tuscan Sun Vienna - November 2022

- CLI: `mdsp visual-flow-creator` - command
Expand All @@ -24,7 +32,7 @@

## 3.19.0 - (Dove Vienna) - April 2022

- 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)
- 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)
- SDK: Data Lake - added support for mindsphere data upload in CN1 (on alibaba cloud) [[#316](https://github.com/mindsphere/mindconnect-nodejs/issues/316)]
- Bumped most depedencies

Expand Down
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Please follow the typescript code style which is established in tslint.json. (Wo

## Setting up the local development environment

You will need a MindSphere Account to setup the development environment.
You will need a Insights Hub Account to setup the development environment.
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 :)

### Executing unit tests
Expand All @@ -65,7 +65,7 @@ mc service-credentials

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

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

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

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

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
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
sanity-check the library before creating a pull request.

```bash
Expand Down Expand Up @@ -218,7 +218,7 @@ Prints out a license summary for the whole dependency tree.

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

## Contributing to MindSphere TypeScript SDK
## Contributing to Insights Hub TypeScript SDK

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

Expand Down
Loading

0 comments on commit 81e53b3

Please sign in to comment.