cloudfoundry/stratos

View on GitHub
src/test-e2e/application/application-autoscaler-e2e.spec.ts

Summary

Maintainability
A
1 hr
Test Coverage

File application-autoscaler-e2e.spec.ts has 503 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

import moment from 'moment-timezone';
import { browser, promise } from 'protractor';
import { timer } from 'rxjs';
import { switchMap } from 'rxjs/operators';

Severity: Major
Found in src/test-e2e/application/application-autoscaler-e2e.spec.ts - About 1 day to fix

    Function waitForRow has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          function waitForRow() {
            // Timeout after 32 attempts (each 5 seconds, which is just under 3 minutes)
            let retries = 32;
            const sub = timer(5000, 5000).pipe(
              switchMap(() => promise.all<boolean | number | TableData[]>([
    Severity: Minor
    Found in src/test-e2e/application/application-autoscaler-e2e.spec.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status