bcgov/common-hosted-email-service

View on GitHub
load-tests/script.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

export default function (data) {
  console.log(`VU: ${__VU}  -  ITER: ${__ITER}`);
  console.debug('Running Tests');
  console.debug(`Data from setup: ${JSON.stringify(data)}`);
  if (!data.token) {
Severity: Minor
Found in load-tests/script.js - About 1 hr to fix

    Function setup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function setup() {
      console.log(`Email url: ${emailUrl}`);
      console.log(`SSO url: ${oidcUrl}`);
      console.debug('Getting Token');
      // Check a secret was supplied or nothing will work
    Severity: Minor
    Found in load-tests/script.js - About 1 hr to fix

      TODO found
      Open

          // TODO: figure out what this should be (100%)
      Severity: Minor
      Found in load-tests/script.js by fixme

      TODO found
      Open

        // TODO: parameterize this into 2 scenarios that can be invoked
      Severity: Minor
      Found in load-tests/script.js by fixme

      There are no issues that match your filters.

      Category
      Status