Skip to content

Commit

Permalink
Merge upstream (#374)
Browse files Browse the repository at this point in the history
* Add initial UI for backup/restore

* Convert connection details checkbox to drop down

* Add docs for max list feature

* Add db version check

* Tidy up #1

* Tidying & bug fixes. Handle client_secret

* Add minimum password length

* First pass encrypt/decrypt

* Tidy up

* Fix unit tests

* Re-add tests that now work

* Changes following review

* Move backup into it's own module

* Ensure we filter out maxed results for local lists
- When apps collection is fetched and exceeds maxed allowed certain monitor observables were still firing with the partial collection of apps
- This led to app based stats (like count and memory) to be shown on the space cards & summary
- This was caused by a correction to the pagination monitor to use 'local' monitor observables instead of non-local
- The now correct observable to use did not have a filter for maxed results, so emited the bad data

* CF Push: Ensure we refresh token

* Fix uaa docs. Make UAA endpoint config simpler

* Fix compile issues

* Fixes following merge

* Fix row highlight (see app github tab commit table)
- wasn't showing after list in list changes
- fixes cloudfoundry#4243

* Improve metrics view

* Fix code climate issues

* Fix 2 more code climate issues

* Fix merge issue

* Fix dark mode box shadow
- dark mode styling overode disabling of box shadow

* Helm Chart: Fix Helm 3 compatibility with Release.Time

* Fix multiple metrics requests due to recreated list cards

* Fix most additional /stratos requests on load of endpoints page with metrics

* Add nodeSelector implementation and tests to kubernetes helm deployment. (cloudfoundry#4252)

* Add nodeSelector template and tests

Add nodeSelector template to the helm deployment:
- deployment.yaml
- database.yaml
- config-init.yaml

Add tests to validate nodeSelector template to
- deployment_test.yaml

Create tests to validate nodeSelector template to
- database_test.yaml
- config_init_test.yaml

* Add c&p fix and another nodeSelector test

Add fix for c&p bug to
- database.yaml
- deployment.yaml

Add test to validate nodeSelector template to
- config_init_test.yaml

Add test config to
- database-test.yaml
- deployment-test.yaml

* Remove test

Remove test to validate nodeSelector template to
    - config_init_test.yaml

* Autoscaler improvements

* Fix unit tests

* Fix disabling of polling (cloudfoundry#4260)

- fixes cloudfoundry#4244

* Add Helm 3 lint check to the Travis Helm Chart job (cloudfoundry#4263)

* Helm Chart: Fix Helm 3 compatibility with Release.Time

* Add helm 3 lint

* Fix EndpointCardComponent test

* Increase users table page size before searching for `e2e` user

* Helm node selector docs and values (cloudfoundry#4264)

* Add nodeSelector template and tests

Add nodeSelector template to the helm deployment:
- deployment.yaml
- database.yaml
- config-init.yaml

Add tests to validate nodeSelector template to
- deployment_test.yaml

Create tests to validate nodeSelector template to
- database_test.yaml
- config_init_test.yaml

* Add c&p fix and another nodeSelector test

Add fix for c&p bug to
- database.yaml
- deployment.yaml

Add test to validate nodeSelector template to
- config_init_test.yaml

Add test config to
- database-test.yaml
- deployment-test.yaml

* Remove test

Remove test to validate nodeSelector template to
    - config_init_test.yaml

* More gates on node selector. Added to values.yaml and README

Co-authored-by: Johannes Jungkunst <macevil@gmail.com>

* Fix root list colour in metrics summary page dark mode

* Fix first row alignment in users table

* Fix invite user e2e test (see cloudfoundry#4272)

* Disable random route override setting when deploying apps in e2e tests
- pushes route over max 63 chars

* Disable random route override setting when deploying apps in e2e tests
- pushes route over max 63 chars

* Override name but do not set a random route

* EE Test improvements (cloudfoundry#4274)

* Speed up form fill

* Manage users fix?

* Wait slightly longer

* Improve error output in tests

* Fix invite users error msg check

* Fix manage users e2e

* Need checked in form to check box correctly

* Fix row highligh & Improve metrics summary view (cloudfoundry#4270)

* Fix row highlight (see app github tab commit table)
- wasn't showing after list in list changes
- fixes cloudfoundry#4243

* Improve metrics view

* Fix code climate issues

* Fix 2 more code climate issues

* Fix merge issue

* Fix dark mode box shadow
- dark mode styling overode disabling of box shadow

* Fix multiple metrics requests due to recreated list cards

* Fix most additional /stratos requests on load of endpoints page with metrics

* Fix unit tests

* Fix EndpointCardComponent test

* Fix root list colour in metrics summary page dark mode

* Fix first row alignment in users table

* Fix invite user e2e test (see cloudfoundry#4272)

* Disable random route override setting when deploying apps in e2e tests
- pushes route over max 63 chars

Co-authored-by: Neil MacDougall <neil.macdougall@suse.com>

* Improve view that shows details for a metrics endpoint (cloudfoundry#4258)

* Improve metrics view

* Fix code climate issues

* Fix 2 more code climate issues

* Fix merge issue

* Fix multiple metrics requests due to recreated list cards

* Fix most additional /stratos requests on load of endpoints page with metrics

* Fix unit tests

* Fix EndpointCardComponent test

Co-authored-by: Richard Cox <richard.cox@suse.com>

* Fix row highlight (see app github tab commit table) (cloudfoundry#4257)

* Fix row highlight (see app github tab commit table)
- wasn't showing after list in list changes
- fixes cloudfoundry#4243

* Fix dark mode box shadow
- dark mode styling overode disabling of box shadow

Co-authored-by: Neil MacDougall <neil.macdougall@suse.com>

* E2E Cleanup script: clean other users (cloudfoundry#4269)

* E2E Cleanup script: clean other users and reduce time to 1 hour

* Remove superfluous blank lines

* Revert back to 2 hours

* Version bump and change log for 3.2.0

* E2E Test improvements (cloudfoundry#4275)

* Speed up form fill

* Fix page set setting

* Remove whitespace

* Add ability to provided a wildcard in path when matching urls (cloudfoundry#4277)

* Update releas notes

Co-authored-by: Neil MacDougall <neil_macdougall@hotmail.com>
Co-authored-by: Neil MacDougall <neil.macdougall@suse.com>
Co-authored-by: macevil <30493519+macevil@users.noreply.github.com>
Co-authored-by: Neil MacDougall <nwmac@users.noreply.github.com>
Co-authored-by: Johannes Jungkunst <macevil@gmail.com>
  • Loading branch information
6 people committed May 11, 2020
1 parent 6ffd600 commit 4e6a37b
Show file tree
Hide file tree
Showing 112 changed files with 2,645 additions and 272 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# Change Log

## 3.2.0

[Full Changelog](https://github.com/cloudfoundry/stratos/compare/3.1.0...3.2.0)

This release contains a number of fixes and improvements:

**Improvements:**

- SSO_WHITELIST should be able to ignore path [\#4273](https://github.com/cloudfoundry/stratos/issues/4273)
- Improve view that shows details for a metrics endpoint [\#4271](https://github.com/cloudfoundry/stratos/issues/4271)
- Helm Chart: Add support for node selectors [\#4265](https://github.com/cloudfoundry/stratos/issues/4265)
- Add documentation for list's 'max' feature, include info on 'fetch all' button [\#4259](https://github.com/cloudfoundry/stratos/issues/4259)
- Backup Endpoints & Tokens [\#4228](https://github.com/cloudfoundry/stratos/issues/4228)

**Fixes:**

- Deployment time does not show correctly in diagnostics when deployed with Helm 3 [\#4261](https://github.com/cloudfoundry/stratos/issues/4261)
- Pushing app from Stratos can sometimes fail due to expired token [\#4253](https://github.com/cloudfoundry/stratos/issues/4253)
- Helm: Chart fails to render if `uaa` section is missing, docs misleading [\#4248](https://github.com/cloudfoundry/stratos/issues/4248)
- Profile: Disabling polling fails to disable polling [\#4244](https://github.com/cloudfoundry/stratos/issues/4244)
- App Summary: Github tab: Row highlight of deployed commit is obscured [\#4243](https://github.com/cloudfoundry/stratos/issues/4243)
- Data Inaccuracies in PCF [\#4237](https://github.com/cloudfoundry/stratos/issues/4237)

## 3.1.0

[Full Changelog](https://github.com/SUSE/stratos/compare/3.0.0...3.1.0)
Expand Down
4 changes: 2 additions & 2 deletions build/tools/changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ function log() {
}

COMPARE_REPO=${REPO}
QUERY="repo:${REPO}+milestone:3.1.0+state:closed"
QUERY="repo:${REPO}+milestone:${MILESTONE}+state:closed"
if [ -n "${FORK}" ]; then
FORK_QUERY="repo:${FORK}+milestone:3.1.0+state:closed"
FORK_QUERY="repo:${FORK}+milestone:${MILESTONE}+state:closed"
COMPARE_REPO=${FORK}
fi

Expand Down
1 change: 1 addition & 0 deletions deploy/ci/automation/e2e-clean-remnants.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ USERS=$(cf curl "/v2/users?results-per-page=100" | jq -r .resources[].entity.use
clean "$USERS" "-" "delete-user" "^(acceptance\.e2e\.travisci)(-remove-users)\.(20[0-9]*)[Tt]([0-9]*)[zZ].*"
clean "$USERS" "-" "delete-user" "^(acceptance\.e2e\.travis)(-remove-users)\.(20[0-9]*)[Tt]([0-9]*)[zZ].*"
clean "$USERS" "-" "delete-user" "^(acceptancee2etravis)(invite[0-9])(20[0-9]*)[Tt]([0-9]*)[zZ].*"
clean "$USERS" "-" "delete-user" "^(acceptance\.e2e\.travisci)(-manage-by-username)\.(20[0-9]*)[Tt]([0-9]*)[zZ].*"

# Routes
echo "Cleaning routes"
Expand Down
12 changes: 12 additions & 0 deletions deploy/ci/travis/helm-chart-unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,15 @@ helm unittest console

# Run lint
helm lint console

# Run helm3 lint as well
echo "Installing Helm 3"
export BINARY_NAME=helm3
curl -fsSL -o get_helm3.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
chmod 700 get_helm3.sh
./get_helm3.sh

# RUn Helm 3 lint
helm3 lint console

echo "All done"
21 changes: 12 additions & 9 deletions deploy/kubernetes/console/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ Check the repository was successfully added by searching for the `console`, for
```
helm search console
NAME CHART VERSION APP VERSION DESCRIPTION
stratos/console 3.0.0 3.0.0 A Helm chart for deploying Stratos UI Console
stratos/console 3.1.0 3.1.0 A Helm chart for deploying Stratos UI Console
```

> Note: Version numbers will depend on the version of Stratos available from the Helm repository
> Note: Commands shown in this document are for Helm version 3. For Helm version 2, when installing, instead of supplying the name via the `--name` flag, it is supplied as the first argument, before the chart name.
To install Stratos:
Expand Down Expand Up @@ -85,13 +87,11 @@ The following table lists the configurable parameters of the Stratos Helm chart
|console.mariadb.host|Hostname of the database when using an external db||
|console.mariadb.port|Port of the database when using an external db|3306|
|console.mariadb.tls|TLS mode when connecting to database (true, false, skip-verify, preferred)|false|
|console.uaa.protocol|Protocol to use when authenticating with the UAA|https://|
|console.uaa.host|Host of the UAA to authenticate with ||
|console.uaa.port|Port of the UAA to authenticate with ||
|console.uaa.consoleClient|Client to use when authenticating with the UAA|cf|
|console.uaa.consoleClientSecret|Client secret to use when authenticating with the UAA||
|console.uaa.consoleAdminIdentifier|Scope that identifies an admin user of Stratos (e.g. cloud_controller.admin||
|console.uaa.skipSSLValidation|Skip SSL validation when when authenticating with the UAA|false|
|uaa.endpoint|URL of the UAA endpoint to authenticate with ||
|uaa.consoleClient|Client to use when authenticating with the UAA|cf|
|uaa.consoleClientSecret|Client secret to use when authenticating with the UAA||
|uaa.consoleAdminIdentifier|Scope that identifies an admin user of Stratos (e.g. cloud_controller.admin||
|uaa.skipSSLValidation|Skip SSL validation when when authenticating with the UAA|false|
|env.SMTP_AUTH|Authenticate against the SMTP server using AUTH command when Sending User Invite emails|false|
|env.SMTP_FROM_ADDRESS|From email address to use when Sending User Invite emails||
|env.SMTP_USER|User name to use for authentication when Sending User Invite emails||
Expand All @@ -115,6 +115,9 @@ The following table lists the configurable parameters of the Stratos Helm chart
|console.service.extraLabels|Additional labels to be added to all service resources||
|console.service.ingress.annotations|Annotations to be added to the ingress resource||
|console.service.ingress.extraLabels|Additional labels to be added to the ingress resource||
|console.nodeSelector|Node selectors to use for the console Pod||
|mariadb.nodeSelector|Node selectors to use for the database Pod||
|configInit.nodeSelector|Node selectors to use for the configuration Pod||

## Accessing the Console

Expand Down Expand Up @@ -280,6 +283,7 @@ UAA configuration can be specified by providing the following configuration.
Create a yaml file with the content below and and update according to your environment and save to a file called `uaa-config.yaml`.
```
uaa:
url: https://uaa.cf-dev.io:2793
protocol: https://
port: 2793
host: uaa.cf-dev.io
Expand All @@ -291,7 +295,6 @@ uaa:

To install Stratos with the above specified configuration:


```
kubectl create namespace console
helm install my-console stratos/console --namespace=console -f uaa-config.yaml
Expand Down
10 changes: 10 additions & 0 deletions deploy/kubernetes/console/templates/config-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ spec:
{{ toYaml .Values.console.podExtraLabels | nindent 8 }}
{{- end }}
spec:
{{- if .Values.configInit }}
{{- if .Values.configInit.nodeSelector }}
nodeSelector:
{{ toYaml .Values.configInit.nodeSelector | trim | indent 8 }}
{{- end }}
{{- end }}
containers:
- env:
- name: "STRATOS_VOLUME_MIGRATION"
Expand Down Expand Up @@ -170,6 +176,10 @@ spec:
app.kubernetes.io/version: "{{ .Chart.AppVersion }}"
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
spec:
{{- if .Values.configInit }}
nodeSelector:
{{ toYaml .Values.configInit.nodeSelector | indent 8 }}
{{- end }}
containers:
- env:
- name: "NAMESPACE"
Expand Down
6 changes: 6 additions & 0 deletions deploy/kubernetes/console/templates/database.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ spec:
{{ toYaml .Values.console.podExtraLabels | nindent 8 }}
{{- end}}
spec:
{{- if .Values.mariadb }}
{{- if .Values.mariadb.nodeSelector }}
nodeSelector:
{{ toYaml .Values.mariadb.nodeSelector | trim | indent 8 }}
{{- end }}
{{- end }}
containers:
- name: mariadb
image: {{.Values.kube.registry.hostname}}/{{.Values.kube.organization}}/{{.Values.images.mariadb}}:{{.Values.consoleVersion}}
Expand Down
18 changes: 16 additions & 2 deletions deploy/kubernetes/console/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ spec:
{{ toYaml .Values.console.podExtraLabels | indent 8 }}
{{- end }}
spec:
{{- if .Values.console }}
{{- if .Values.console.nodeSelector }}
nodeSelector:
{{ toYaml .Values.console.nodeSelector | trim | indent 8 }}
{{- end }}
{{- end }}
containers:
- image: {{.Values.kube.registry.hostname}}/{{.Values.kube.organization}}/{{.Values.images.console}}:{{.Values.consoleVersion}}
imagePullPolicy: {{.Values.imagePullPolicy}}
Expand Down Expand Up @@ -184,7 +190,15 @@ spec:
value: stratos.admin
{{- else }}
# UAA
{{- if or .Values.env.UAA_HOST .Values.env.DOMAIN }}
# Highest priority setting to use is uaa.endpoint
{{- if .Values.uaa.endpoint }}
- name: UAA_ENDPOINT
value: {{ .Values.uaa.endpoint | quote }}
- name: CONSOLE_ADMIN_SCOPE
value: {{ default "cloud_controller.admin" .Values.uaa.consoleAdminIdentifier }}
- name: SKIP_SSL_VALIDATION
value: {{default "true" .Values.uaa.skipSSLValidation | quote}}
{{- else if or .Values.env.UAA_HOST .Values.env.DOMAIN }}
- name: UAA_ENDPOINT
value: {{ template "scfUaaEndpoint" . }}
{{- if and .Values.env.DOMAIN (not .Values.console.autoRegisterCF) }}
Expand Down Expand Up @@ -219,7 +233,7 @@ spec:
- name: HELM_CHART_VERSION
value: "{{ .Chart.Version }}"
- name: HELM_LAST_MODIFIED
value: "{{ .Release.Time }}"
value: "seconds:{{ now | unixEpoch }} nanos:0 "
- name: SSO_LOGIN
value: {{default "false" .Values.console.ssoLogin | quote}}
- name: SSO_OPTIONS
Expand Down
12 changes: 12 additions & 0 deletions deploy/kubernetes/console/tests/config_init_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
suite: test stratos configInit
templates:
- config-init.yaml
tests:
- it: should set kubernetes.io/arch if configInit.nodeSelector.kubernetes.io/arch is set
set:
configInit.nodeSelector.kubernetes.io/arch: amd64
asserts:
- equal:
path: spec.template.spec.nodeSelector.kubernetes.io/arch
value: amd64
documentIndex: 3
12 changes: 12 additions & 0 deletions deploy/kubernetes/console/tests/database-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
suite: test stratos database
templates:
- database.yaml
tests:
- it: should set kubernetes.io/arch if mariadb.nodeSelector.kubernetes.io/arch is set
set:
mariadb.nodeSelector.kubernetes.io/arch: amd64
asserts:
- equal:
path: spec.template.spec.nodeSelector.kubernetes.io/arch
value: amd64
documentIndex: 0
8 changes: 8 additions & 0 deletions deploy/kubernetes/console/tests/deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,11 @@ tests:
content:
name: AUTO_REG_CF_URL
value: https://autoreg.test.com
- it: should set kubernetes.io/arch if console.nodeSelector.kubernetes.io/arch is set
set:
console.nodeSelector.kubernetes.io/arch: amd64
asserts:
- equal:
path: spec.template.spec.nodeSelector.kubernetes.io/arch
value: amd64
documentIndex: 0
23 changes: 19 additions & 4 deletions deploy/kubernetes/console/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ console:
tlsSecretName:

# URL of a Cloud Foundry to use for authentication and to auto-register on login
# Deprecated
autoRegisterCF: ~

# Custom annotations to apply to Stateful sets
Expand All @@ -104,6 +105,9 @@ console:

# Extra labels to apply to Pods
podExtraLabels: {}

# Node Selector for console Pod
nodeSelector: {}

images:
console: stratos-console
Expand Down Expand Up @@ -145,13 +149,24 @@ mariadb:
accessMode: ReadWriteOnce
size: 1Gi
storageClass:
# Node selector for the database pod
nodeSelector: {}

configInit:
# Node selector for the config init pod
nodeSelector: {}

# UAA configuration
uaa:
protocol: https://
port:
host:
# UAA endpoint (e.g. https://uaa.domain:2793)
endpoint: ~
# Client to use when authenticating (default is 'cf')
consoleClient:
# Client Secret to use when authenticating (default is '')
consoleClientSecret:
consoleAdminIdentifier:
# Scope that determines if a user is a Stratos admin
consoleAdminIdentifier:
# Skip SSL validation when communicating with the UAA
skipSSLValidation: false

# SCF values compatability
Expand Down
43 changes: 43 additions & 0 deletions docs/cf-entity-scaling.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Cloud Foundry Scaling - How Stratos Handles Large Lists

Stratos presents collections of entities via the Stratos list component. The list component presents the collection in a paginated, sortable and searchable way in either a set of cards or a table.
In order to achieve this, due to the limitations of the APIs used, the list may fetch all entities (as opposed to fetching entities for the visible page only) and paginate, sort and search locally.

## Protecting Stratos from Large Collections
In some cases the number of entities in a collection can be incredibly high. Stratos can decide to not fetch them all in order to protect the CF from
a substantial number of requests. To do this the first page is fetched and the total number of entities is checked against a limit. If under
the limit the remaining pages are asynchronously fetched. If over then the remaining pages are ignored and the user is informed that the list could not fetch all entities.

Depending on the list, the user can then try to filter the collection such that the number of entities is below the limit. Depending on configuration
the user also has the option to fetch all entities regardless of the limit.

## Applicable Lists
Currently, in 3.1.0, this large collection protection is only applicable to the following lists

- Application Wall
- Marketplace (Services)
- Services (Service & User Provided Service Instances)
- CF, Organisation and Space Users
- CF Routes

In the future we hope to expand this to all lists.

## Determining the List Limit
The limit at which we won't fetch all entities is determined, in least important to most important order, by

1) The global CF default - 600
2) The Jetstream override for all lists - by default not set

In the future we hope to allow each end user of Stratos to determine their own limit (if they have the correct permissions).

## Fetch All feature
If the list hits the limit the user will be presented with a button to `Fetch All` entities. Clicking this button ensures the list reverts
back as if there were no limit and thus fetching all entities. This feature is disabled by default and can be enabled by a Jetstream override.

## Configuration
The Jetstream overrides can be set via environment variable, or if in helm, as values.

Environment Variable|Helm Value|Description|Default|
|---|---|---|---|
|`UI_LIST_MAX_SIZE`|`console.ui.listMaxSize`|Override the default maximum number of entities that a configured list can fetch. When a list meets this amount additional pages are not fetched||
|`UI_LIST_ALLOW_LOAD_MAXED`|`console.ui.listAllowLoadMaxed`|If the maximum list size is met give the user the option to fetch all results|false|
6 changes: 4 additions & 2 deletions docs/sso.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ uaac client update cf --authorized_grant_types authorization_code
When SSO has been configured Stratos's log in request will contain a URL that tells SSO where to return to. When using a browser this is automatically populated. To avoid situations where this can be hijacked or called separately an SSO `state` whitelist can be provided via the environment variable `SSO_WHITELIST`. This is a comma separated list. For example...

```
SSO_WHITELIST=https://your.domain
SSO_WHITELIST=https://your.domain/*
```

```
SSO_WHITELIST=https://your.domain,https://your.other.domain
SSO_WHITELIST=https://your.domain/*,https://your.other.domain/*
```

When set, any requests to log in with a different `state` will be denied.

In order for the SSO `state` to match an entry from the whitelist the schema, hostname, port and path must match exactly. A wildcard `*` can be provided for the path to match anything.
2 changes: 1 addition & 1 deletion 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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stratos",
"version": "3.1.0",
"version": "3.2.0",
"description": "Stratos Console",
"main": "index.js",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@ import { DatePipe } from '@angular/common';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { RouterTestingModule } from '@angular/router/testing';
import { createEmptyStoreModule } from '@stratos/store/testing';

import { ApplicationService } from '../../../../cloud-foundry/src/features/applications/application.service';
import { CoreModule } from '../../../../core/src/core/core.module';
import { SharedModule } from '../../../../core/src/shared/shared.module';
import { TabNavService } from '../../../../core/tab-nav.service';
import { ApplicationServiceMock } from '../../../../core/test-framework/application-service-helper';
import { createEmptyStoreModule } from '@stratos/store/testing';
import { CfAutoscalerTestingModule } from '../../cf-autoscaler-testing.module';
import { AutoscalerMetricPageComponent } from './autoscaler-metric-page.component';

// TODO: Fix after metrics has been sorted - STRAT-152
xdescribe('AutoscalerMetricPageComponent', () => {
describe('AutoscalerMetricPageComponent', () => {
let component: AutoscalerMetricPageComponent;
let fixture: ComponentFixture<AutoscalerMetricPageComponent>;

Expand Down Expand Up @@ -47,10 +46,5 @@ xdescribe('AutoscalerMetricPageComponent', () => {
expect(component).toBeTruthy();
});

// TODO: Fix after metrics has been sorted - STRAT-152 (cause of `Cannot read property 'getEntityMonitor' of undefined` test failure)
it('Blocked', () => {
fail('Blocked: Requires metrics to be working (specifically metrics entities)');
});

afterAll(() => { });
});
Loading

0 comments on commit 4e6a37b

Please sign in to comment.