Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge upstream #378

Merged
merged 221 commits into from
Jun 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
221 commits
Select commit Hold shift + click to select a range
eccd054
[autoscaler] add custom metric support
zyjiaobj Dec 19, 2019
24ec1c6
[autoscaler] fix credential edit pager test error
zyjiaobj Dec 19, 2019
80f5de1
Remove @nrwl
nwmac Apr 1, 2020
02f0e1d
Update dependencies
nwmac Apr 1, 2020
64ea234
Update lock file
nwmac Apr 1, 2020
875c9c9
Package update
nwmac Apr 5, 2020
bae8e49
Package update
nwmac Apr 5, 2020
c262649
Angular 9 migration
nwmac Apr 6, 2020
adc0804
Fixes for angular 9 issues observed
nwmac Apr 7, 2020
ee819b7
Rebase
nwmac Apr 7, 2020
7486a8c
Use npm registry
nwmac Apr 7, 2020
574a7de
Fix package lock
nwmac Apr 7, 2020
0c1b43a
Fix front-end unit test
nwmac Apr 7, 2020
8051743
Add initial UI for backup/restore
richard-cox Apr 6, 2020
354aa08
E2E test fix
nwmac Apr 9, 2020
77628e8
Fix mat-select option selection for e2e tests
nwmac Apr 10, 2020
0efa6dc
Fix git ignore with secrets.yaml
nwmac Apr 10, 2020
da8a57d
Update angular to fix prod build issue
nwmac Apr 10, 2020
2a8457a
Fix routing event change
nwmac Apr 12, 2020
3a6547c
Merge remote-tracking branch 'origin/master' into backup-endpoints
richard-cox Apr 14, 2020
c218907
Convert connection details checkbox to drop down
richard-cox Apr 14, 2020
4f3c6b4
Add docs for max list feature
richard-cox Apr 15, 2020
ca7929b
Add db version check
richard-cox Apr 14, 2020
a5cfd7a
Fix autoscaler issue with the mat-select fill
nwmac Apr 16, 2020
f4f7ee7
Merge remote-tracking branch 'origin/master' into angular9
nwmac Apr 16, 2020
6b9e79a
Tidy up #1
richard-cox Apr 16, 2020
0821dac
Bump rxjs-tslint
nwmac Apr 16, 2020
d78b23c
Tidying & bug fixes. Handle client_secret
richard-cox Apr 16, 2020
7d62b61
Update to 9.1.2
nwmac Apr 17, 2020
2191b38
Add minimum password length
richard-cox Apr 17, 2020
19fd37a
First pass encrypt/decrypt
richard-cox Apr 17, 2020
5de414d
Tidy up
richard-cox Apr 17, 2020
68ef3c3
Fix unit tests
richard-cox Apr 20, 2020
5736f84
Re-add tests that now work
richard-cox Apr 20, 2020
de03a01
Changes following review
richard-cox Apr 20, 2020
efeca9f
Move backup into it's own module
richard-cox Apr 20, 2020
af4dd5c
Merge pull request #4229 from cloudfoundry/backup-endpoints
richard-cox Apr 21, 2020
4124510
Fix table passing issue
nwmac Apr 24, 2020
d269055
Fix typo in comment
nwmac Apr 24, 2020
403e9e0
Ensure we filter out maxed results for local lists
richard-cox Apr 28, 2020
7a82ca7
Provide typed way to access actions (and dispatch them), entity monit…
richard-cox Apr 30, 2020
cf9e658
Fix disabling of polling
richard-cox Apr 30, 2020
f3be1a4
Rename GetEntityCatalogEntityHelper
richard-cox Apr 30, 2020
2ffd434
Setup EntityCatalogHelper in tests
richard-cox Apr 30, 2020
0d64630
Fix frontend unit tests
nwmac May 1, 2020
367490b
Merge remote-tracking branch 'origin/master' into angular9
nwmac May 1, 2020
c92dcac
Fix angular 9 issue
nwmac May 1, 2020
a4ad722
Add deep link warnings on ajsf
nwmac May 1, 2020
2401f9e
Fix tests, ApplicationData type, EntityMonitorFactory & PaginationMon…
richard-cox May 1, 2020
e49e1f9
Fix other tests
richard-cox May 1, 2020
24b3866
Fix app wall
richard-cox May 1, 2020
7f76cf8
Fix configure invite user
richard-cox May 1, 2020
abfcef0
Address some todos
richard-cox May 1, 2020
5a13e8f
e2e fixes
richard-cox May 4, 2020
6cba47d
Fix another junky guid (endpoint service in org service in space serv…
richard-cox May 4, 2020
f9c56b2
CF Push: Ensure we refresh token
nwmac May 4, 2020
2212330
More e2e fixes
richard-cox May 4, 2020
85b3a4d
Merge remote-tracking branch 'origin/master' into dev_custom2
richard-cox May 4, 2020
1404c57
Fixes following merge
richard-cox May 4, 2020
bc6b421
Fix uaa docs. Make UAA endpoint config simpler
nwmac May 4, 2020
be15c43
Fix compile issues
nwmac May 4, 2020
fc89d94
Minor tweaks to create/delete credentials
richard-cox May 4, 2020
ff5e2e8
Finish some todos
richard-cox May 4, 2020
9c4146d
Uncomment & fix dispatcher unit test
richard-cox May 4, 2020
c36ba67
Move Cloud Foundry code into the correct package
nwmac May 5, 2020
b5da7f4
More moves
nwmac May 5, 2020
b4c8715
UX changes following mini-review
richard-cox May 5, 2020
0db932a
Hide manage credentials button for pre 3.0.0 autoscalers
richard-cox May 5, 2020
879be99
Merge remote-tracking branch 'origin/dev_custom2_rc' into dev_custom2
richard-cox May 5, 2020
1770174
More moves
nwmac May 5, 2020
d3d0d25
Fix references to CFAppState
nwmac May 5, 2020
e60b0e5
Fix issue with unit tests
nwmac May 5, 2020
4beec6a
Fix unit test * scss linting
richard-cox May 6, 2020
8bd2110
Merge pull request #4254 from cloudfoundry/push-token-expiry
richard-cox May 6, 2020
f553668
Merge pull request #4255 from cloudfoundry/helm-chart-uaa
richard-cox May 6, 2020
1146936
Merge pull request #4226 from cloudfoundry/max-list-docs
richard-cox May 6, 2020
c90b07e
Merge pull request #4241 from cloudfoundry/fix-space-app-stats
richard-cox May 6, 2020
7689ed9
Helm Chart: Fix Helm 3 compatibility with Release.Time
nwmac May 6, 2020
577bc5e
Add nodeSelector implementation and tests to kubernetes helm deployme…
macevil May 6, 2020
0953ead
Merge pull request #4262 from cloudfoundry/helm3-fix
richard-cox May 6, 2020
fc1c90b
Autoscaler improvements
richard-cox May 6, 2020
5c3aaa1
Fix unit tests
nwmac May 6, 2020
8fac8f0
More moves
nwmac May 6, 2020
17780e1
Move serice instance last op
nwmac May 6, 2020
3daf8ab
Fix disabling of polling (#4260)
richard-cox May 7, 2020
535a040
Add Helm 3 lint check to the Travis Helm Chart job (#4263)
nwmac May 7, 2020
178a424
Increase users table page size before searching for `e2e` user
richard-cox May 7, 2020
eb71605
Helm node selector docs and values (#4264)
nwmac May 7, 2020
cbc20cc
Fix favourites helper
nwmac May 7, 2020
a8b6ac0
Disable random route override setting when deploying apps in e2e tests
richard-cox May 7, 2020
99debc0
Override name but do not set a random route
nwmac May 7, 2020
40a9f2e
Fix unit tests
nwmac May 7, 2020
7a73c27
Merge pull request #4268 from cloudfoundry/e2e-improvements
richard-cox May 7, 2020
5edc001
EE Test improvements (#4274)
nwmac May 8, 2020
91861f2
Fix row highligh & Improve metrics summary view (#4270)
richard-cox May 8, 2020
d5e4a98
Improve view that shows details for a metrics endpoint (#4258)
nwmac May 9, 2020
0da07e8
Fix row highlight (see app github tab commit table) (#4257)
richard-cox May 9, 2020
ee05bb7
E2E Cleanup script: clean other users (#4269)
nwmac May 10, 2020
85d07ab
Tidy up
nwmac May 10, 2020
e19bedd
Version bump and change log for 3.2.0
nwmac May 10, 2020
15de036
E2E Test improvements (#4275)
nwmac May 11, 2020
3302f87
Update to Angular 9.1.6
nwmac May 11, 2020
5ffa624
Add ability to provided a wildcard in path when matching urls (#4277)
richard-cox May 11, 2020
e31fb9e
Update releas notes
nwmac May 11, 2020
09a4458
Merge pull request #4276 from cloudfoundry/320-release-notes
richard-cox May 11, 2020
ea6b0cd
Only show metrics details on endpoint card/list when connected
nwmac May 12, 2020
f9d675d
Fix icon alignment on service marketplace view
nwmac May 12, 2020
7354a8f
Fix issue where user profile was fetched repeatidly (#4285)
richard-cox May 13, 2020
d637c3f
Merge pull request #4283 from cloudfoundry/fix-icon-alignment
richard-cox May 13, 2020
e31bcb6
CF Push: A better fix for the token expiry issue
nwmac May 13, 2020
2be2a2a
Merge pull request #4282 from cloudfoundry/metrics-details-fix
richard-cox May 13, 2020
57be9d5
Update changelog for 3.2.0 (#4291)
nwmac May 13, 2020
cdf0f53
Merge pull request #4289 from cloudfoundry/cf-push-token-expiry
richard-cox May 13, 2020
4ba2edc
Merge remote-tracking branch 'origin/master' into improve-entity-acce…
richard-cox May 14, 2020
c84ef63
Changes following review
richard-cox May 14, 2020
e0fc06c
Don't fetch all domains when creating cf endpoint service
richard-cox May 14, 2020
b556db3
Fix tests
richard-cox May 15, 2020
718ec2c
Fix e2e tests
richard-cox May 15, 2020
6e38c4a
Changes following review
richard-cox May 15, 2020
4d22033
Merge remote-tracking branch 'origin/master' into angular9
nwmac May 15, 2020
0f3d975
Fix create service instance
richard-cox May 15, 2020
e87be6f
Update to latest Stratos icon font
nwmac May 15, 2020
b85c6d0
Merge pull request #4247 from cloudfoundry/improve-entity-access-clean
richard-cox May 15, 2020
8ba7e3a
Merge remote-tracking branch 'origin/master' into dev_custom2
richard-cox May 15, 2020
9681b22
Merge remote-tracking branch 'origin/master' into dev_custom2
richard-cox May 15, 2020
17296d4
Fixes following merge
richard-cox May 15, 2020
810de5e
More space between create/delete and icon in manage credentials
richard-cox May 15, 2020
a122ef9
Use autocomplete for custom metric type input field
richard-cox May 15, 2020
0a892c0
Merge remote-tracking branch 'origin/master' into filemoves
richard-cox May 15, 2020
9b7bd93
Fixes following merge
richard-cox May 15, 2020
6e9e2d7
Merge remote-tracking branch 'upstream/master' into merge-upstream
richard-cox May 15, 2020
76c961c
Fixes following merge
richard-cox May 18, 2020
83c114a
Fix autocomplete, improve e2e tests
richard-cox May 18, 2020
f7a21ba
Merge pull request #4068 from cloudfoundry/dev_custom2
richard-cox May 18, 2020
63aa409
Fix alignment of table headers
richard-cox May 18, 2020
34df5c3
Fix manage users header/row cells given checkbox hover/focus graphic
richard-cox May 18, 2020
ee3b841
Fix list header left padding (aligns with cell padding)
richard-cox May 18, 2020
d66b6c4
Fix event table given no left padding
richard-cox May 18, 2020
d5a249a
Fix Manage Users Stepper timeout
richard-cox May 18, 2020
447ef24
Fix unit tests
richard-cox May 18, 2020
d2518e8
Move cf-entity-relations.getters to entity-relations folder
richard-cox May 18, 2020
7e2a4bb
Merge remote-tracking branch 'origin/master' into angular9
nwmac May 18, 2020
95069b9
Review fixes
nwmac May 18, 2020
d1e8abd
Increase node max old space size
nwmac May 18, 2020
8078842
Fix Autoscaler material imports for Angular 9
nwmac May 18, 2020
998061c
Merge pull request #4235 from cloudfoundry/fix-table-padding
richard-cox May 18, 2020
8260353
Multiple Changes
richard-cox May 18, 2020
476d46b
Remove checked on radio buttons as well as value
nwmac May 18, 2020
4f9670e
Merge remote-tracking branch 'origin/master' into angular9
nwmac May 18, 2020
c6818b5
Move CfValidateEffects to cf, added some todos
richard-cox May 19, 2020
29cc80e
Autoscaler E2E Test debugging
nwmac May 19, 2020
d0f4ac4
Autoscaler E2E Test debugging
nwmac May 19, 2020
49ab381
Just run autoscaler tests
nwmac May 19, 2020
ff25955
Fix autoscaler events page
richard-cox May 19, 2020
c665f4a
Remove debugging
nwmac May 19, 2020
8d4e4a0
Fix typing
richard-cox May 19, 2020
f3324a6
Move entity relation stuff out of store pagination observables
richard-cox May 19, 2020
0edc4f8
Merge remote-tracking branch 'origin/fix-autoscaler-events' into angu…
nwmac May 19, 2020
437ba8a
Move endpointDisconnectRemoveEntitiesReducer
richard-cox May 19, 2020
e4c5ef1
Move relation actions and EnvVarViewComponent into cf module
richard-cox May 19, 2020
a8f6035
Move update effect, convert appStatsReducer to effect (WIP)
richard-cox May 19, 2020
303a11c
Fix autoscaler events page (#4304)
richard-cox May 20, 2020
8f1a701
Merge remote-tracking branch 'origin/master' into angular9
nwmac May 20, 2020
0a0cc0b
Merge remote-tracking branch 'origin/master' into filemoves
richard-cox May 20, 2020
440d6b3
Merge remote-tracking branch 'origin/autoscaler-e2e' into angular9
nwmac May 20, 2020
f804edf
Remove cf-auth, this was never used
richard-cox May 20, 2020
d3b7895
Remove appStatsReducer, this was duplication of UpdateAppEffects
richard-cox May 20, 2020
26964ac
Fix CFFeatureFlagTypes
richard-cox May 20, 2020
1f8c2e9
Retry
nwmac May 20, 2020
9a82fb7
Just run autoscaler tests
nwmac May 20, 2020
dda3e9d
Merge pull request #4256 from cloudfoundry/filemoves
richard-cox May 20, 2020
c3a0bf3
Travis file update
nwmac May 20, 2020
de64488
Merge remote-tracking branch 'origin/master' into angular9
nwmac May 20, 2020
066c670
Fix merge issues with cf code re-ogr
nwmac May 20, 2020
eca84ec
More tidies...
richard-cox May 20, 2020
7082907
Fix retry for create session
nwmac May 20, 2020
4db6056
Remove cf q param handling from remove params reducer
richard-cox May 20, 2020
2c798db
Tidy up debugging
nwmac May 20, 2020
4bf6bfc
Merge pull request #4297 from cloudfoundry/update-icon-font
richard-cox May 20, 2020
6f24ae4
Fix some unit tests
richard-cox May 20, 2020
d96644f
Merge remote-tracking branch 'origin/master' into filemoves-rc
richard-cox May 20, 2020
8ea28c8
Fix other unit tests
richard-cox May 20, 2020
e02b8fc
Fix retry message
nwmac May 20, 2020
55cd589
Docker image tweak
nwmac May 20, 2020
5859848
Fix retry mechanism
nwmac May 20, 2020
400e05f
Implement retry on all api calls
nwmac May 20, 2020
5f4caa7
Fix retry mechanism
nwmac May 20, 2020
4b4db2a
Fix ertry when 401
nwmac May 20, 2020
7cea7c0
Update .travis.yml
nwmac May 20, 2020
5992893
Tweak logging
nwmac May 21, 2020
7f40aba
Add console logging during e2e tests
nwmac May 21, 2020
86b8dd8
Extend setup timeout
nwmac May 21, 2020
04ac0b9
Bump timeout, run UAA ealier
nwmac May 21, 2020
1b4df49
Enable e2e logging to be toggled by a label
nwmac May 21, 2020
0a2b4d1
Ensure we don't log passwords in e2e logs
nwmac May 21, 2020
566418e
Give more time for the tab to appear
nwmac May 21, 2020
7f0af9c
Merge remote-tracking branch 'origin/e2e-logging-label' into angular9
nwmac May 21, 2020
bc92bae
Merge pull request #4306 from cloudfoundry/e2e-logging-label
richard-cox May 21, 2020
6b738e7
update kubernetes deploy doc to reference uaa.endpoint
aegershman May 21, 2020
6d22276
k8s console deploy doc reference chart 3.2.0, fixup helm repo search …
aegershman May 21, 2020
5dd26c9
FIx issue with Angular build optimizer
nwmac May 21, 2020
d9fb11f
Fixes related to using browser back to starting point (#4288)
richard-cox May 22, 2020
ee99293
Fix for autoscaler tab not appearing
nwmac May 22, 2020
486d232
Changes following review
richard-cox May 22, 2020
73c60c3
Update extensions docs
nwmac May 22, 2020
8cd73fd
Fix examples to ensure extensions are declared
nwmac May 22, 2020
fbc7ab0
Wrap check for missing env var in forked CI
richard-cox May 26, 2020
3be83a6
Fix load of boolean indicator result when type has not yet been set
richard-cox May 26, 2020
f815d79
Remove uneeded imports
richard-cox May 26, 2020
5ef1e28
Merge pull request #4213 from cloudfoundry/angular9
richard-cox May 27, 2020
a866b7a
Merge pull request #4299 from cloudfoundry/filemoves-rc
richard-cox May 27, 2020
6152be5
Merge pull request #4311 from cloudfoundry/fix-fork-e2e
richard-cox May 28, 2020
5a6fa07
Merge pull request #4307 from aegershman/patch-1
richard-cox May 28, 2020
fc97161
Fix misaligned user button
richard-cox May 28, 2020
7ff1301
Merge pull request #4317 from cloudfoundry/fix-user-button
richard-cox May 28, 2020
56bf125
Merge remote-tracking branch 'upstream/master' into merge-upstream
richard-cox May 29, 2020
deaca46
Fixes following merge
richard-cox May 29, 2020
23d690a
More fixes
richard-cox May 29, 2020
968d497
Fix unit tests
richard-cox Jun 1, 2020
20582d5
Merge remote-tracking branch 'origin/master' into merge-upstream
richard-cox Jun 9, 2020
1cacb5a
Fix istanbul cli error (replace with nyc)
richard-cox Jun 11, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ src/backend/*/vendor/
.v8flags*

*.bak
./secrets.yaml
/secrets.yaml
build/dev_config.json
e2e-reports/
.stratos-git-metadata.json
Expand Down
51 changes: 36 additions & 15 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"preserveSymlinks": true,
"outputPath": "dist",
"index": "src/frontend/packages/core/src/index.html",
Expand All @@ -35,6 +36,10 @@
},
"configurations": {
"production": {
"budgets": [{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
Expand All @@ -44,12 +49,10 @@
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"fileReplacements": [
{
"replace": "src/frontend/packages/core/src/environments/environment.ts",
"with": "src/frontend/packages/core/src/environments/environment.prod.ts"
}
]
"fileReplacements": [{
"replace": "src/frontend/packages/core/src/environments/environment.ts",
"with": "src/frontend/packages/core/src/environments/environment.prod.ts"
}]
}
}
},
Expand Down Expand Up @@ -101,6 +104,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"preserveSymlinks": true,
"outputPath": "dist/core",
"index": "src/frontend/packages/core/src/index.html",
Expand All @@ -124,12 +128,14 @@
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/frontend/packages/core/src/environments/environment.ts",
"with": "src/frontend/packages/core/src/environments/environment.prod.ts"
}
],
"budgets": [{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}],
"fileReplacements": [{
"replace": "src/frontend/packages/core/src/environments/environment.ts",
"with": "src/frontend/packages/core/src/environments/environment.prod.ts"
}],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
Expand Down Expand Up @@ -215,6 +221,11 @@
"options": {
"tsConfig": "src/frontend/packages/store/tsconfig.lib.json",
"project": "src/frontend/packages/store/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "src/frontend/packages/store/tsconfig.lib.prod.json"
}
}
},
"test": {
Expand Down Expand Up @@ -253,6 +264,11 @@
"options": {
"tsConfig": "src/frontend/packages/cloud-foundry/tsconfig.lib.json",
"project": "src/frontend/packages/cloud-foundry/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "src/frontend/packages/cloud-foundry/tsconfig.lib.prod.json"
}
}
},
"test": {
Expand Down Expand Up @@ -291,6 +307,11 @@
"options": {
"tsConfig": "src/frontend/packages/cf-autoscaler/tsconfig.lib.json",
"project": "src/frontend/packages/cf-autoscaler/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "src/frontend/packages/cf-autoscaler/tsconfig.lib.prod.json"
}
}
},
"test": {
Expand Down Expand Up @@ -323,13 +344,13 @@
"schematics": {
"@schematics/angular:component": {
"prefix": "app",
"styleext": "scss"
"style": "scss"
},
"@schematics/angular:directive": {
"prefix": "app"
}
},
"cli": {
"defaultCollection": "@nrwl/angular"
"_defaultCollection": "@nrwl/angular"
}
}
}
10 changes: 0 additions & 10 deletions build/combine-coverage.js

This file was deleted.

8 changes: 7 additions & 1 deletion build/karma.conf.creator.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ module.exports = function (project) {
coverageIstanbulReporter: {
dir: path.join(repoRoot, 'coverage', project),
reports: ['html', 'lcovonly', 'json'],
fixWebpackSourcePaths: true
fixWebpackSourcePaths: true,
'report-config': {
json: {
// Collate all coverage-final files into a single dir for nyc to combine (it can't pick them out from `coverage`)
file: path.join('..', 'nyc', project + '-coverage-final.json')
}
},
},
reporters: ['spec', 'kjhtml', 'stratos'],
specReporter: {
Expand Down
85 changes: 42 additions & 43 deletions build/karma.test.reporter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

(function () {
'use strict';

Expand Down Expand Up @@ -75,7 +74,7 @@
fs.unlinkSync(this.summaryFile);
}

const all = this.runningTotals;
const all = this.runningTotals;

this.writeSummaryFile(`${this.bold}${this.cyan}================================================================================${this.reset}`);
this.writeSummaryFile(`${this.bold}${this.cyan}Test Summary${this.reset}`);
Expand Down Expand Up @@ -106,47 +105,47 @@

try {

this.writeFile(`${this.bold}${this.cyan}Test results for package ${this.bluebg} ${process.env.NG_TEST_SUITE} ${this.reset}`);
this.writeFile(`Total : ${this.bold}${this.cyan}${this.total}${this.reset}`)
this.writeFile(`Passed : ${this.bold}${this.cyan}${passed}${this.reset}`)
this.writeFile(`Failed : ${this.bold}${this.red}${this.failed.length}${this.reset}`)
this.writeFile(`Skipped : ${this.bold}${this.yellow}${this.skipped}${this.reset}`)

if (this.failed.length === 0) {
fs.appendFileSync(this.file, 'All tests passed\n')
} else {
this.writeFile('Test failures:');
this.failed.forEach(f => {
this.writeFile(`${this.red}${this.bold} - ${f.fullName}${this.reset}`);
const logs = f.log || [];
logs.forEach(l => fs.appendFileSync(this.file, `${this.grey} ${l}${this.reset}`));
// Add empty line
this.writeFile('');
});
}

// Update running totals JSON
this.runningTotals.total += this.total;
this.runningTotals.passed += passed;
this.runningTotals.failed += this.failed.length;
this.runningTotals.skipped += this.skipped;
fs.writeFileSync(this.jsonFile, JSON.stringify(this.runningTotals));

this.generateSummary();

// Write exit code
let newExitCode = this.exitCode;
if (result.exitCode > 0) {
newExitCode = result.exitCode
}

fs.writeFileSync(this.exitCodeFile, newExitCode.toString());

// Dump the summary for this test suite
var contents = fs.readFileSync(this.file, 'utf8');
console.log(contents);

} catch(e) {
this.writeFile(`${this.bold}${this.cyan}Test results for package ${this.bluebg} ${process.env.NG_TEST_SUITE} ${this.reset}`);
this.writeFile(`Total : ${this.bold}${this.cyan}${this.total}${this.reset}`)
this.writeFile(`Passed : ${this.bold}${this.cyan}${passed}${this.reset}`)
this.writeFile(`Failed : ${this.bold}${this.red}${this.failed.length}${this.reset}`)
this.writeFile(`Skipped : ${this.bold}${this.yellow}${this.skipped}${this.reset}`)

if (this.failed.length === 0) {
fs.appendFileSync(this.file, 'All tests passed\n')
} else {
this.writeFile('Test failures:');
this.failed.forEach(f => {
this.writeFile(`${this.red}${this.bold} - ${f.fullName}${this.reset}`);
const logs = f.log || [];
logs.forEach(l => fs.appendFileSync(this.file, `${this.grey} ${l}${this.reset}`));
// Add empty line
this.writeFile('');
});
}

// Update running totals JSON
this.runningTotals.total += this.total;
this.runningTotals.passed += passed;
this.runningTotals.failed += this.failed.length;
this.runningTotals.skipped += this.skipped;
fs.writeFileSync(this.jsonFile, JSON.stringify(this.runningTotals));

this.generateSummary();

// Write exit code
let newExitCode = this.exitCode;
if (result.exitCode > 0) {
newExitCode = result.exitCode
}

fs.writeFileSync(this.exitCodeFile, newExitCode.toString());

// Dump the summary for this test suite
var contents = fs.readFileSync(this.file, 'utf8');
console.log(contents);

} catch (e) {
console.log('ERROR while reporting test result');
console.log(e);
}
Expand Down
4 changes: 2 additions & 2 deletions custom-src/frontend/app/custom/custom-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const customRoutes: Routes = [
},
{
path: 'kubernetes',
loadChildren: './kubernetes/kubernetes.module#KubernetesModule',
loadChildren: () => import('./kubernetes/kubernetes.module').then(m => m.KubernetesModule),
data: {
stratosNavigation: {
text: 'Kubernetes',
Expand All @@ -34,7 +34,7 @@ const customRoutes: Routes = [
},
{
path: 'monocular',
loadChildren: './helm/helm.module#HelmModule',
loadChildren: () => import('./helm/helm.module').then(m => m.HelmModule),
data: {
reuseRoute: true,
stratosNavigation: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { HttpClient } from '@angular/common/http';
import { Component, ElementRef, OnDestroy, OnInit, ViewChild } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { MatTextareaAutosize } from '@angular/material';
import { MatTextareaAutosize } from '@angular/material/input';
import { ActivatedRoute } from '@angular/router';
import { Store } from '@ngrx/store';
import { PaginationMonitorFactory } from 'frontend/packages/store/src/monitors/pagination-monitor.factory';
Expand All @@ -10,7 +10,7 @@ import { BehaviorSubject, combineLatest, Observable, of, Subscription } from 'rx
import { distinctUntilChanged, filter, first, map, pairwise, startWith, switchMap } from 'rxjs/operators';

import { AppState } from '../../../../../store/src/app-state';
import { entityCatalog } from '../../../../../store/src/entity-catalog/entity-catalog.service';
import { EntityMonitorFactory } from '../../../../../store/src/monitors/entity-monitor.factory.service';
import { EndpointsService } from '../../../core/endpoints.service';
import { safeUnsubscribe } from '../../../core/utils.service';
import { ConfirmationDialogConfig } from '../../../shared/components/confirmation-dialog.config';
Expand Down Expand Up @@ -64,7 +64,8 @@ export class CreateReleaseComponent implements OnInit, OnDestroy {
private store: Store<AppState>,
private httpClient: HttpClient,
private confirmDialog: ConfirmationDialogService,
private pmf: PaginationMonitorFactory
private pmf: PaginationMonitorFactory,
private emf: EntityMonitorFactory
) {
const chart = this.route.snapshot.params;
this.cancelUrl = `/monocular/charts/${chart.repo}/${chart.chartName}/${chart.version}`;
Expand Down Expand Up @@ -238,9 +239,7 @@ export class CreateReleaseComponent implements OnInit, OnDestroy {
this.details.controls.endpoint.value);
this.store.dispatch(action);

const namespaceEntityConfig = entityCatalog.getEntity(action);
const monitor = namespaceEntityConfig.getEntityMonitor(this.store, action.guid);
return monitor.entityRequest$.pipe(
return this.emf.create(action.guid, action).entityRequest$.pipe(
pairwise(),
filter(([oldVal, newVal]) => oldVal.creating && !newVal.creating),
map(([, newVal]) => newVal),
Expand Down Expand Up @@ -271,10 +270,8 @@ export class CreateReleaseComponent implements OnInit, OnDestroy {
const action = new HelmInstall(values);
this.store.dispatch(action);

const releaseEntityConfig = entityCatalog.getEntity(action);

// Wait for result of request
return releaseEntityConfig.getEntityMonitor(this.store, action.guid).entityRequest$.pipe(
return this.emf.create(action.guid, action).entityRequest$.pipe(
filter(state => !!state),
pairwise(),
filter(([oldVal, newVal]) => (oldVal.creating && !newVal.creating)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
StratosBaseCatalogEntity,
StratosCatalogEndpointEntity,
StratosCatalogEntity,
} from '../../../../store/src/entity-catalog/entity-catalog-entity';
} from '../../../../store/src/entity-catalog/entity-catalog-entity/entity-catalog-entity';
import { StratosEndpointExtensionDefinition } from '../../../../store/src/entity-catalog/entity-catalog.types';
import { IFavoriteMetadata } from '../../../../store/src/types/user-favorites.types';
import {
Expand Down
2 changes: 1 addition & 1 deletion custom-src/frontend/app/custom/helm/helm-testing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ActivatedRoute } from '@angular/router';
import { RouterTestingModule } from '@angular/router/testing';

import { CATALOGUE_ENTITIES, EntityCatalogFeatureModule } from '../../../../store/src/entity-catalog.module';
import { entityCatalog, TestEntityCatalog } from '../../../../store/src/entity-catalog/entity-catalog.service';
import { entityCatalog, TestEntityCatalog } from '../../../../store/src/entity-catalog/entity-catalog';
import { createBasicStoreModule } from '../../../../store/testing/public-api';
import { generateStratosEntities } from '../../base-entity-types';
import { CoreModule } from '../../core/core.module';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { HttpClient } from '@angular/common/http';
import { Injectable, NgZone } from '@angular/core';
import { MatSnackBar } from '@angular/material';
import { MatSnackBar } from '@angular/material/snack-bar';
import { ActivatedRoute } from '@angular/router';
import { Store } from '@ngrx/store';
import { UnregisterEndpoint } from 'frontend/packages/store/src/actions/endpoint.actions';
import { entityCatalog } from 'frontend/packages/store/src/entity-catalog/entity-catalog.service';
import { entityCatalog } from 'frontend/packages/store/src/entity-catalog/entity-catalog';
import { endpointSchemaKey } from 'frontend/packages/store/src/helpers/entity-factory';
import { selectDeletionInfo } from 'frontend/packages/store/src/selectors/api.selectors';
import { of as observableOf } from 'rxjs';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Component, Input, OnInit, ViewEncapsulation } from '@angular/core';
import { MatIconRegistry, MatSnackBar } from '@angular/material';
import { MatIconRegistry } from '@angular/material/icon';
import { MatSnackBar } from '@angular/material/snack-bar';
import { DomSanitizer } from '@angular/platform-browser';

import { EndpointsService } from '../../../../../core/endpoints.service';
Expand Down
Loading