diff --git a/.gitignore b/.gitignore index dea8a7938..a2a565ae3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.pem +.claude/scheduled_tasks.lock .coverage* .env* .history diff --git a/CLAUDE.md b/CLAUDE.md index 9ec28bb00..6fd626310 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -7,6 +7,10 @@ ## Development Commands +### Shell Environment (Claude already inherits it) + +The user starts this session with `source .env && source .venv/bin/activate && claude`, so `.env` vars and the `.venv` are already on PATH for every Bash tool call. Do not prepend `source .env` or `source .venv/bin/activate` to commands. Use `pytest`, `python`, `ruff`, etc. directly. For pytest specifically, use `python -m pytest ...` (not `pytest ...` or `uv run pytest ...`) so cwd is added to `sys.path` and top-level imports like `from constants.models ...` resolve without setting `PYTHONPATH`. + ### Running Locally ```bash diff --git a/pyproject.toml b/pyproject.toml index d854aa62b..8827ecc90 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "GitAuto" -version = "1.55.0" +version = "1.55.2" requires-python = ">=3.14" dependencies = [ "annotated-doc==0.0.4", diff --git a/utils/logs/detect_infra_failure.py b/utils/logs/detect_infra_failure.py index 2dbcc8c43..8008cf88d 100644 --- a/utils/logs/detect_infra_failure.py +++ b/utils/logs/detect_infra_failure.py @@ -1,6 +1,7 @@ # Local imports from utils.error.handle_exceptions import handle_exceptions from utils.logging.logging_config import logger +from utils.logs.strip_jest_noise import strip_jest_noise # Patterns for transient infrastructure failures (not code bugs). Add more as we encounter them. INFRA_FAILURE_PATTERNS = [ @@ -33,10 +34,13 @@ @handle_exceptions(default_return_value=None, raise_on_error=False) def detect_infra_failure(error_log: str): + # Strip console.warn/log blocks and AWS SSM-fallback warnings before scanning so app-level noise (e.g. "AccessDeniedException" from a console.warn that fell back to a default) can't false-positive this classifier. + error_log = strip_jest_noise(error_log) lower_log = error_log.lower() for pattern in INFRA_FAILURE_PATTERNS: if pattern.lower() in lower_log: logger.info("Infrastructure failure detected: '%s'", pattern) return pattern + logger.info("No infrastructure failure pattern matched") return None diff --git a/utils/logs/fixtures/foxden_rating_quoting_pr714_circleci_log.txt b/utils/logs/fixtures/foxden_rating_quoting_pr714_circleci_log.txt new file mode 100644 index 000000000..a57e0a87f --- /dev/null +++ b/utils/logs/fixtures/foxden_rating_quoting_pr714_circleci_log.txt @@ -0,0 +1,3510 @@ +```CircleCI Build Log: yarn test +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch turnOnEmfileProbe from SSM, falling back to default: true AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/turnOnEmfileProbe because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:107:10) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/foxden_quoting/US/getOhioQuote.munich.test.ts:17:13) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '77bbc635-d69b-42be-82e0-d6ba2cdf99bf', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:107:10) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/foxden_quoting/US/getOhioQuote.munich.test.ts:17:13) + + console.log + Using default value true for turnOnEmfileProbe + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + MongoDB connection options: { + "maxPoolSize": 10, + "minPoolSize": 1, + "maxIdleTimeMS": 10000, + "serverSelectionTimeoutMS": 3000, + "heartbeatFrequencyMS": 5000 + } + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + [EMFILE investigation] Starting investigation in undefined for MongoDBConnection... + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + *** new process, emfiles count: 40 + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + Connected to MongoDB (maxPoolSize: 10, maxIdleTimeMS: 10000) + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +{"level":"debug","message":"Start convert underwriting answers","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Calculate premium input:","metadata":{"GL":{"TRIA":false,"abuseAndMolestationAggregateLimit":0,"abuseAndMolestationCoverage":false,"abuseAndMolestationEachPersonLimit":0,"aggregateLimit":1000000,"chooseCGL":true,"contractorsEO":false,"contractorsEOAggregateLimit":0,"contractorsEODuctible":0,"contractorsEOOccurrenceLimit":0,"deductible":0,"deductibleAppliesTo":"","employeeBenefits":false,"employeeBenefitsAggregateLimit":0,"employeeBenefitsOccurrenceLimit":0,"isAdditionalInsuredChosen":false,"limitedPollutionLiability":true,"limitedPollutionLiabilityAggregateLimit":5000,"limitedPollutionLiabilityOccurrenceLimit":5000,"medicalPaymentsLimit":5000,"miscellaneousEO":true,"miscellaneousEOAggregateLimit":50000,"miscellaneousEODeductible":0,"miscellaneousEOOccurrenceLimit":25000,"occurrenceLimit":1000000,"policyEffectiveDate":"2021-05-05T00:00:00.000Z","policyExpirationDate":"2022-05-05T00:00:00.000Z","premisesRentedToYouLimit":100000,"transactionEffectiveDate":"2021-05-05T00:00:00.000Z","transactionExpirationDate":"2022-05-05T00:00:00.000Z","unmannedAircraftForCoverageA":true,"unmannedAircraftForCoverageAB":false,"unmannedAircraftForCoverageB":false,"unmannedAircraftLimitForCoverageA":25000,"unmannedAircraftLimitForCoverageAB":0,"unmannedAircraftLimitForCoverageB":0},"IM":{"TRIA":false,"additionallyCoveredPropertyEndorsement":false,"additionallyCoveredPropertyLimit":0,"baileesCustomerCoverageForm":false,"baileesCustomerDeductible":0,"baileesCustomerLimit":0,"biAndEeSelection":false,"biLimit":0,"commercialBusinessItemsCoverageForm":true,"commercialBusinessItemsDeductible":500,"commercialContractorsCoverageForm":false,"commercialContractorsDeductible":500,"contractorsLockAndKeyLimit":0,"eeLimit":0,"hardwareAndSoftwareLimit":5000,"installationEndorsement":false,"installationLimit":0,"lockAndKeyLimit":5000,"photographyAndVideographyEndorsement":true,"photographyAndVideographyLimit":5000,"policyEffectiveDate":"2021-05-05T00:00:00.000Z","policyExpirationDate":"2022-05-05T00:00:00.000Z","theftDeductible":0,"theftDeductibleSelection":false,"theftExclusion":false,"theftSublimit":0,"theftSublimitSelection":false,"transactionEffectiveDate":"2021-05-05T00:00:00.000Z","transactionExpirationDate":"2022-05-05T00:00:00.000Z","unmannedAircraftEndorsement":true,"unmannedAircraftLimit":5000,"unscheduledBPPLimit":5000,"unscheduledContractorsEquipmentLimit":0,"unscheduledHardwareAndSoftwareLimit":0,"unscheduledSmallToolsLimit":0,"valuablePapersEndorsement":false,"valuablePapersLimit":0,"whExclusion":false},"grossSales":11111,"numOfEmployees":1,"numOfPayrollOpenTextOfficers":1,"numOfPayrollOwners":1,"payroll":11111,"professionList":["BusinessInformation_100_Profession_9219_9562505_WORLD_EN"],"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","workPercentageData":{"commercialWorkPercentage":0,"exteriorWorkPercentage":0,"interiorWorkPercentage":0,"residentialWorkPercentage":0},"zipCode":"43210"}} +{"level":"debug","message":"Start Ohio Quoting","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Start table lookup for filling data","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Using policy dates to calculate policy term measurements","metadata":{"policyDates":{"policyEffectiveDate":"2021-05-05T00:00:00.000Z","policyExpirationDate":"2022-05-05T00:00:00.000Z","transactionEffectiveDate":"2021-05-05T00:00:00.000Z","transactionExpirationDate":"2022-05-05T00:00:00.000Z"},"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Successfully calculated policy term measurements","metadata":{"policyTermMeasurements":{"policyTermFactor":1,"policyTermLength":1,"prorateFactor":1},"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Using policy dates to calculate policy term measurements","metadata":{"policyDates":{"policyEffectiveDate":"2021-05-05T00:00:00.000Z","policyExpirationDate":"2022-05-05T00:00:00.000Z","transactionEffectiveDate":"2021-05-05T00:00:00.000Z","transactionExpirationDate":"2022-05-05T00:00:00.000Z"},"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Successfully calculated policy term measurements","metadata":{"policyTermMeasurements":{"policyTermFactor":1,"policyTermLength":1,"prorateFactor":1},"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Filling data input","metadata":{"carrierPartner":"Munich","grossSales":11111,"numOfEmployees":1,"numOfPayrollOpenTextOfficers":1,"numOfPayrollOwners":1,"payroll":11111,"professionList":["BusinessInformation_100_Profession_9219_9562505_WORLD_EN"],"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","workPercentageData":{"commercialWorkPercentage":0,"exteriorWorkPercentage":0,"interiorWorkPercentage":0,"residentialWorkPercentage":0},"zipCode":"43210"}} +{"level":"debug","message":"Filling data output","metadata":{"abuseAndMolestationHazardGroup":"L","exceptionRules":[],"isoData":[{"abuseAndMolestationHGRank":1,"abuseAndMolestationHazardGroup":"L","exposures":84911,"ilfTable":"2A","ilfTablePrem":"2","ilfTableProd":"A","isoClassCode":"95625","isoClassDescription":"Handyperson","minimumPremium":"400","minimumPremiumGroup":"Medium Contractors","premiumBase":"Payroll"}],"isoMapper":{"95625":["95625"]},"isoTerritory":"505","minimumPremium":400,"policyLevelRevenue":11111,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Start rating for gl table","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Start rating for base CGL Prem","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for base CGL Prem of iso 95625","metadata":{"LCM":1.538,"adjustedLimitFactor":1.51,"audit":{"unroundedBasicLimitRate":6.73644,"unroundedFinalPremium":864,"unroundedModifiedPremium":863.63,"unroundedRotableExposures":84.911,"unroundedUnmodifiedPremium":863.629781,"unroundedUnmodifiedRate":10.17136},"basicLimitRate":6.736,"deductibleFactor":0,"exposures":84911,"finalPremium":864,"ilf":1.51,"lossCostFactor":4.38,"modifiedPremium":864,"policyTermFactor":1,"premiumBaseAdjustment":0.001,"prorateFactor":1,"rotableExposures":84.911,"scheduleModFactor":1,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","unmodifiedPremium":863.63,"unmodifiedRate":10.171}} +{"level":"debug","message":"Start rating for base CGL Prod","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for base CGL Prod","metadata":{"LCM":1.538,"adjustedLimitFactor":1.45,"audit":{"unroundedBasicLimitRate":4.78318,"unroundedFinalPremium":589,"unroundedModifiedPremium":588.858,"unroundedRotableExposures":84.911,"unroundedUnmodifiedPremium":588.8577849999999,"unroundedUnmodifiedRate":6.935350000000001},"basicLimitRate":4.783,"deductibleFactor":0,"exposures":84911,"finalPremium":589,"ilf":1.45,"lossCostFactor":3.11,"modifiedPremium":589,"policyTermFactor":1,"premiumBaseAdjustment":0.001,"prorateFactor":1,"rotableExposures":84.911,"scheduleModFactor":1,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","unmodifiedPremium":588.858,"unmodifiedRate":6.935}} +{"level":"debug","message":"Start rating for cgl additional limits","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for cgl additional limits","metadata":{"audit":{"unroundedBasicLimitsUnmodifiedPremium":571.960496,"unroundedMedicalPaymentsFinalPremium":0,"unroundedMedicalPaymentsModifiedPremium":0,"unroundedMedicalPaymentsUnmodifiedPremium":0,"unroundedPremisesRentedToYouModifiedPremium":0,"unroundedPremisesRentedToYouUnmodifiedPremium":0,"unroundedpPremisesRentedToYouFinalPremium":0},"basicLimitsUnmodifiedPremium":571.96,"medicalPaymentsFinalPremium":0,"medicalPaymentsModifiedPremium":0,"medicalPaymentsRate":0,"medicalPaymentsUnmodifiedPremium":0,"premisesRentedToYouFinalPremium":0,"premisesRentedToYouModifiedPremium":0,"premisesRentedToYouRate":0,"premisesRentedToYouUnmodifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Start rating for cgl minimum to add","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for cgl minimum to add","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"minimumPremium":400,"prorateFactor":1,"sum":1453,"termPremium":0,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Start rating for pollution liability","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for pollution liability","metadata":{"audit":{"unroundedFinalPremium":25,"unroundedTermPremium":25},"finalPremium":25,"flatCharge":25,"prorateFactor":1,"termPremium":25,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Start rating for unmanned aircraft (coverage A only)","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for unmanned aircraft (coverage A only)","metadata":{"audit":{"unroundedFinalPremium":185,"unroundedTermPremium":185},"finalPremium":185,"flatCharge":185,"prorateFactor":1,"termPremium":185,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Start rating for unmanned aircraft (coverage B only)","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for unmanned aircraft (coverage B only)","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Start rating for unmanned aircraft (coverage A&B)","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for unmanned aircraft (coverage A&B)","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Start rating for Miscellaneous EO","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for Miscellaneous EO","metadata":{"additionalPremiumToMeetMinimum":47.767,"audit":{"unroundedFinalPremium":50,"unroundedModifiedPremium":2.233,"unroundedRevenue":11.111,"unroundedTermPremium":50,"unroundedUnmodifiedPremium":2.233311},"finalPremium":50,"modifiedPremium":2.233,"prorateFactor":1,"rate":0.201,"revenue":11.111,"scheduleModFactor":1,"termPremium":50,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","unmodifiedPremium":2.233}} +{"level":"debug","message":"Start rating for Contractors EO","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for Contractors EO","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Start rating for abuse and molestation coverage","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for abuse and molestation coverage","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Start rating for employee benefits coverage","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for employee benefits coverage","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Start rating for TRIA","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for TRIA","metadata":{"active":false,"audit":{"unroundedFinalPremium":17,"unroundedTermPremium":16.63},"finalPremium":17,"prorateFactor":1,"rate":0.01,"sum":1663,"termPremium":17,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"info","message":"Start rating for addtional insured","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Final gl premium","metadata":{"glPremium":1713,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Start rating for IM table","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Start rating for business items table","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Start rating for unscheduled BPP","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for unscheduled BPP","metadata":{"audit":{"unroundedFinalPremium":50,"unroundedModifiedPremium":50,"unroundedTermPremium":50,"unroundedUnmodifiedPremium":50},"deductibleFactor":1,"finalPremium":50,"flatCharge":50,"modifiedPremium":50,"policyTermFactor":1,"prorateFactor":1,"scheduleModFactor":1,"termPremium":50,"theftDeductibleFactor":1,"theftExclusionFactor":1,"theftSublimitFactor":1,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","unmodifiedPremium":50,"whExclusionFactor":1}} +{"level":"debug","message":"Start rating for hardware and software","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for hardware and software","metadata":{"audit":{"unroundedFinalPremium":75,"unroundedModifiedPremium":75,"unroundedTermPremium":75,"unroundedUnmodifiedPremium":75},"deductibleFactor":1,"finalPremium":75,"flatCharge":75,"modifiedPremium":75,"policyTermFactor":1,"prorateFactor":1,"scheduleModFactor":1,"termPremium":75,"theftDeductibleFactor":1,"theftExclusionFactor":1,"theftSublimitFactor":1,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","unmodifiedPremium":75,"whExclusionFactor":1}} +{"level":"debug","message":"Start rating for lock and key","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for lock and key","metadata":{"audit":{"unroundedFinalPremium":25,"unroundedModifiedPremium":25,"unroundedTermPremium":25,"unroundedUnmodifiedPremium":25},"deductibleFactor":1,"finalPremium":25,"flatCharge":25,"modifiedPremium":25,"policyTermFactor":1,"prorateFactor":1,"scheduleModFactor":1,"termPremium":25,"theftDeductibleFactor":1,"theftExclusionFactor":1,"theftSublimitFactor":1,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","unmodifiedPremium":25,"whExclusionFactor":1}} +{"level":"debug","message":"Start rating for photography and videiography","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for photography and videiography","metadata":{"audit":{"unroundedFinalPremium":237,"unroundedModifiedPremium":237,"unroundedTermPremium":237,"unroundedUnmodifiedPremium":237},"deductibleFactor":1,"finalPremium":237,"flatCharge":237,"modifiedPremium":237,"policyTermFactor":1,"prorateFactor":1,"scheduleModFactor":1,"termPremium":237,"theftDeductibleFactor":1,"theftExclusionFactor":1,"theftSublimitFactor":1,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","unmodifiedPremium":237,"whExclusionFactor":1}} +{"level":"debug","message":"Start rating for unmanned aircraft (physical loss)","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for unmanned aircraft (physical loss)","metadata":{"audit":{"unroundedFinalPremium":125,"unroundedModifiedPremium":125,"unroundedTermPremium":125,"unroundedUnmodifiedPremium":125},"deductibleFactor":1,"finalPremium":125,"flatCharge":125,"modifiedPremium":125,"policyTermFactor":1,"prorateFactor":1,"scheduleModFactor":1,"termPremium":125,"theftDeductibleFactor":1,"theftExclusionFactor":1,"theftSublimitFactor":1,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","unmodifiedPremium":125,"whExclusionFactor":1}} +{"level":"debug","message":"Start rating for valuable papers","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for valuable papers","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for covered property","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for additionally covered property","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for contractors table","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Start rating for unscheduled contractors equipment","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for unscheduled contractors equipment","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unscheduled hardware and software","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for unscheduled hardware and software","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unscheduled small tools","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for unscheduled small tools","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for lock and key","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for lock and key","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unmanned aircraft (physical loss)","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for unmanned aircraft (physical loss)","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for valuable papers","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for valuable papers","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for installation","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for installation","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for covered property","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for additionally covered property","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for business items table","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Start rating for bailees customer","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Rating result for bailees customer","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for business income and extra expense table","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +{"level":"debug","message":"Finish rating - final premium","metadata":{"finalPremium":2225,"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch turnOnEmfileProbe from SSM, falling back to default: true AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/turnOnEmfileProbe because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.disconnect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:147:10) + at async Promise.allSettled (index 0) + at Object.close (/home/circleci/project/test/utils/context/createTestContext.ts:80:22) + at Object. (/home/circleci/project/test/testing/foxden_quoting/US/getOhioQuote.munich.test.ts:20:3) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '9b9c5de3-13d7-4ab1-a8ef-b0ef9d7b8ee1', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   78 | // note: awaiting on Promise.allSettled doesn't throw Errors, so we're +  79 | // closing the foreign services with best efforts (i.e. it doesn't matter if one fails) + > 80 | const promises = await Promise.allSettled(closables.map((fn) => fn())); +  | ^ +  81 | const errors = promises.reduce((acc, promise) => { +  82 | if (promise.status === 'rejected') { +  83 | acc.push(promise.reason); + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.disconnect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:147:10) + at async Promise.allSettled (index 0) + at Object.close (test/utils/context/createTestContext.ts:80:22) + at Object. (test/testing/foxden_quoting/US/getOhioQuote.munich.test.ts:20:3) + + console.log + Using default value true for turnOnEmfileProbe + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + MongoDB connection pool closed + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + [EMFILE investigation]: Ending investigation in undefined for MongoDBConnection... + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + *** no leak emfiles found + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + +{"level":"debug","message":"Everything in the Context are closed properly","metadata":{"transactionId":"33f0e677-8c3b-4fe7-b99e-98cd274c5906"}} +PASS integration test/testing/foxden_quoting/US/getOhioQuote.munich.test.ts + geOhiotQuote + ✓ basic test (585 ms) + +PASS integration test/testing/utils/getCsvPath.test.ts + getCsvPath + ✓ returns the correct path when the file exists in the state/carrierPartner directory (2 ms) + ✓ returns the correct path when the file exists in the state/common directory (1 ms) + ✓ throws an error when the file does not exist in either directory (6 ms) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch maxPoolSize from SSM, falling back to default: 10 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/maxPoolSize because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:91:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/getProfessionsErrors.test.ts:9:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '7d450a44-14b8-4958-8054-5a93c3be9d63', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:91:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/getProfessionsErrors.test.ts:9:15) + + console.log + Using default value 10 for maxPoolSize + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch maxIdleTimeMS from SSM, falling back to default: 10000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/maxIdleTimeMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:95:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/getProfessionsErrors.test.ts:9:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '96d21bce-f20b-4b58-b799-b21960c00965', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:95:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/getProfessionsErrors.test.ts:9:15) + + console.log + Using default value 10000 for maxIdleTimeMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch serverSelectionTimeoutMS from SSM, falling back to default: 3000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/serverSelectionTimeoutMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:99:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/getProfessionsErrors.test.ts:9:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '65e0ff90-a791-47ad-9200-97662f9adfc0', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:99:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/getProfessionsErrors.test.ts:9:15) + + console.log + Using default value 3000 for serverSelectionTimeoutMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch heartbeatFrequencyMS from SSM, falling back to default: 5000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/heartbeatFrequencyMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:103:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/getProfessionsErrors.test.ts:9:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '80fbc8cc-7abc-4c84-9181-b72227cbfdd9', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:103:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/getProfessionsErrors.test.ts:9:15) + + console.log + Using default value 5000 for heartbeatFrequencyMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch turnOnEmfileProbe from SSM, falling back to default: true AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/turnOnEmfileProbe because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:107:10) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/getProfessionsErrors.test.ts:9:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: 'c68de9d5-10bc-42da-83b3-0ac17d3de70c', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:107:10) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/getProfessionsErrors.test.ts:9:15) + + console.log + Using default value true for turnOnEmfileProbe + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + MongoDB connection options: { + "maxPoolSize": 10, + "minPoolSize": 1, + "maxIdleTimeMS": 10000, + "serverSelectionTimeoutMS": 3000, + "heartbeatFrequencyMS": 5000 + } + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + [EMFILE investigation] Starting investigation in undefined for MongoDBConnection... + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + *** new process, emfiles count: 41 + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + Connected to MongoDB (maxPoolSize: 10, maxIdleTimeMS: 10000) + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch turnOnEmfileProbe from SSM, falling back to default: true AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/turnOnEmfileProbe because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.disconnect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:147:10) + at async Promise.allSettled (index 0) + at Object.close (/home/circleci/project/test/utils/context/createTestContext.ts:80:22) + at Object. (/home/circleci/project/test/testing/amtrust/getProfessionsErrors.test.ts:14:5) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: 'a7a379c5-1d43-4d1f-bb41-2d4acaf01b5b', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   78 | // note: awaiting on Promise.allSettled doesn't throw Errors, so we're +  79 | // closing the foreign services with best efforts (i.e. it doesn't matter if one fails) + > 80 | const promises = await Promise.allSettled(closables.map((fn) => fn())); +  | ^ +  81 | const errors = promises.reduce((acc, promise) => { +  82 | if (promise.status === 'rejected') { +  83 | acc.push(promise.reason); + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.disconnect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:147:10) + at async Promise.allSettled (index 0) + at Object.close (test/utils/context/createTestContext.ts:80:22) + at Object. (test/testing/amtrust/getProfessionsErrors.test.ts:14:5) + + console.log + Using default value true for turnOnEmfileProbe + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + MongoDB connection pool closed + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + [EMFILE investigation]: Ending investigation in undefined for MongoDBConnection... + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + *** emfiles count: 42, leaks: 1 + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + +{"level":"debug","message":"Everything in the Context are closed properly","metadata":{"transactionId":"50f380a7-dee8-4668-b78e-2aeef88b835a"}} +PASS integration test/testing/amtrust/getProfessionsErrors.test.ts + Amtrust API Errors getProfessions + ✓ getProfessions Timeout Request (117 ms) + ✓ getProfessions Status Error 404 (131 ms) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch maxPoolSize from SSM, falling back to default: 10 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/maxPoolSize because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:91:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/checkFeinErrors.test.ts:9:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: 'e27aab39-d3dd-4b02-a60e-fd7a5aaa50bd', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:91:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/checkFeinErrors.test.ts:9:15) + + console.log + Using default value 10 for maxPoolSize + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch maxIdleTimeMS from SSM, falling back to default: 10000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/maxIdleTimeMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:95:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/checkFeinErrors.test.ts:9:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '667e1f85-4685-4720-85f5-0f25ff891a0b', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:95:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/checkFeinErrors.test.ts:9:15) + + console.log + Using default value 10000 for maxIdleTimeMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch serverSelectionTimeoutMS from SSM, falling back to default: 3000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/serverSelectionTimeoutMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:99:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/checkFeinErrors.test.ts:9:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '440765f5-d24d-4120-b14e-22475bcdbab0', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:99:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/checkFeinErrors.test.ts:9:15) + + console.log + Using default value 3000 for serverSelectionTimeoutMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch heartbeatFrequencyMS from SSM, falling back to default: 5000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/heartbeatFrequencyMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:103:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/checkFeinErrors.test.ts:9:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '104a9be3-ee0c-4854-b54b-4970e8932117', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:103:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/checkFeinErrors.test.ts:9:15) + + console.log + Using default value 5000 for heartbeatFrequencyMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch turnOnEmfileProbe from SSM, falling back to default: true AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/turnOnEmfileProbe because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:107:10) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/checkFeinErrors.test.ts:9:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '66eda02c-6bfe-4b78-99a6-955679242160', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:107:10) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/checkFeinErrors.test.ts:9:15) + + console.log + Using default value true for turnOnEmfileProbe + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + MongoDB connection options: { + "maxPoolSize": 10, + "minPoolSize": 1, + "maxIdleTimeMS": 10000, + "serverSelectionTimeoutMS": 3000, + "heartbeatFrequencyMS": 5000 + } + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + [EMFILE investigation] Starting investigation in undefined for MongoDBConnection... + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + *** new process, emfiles count: 42 + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + Connected to MongoDB (maxPoolSize: 10, maxIdleTimeMS: 10000) + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch turnOnEmfileProbe from SSM, falling back to default: true AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/turnOnEmfileProbe because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.disconnect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:147:10) + at async Promise.allSettled (index 0) + at Object.close (/home/circleci/project/test/utils/context/createTestContext.ts:80:22) + at Object. (/home/circleci/project/test/testing/amtrust/checkFeinErrors.test.ts:14:5) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: 'b30c0b6e-7e6c-443a-a7ab-9b114fa1fd27', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   78 | // note: awaiting on Promise.allSettled doesn't throw Errors, so we're +  79 | // closing the foreign services with best efforts (i.e. it doesn't matter if one fails) + > 80 | const promises = await Promise.allSettled(closables.map((fn) => fn())); +  | ^ +  81 | const errors = promises.reduce((acc, promise) => { +  82 | if (promise.status === 'rejected') { +  83 | acc.push(promise.reason); + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.disconnect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:147:10) + at async Promise.allSettled (index 0) + at Object.close (test/utils/context/createTestContext.ts:80:22) + at Object. (test/testing/amtrust/checkFeinErrors.test.ts:14:5) + + console.log + Using default value true for turnOnEmfileProbe + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + MongoDB connection pool closed + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + [EMFILE investigation]: Ending investigation in undefined for MongoDBConnection... + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + *** no leak emfiles found + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + +{"level":"debug","message":"Everything in the Context are closed properly","metadata":{"transactionId":"447c890f-4b44-4df1-bc65-2dc6a7636315"}} +PASS integration test/testing/amtrust/checkFeinErrors.test.ts + Amtrust API Errors checkFein + ✓ checkFein Timeout Request (79 ms) + ✓ checkFein Status Error 404 (135 ms) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch maxPoolSize from SSM, falling back to default: 10 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/maxPoolSize because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:91:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/getProfessions.test.ts:13:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: 'f63c3c2e-4674-478e-adb8-70aa20003f85', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:91:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/getProfessions.test.ts:13:15) + + console.log + Using default value 10 for maxPoolSize + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch maxIdleTimeMS from SSM, falling back to default: 10000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/maxIdleTimeMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:95:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/getProfessions.test.ts:13:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: 'bb64c081-cbe6-4534-b03a-dbe58d776075', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:95:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/getProfessions.test.ts:13:15) + + console.log + Using default value 10000 for maxIdleTimeMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch serverSelectionTimeoutMS from SSM, falling back to default: 3000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/serverSelectionTimeoutMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:99:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/getProfessions.test.ts:13:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: 'e93ec11a-62b8-4a48-8cdf-8e4becb0c4ed', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:99:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/getProfessions.test.ts:13:15) + + console.log + Using default value 3000 for serverSelectionTimeoutMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch heartbeatFrequencyMS from SSM, falling back to default: 5000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/heartbeatFrequencyMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:103:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/getProfessions.test.ts:13:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '112338fa-86a8-4548-9c58-b2f9becf2437', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:103:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/getProfessions.test.ts:13:15) + + console.log + Using default value 5000 for heartbeatFrequencyMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch turnOnEmfileProbe from SSM, falling back to default: true AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/turnOnEmfileProbe because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:107:10) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/getProfessions.test.ts:13:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: 'ab614699-7bae-4fe5-b0eb-68a573763987', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:107:10) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/getProfessions.test.ts:13:15) + + console.log + Using default value true for turnOnEmfileProbe + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + MongoDB connection options: { + "maxPoolSize": 10, + "minPoolSize": 1, + "maxIdleTimeMS": 10000, + "serverSelectionTimeoutMS": 3000, + "heartbeatFrequencyMS": 5000 + } + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + [EMFILE investigation] Starting investigation in undefined for MongoDBConnection... + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + *** new process, emfiles count: 41 + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + Connected to MongoDB (maxPoolSize: 10, maxIdleTimeMS: 10000) + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +{"level":"debug","message":"Downloaded class codes","metadata":{"length":1,"transactionId":"a24159b7-79e3-424d-9a83-d0e76490c8e6"}} +{"level":"debug","message":"Filtered out duplicated class codes","metadata":{"newLength":1,"transactionId":"a24159b7-79e3-424d-9a83-d0e76490c8e6"}} +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch turnOnEmfileProbe from SSM, falling back to default: true AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/turnOnEmfileProbe because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.disconnect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:147:10) + at async Promise.allSettled (index 0) + at Object.close (/home/circleci/project/test/utils/context/createTestContext.ts:80:22) + at Object. (/home/circleci/project/test/testing/amtrust/getProfessions.test.ts:18:5) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: 'cbb69e40-f2ad-4208-82a9-681e8aa4753f', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   78 | // note: awaiting on Promise.allSettled doesn't throw Errors, so we're +  79 | // closing the foreign services with best efforts (i.e. it doesn't matter if one fails) + > 80 | const promises = await Promise.allSettled(closables.map((fn) => fn())); +  | ^ +  81 | const errors = promises.reduce((acc, promise) => { +  82 | if (promise.status === 'rejected') { +  83 | acc.push(promise.reason); + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.disconnect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:147:10) + at async Promise.allSettled (index 0) + at Object.close (test/utils/context/createTestContext.ts:80:22) + at Object. (test/testing/amtrust/getProfessions.test.ts:18:5) + + console.log + Using default value true for turnOnEmfileProbe + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + MongoDB connection pool closed + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + [EMFILE investigation]: Ending investigation in undefined for MongoDBConnection... + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + *** no leak emfiles found + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + +{"level":"debug","message":"Everything in the Context are closed properly","metadata":{"transactionId":"a24159b7-79e3-424d-9a83-d0e76490c8e6"}} +PASS integration test/testing/amtrust/getProfessions.test.ts + Amtrust API getProfessions + ✓ getProfessions Successful Request (8 ms) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch maxPoolSize from SSM, falling back to default: 10 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/maxPoolSize because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:91:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/foxden_quoting/Canada/calPremium_v2.1.0.test.ts:9:13) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: 'cc08156d-4420-46c0-91be-a4c120720b67', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:91:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/foxden_quoting/Canada/calPremium_v2.1.0.test.ts:9:13) + + console.log + Using default value 10 for maxPoolSize + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch maxIdleTimeMS from SSM, falling back to default: 10000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/maxIdleTimeMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:95:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/foxden_quoting/Canada/calPremium_v2.1.0.test.ts:9:13) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '0c9ba5ac-ff5b-447e-aa20-be34263cce4d', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:95:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/foxden_quoting/Canada/calPremium_v2.1.0.test.ts:9:13) + + console.log + Using default value 10000 for maxIdleTimeMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch serverSelectionTimeoutMS from SSM, falling back to default: 3000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/serverSelectionTimeoutMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:99:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/foxden_quoting/Canada/calPremium_v2.1.0.test.ts:9:13) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: 'bac9e226-0f40-40dc-9a3b-0dde70cebe5d', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:99:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/foxden_quoting/Canada/calPremium_v2.1.0.test.ts:9:13) + + console.log + Using default value 3000 for serverSelectionTimeoutMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch heartbeatFrequencyMS from SSM, falling back to default: 5000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/heartbeatFrequencyMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:103:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/foxden_quoting/Canada/calPremium_v2.1.0.test.ts:9:13) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: 'b2ba461e-188b-4689-8a6b-5f75b53f0042', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:103:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/foxden_quoting/Canada/calPremium_v2.1.0.test.ts:9:13) + + console.log + Using default value 5000 for heartbeatFrequencyMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch turnOnEmfileProbe from SSM, falling back to default: true AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/turnOnEmfileProbe because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:107:10) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/foxden_quoting/Canada/calPremium_v2.1.0.test.ts:9:13) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: 'aa326815-5409-4363-ac39-173b3294a313', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:107:10) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/foxden_quoting/Canada/calPremium_v2.1.0.test.ts:9:13) + + console.log + Using default value true for turnOnEmfileProbe + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + MongoDB connection options: { + "maxPoolSize": 10, + "minPoolSize": 1, + "maxIdleTimeMS": 10000, + "serverSelectionTimeoutMS": 3000, + "heartbeatFrequencyMS": 5000 + } + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + [EMFILE investigation] Starting investigation in undefined for MongoDBConnection... + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + *** new process, emfiles count: 42 + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + Connected to MongoDB (maxPoolSize: 10, maxIdleTimeMS: 10000) + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +{"level":"debug","message":"Start table lookup for filling data","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Filling data input","metadata":{"grossSales":6675,"numOfPayrollOpenTextOfficers":2,"numOfPayrollOwners":1,"payroll":167883,"policyEffectiveDate":"2021-04-27T00:00:00.000Z","policyExpirationDate":"2022-04-27T00:00:00.000Z","policyTermLength":1,"postalCode":"L3J 0B5","professionList":["BusinessInformation_100_Profession_9219_1820001_WORLD_EN"],"transactionEffectiveDate":"2021-04-27T00:00:00.000Z","transactionExpirationDate":"2022-04-27T00:00:00.000Z","transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","workPercentageData":{"commercialWorkPercentage":0,"exteriorWorkPercentage":0,"interiorWorkPercentage":0,"residentialWorkPercentage":0}}} +{"level":"debug","message":"Filling data output","metadata":{"abuseAndMolestationHazardGroup":"H","exceptionRules":[],"isoData":[{"abuseAndMolestationHGRank":2,"abuseAndMolestationHazardGroup":"H","exposures":6675,"ilfTable":"2-","ilfTablePrem":"2","ilfTableProd":"-","isoClassCode":"18200F","isoClassDescription":"Fitness Instructors","minimumPremium":200,"minimumPremiumGroup":"Light Personal Services","premiumBase":"Gross Sales","scheduleModFactor":1}],"isoMapper":{"18200F":["18200F"]},"minimumPremium":200,"policyLevelRevenue":6675,"policyTermFactor":1,"prorateFactor":1,"territory":"3501","transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for gl table","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for base CGL Prem","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for base CGL Prem of iso 18200F","metadata":{"LCM":1.613,"adjustedLimitFactor":1.421,"audit":{"unroundedBasicLimitRate":3.0646999999999998,"unroundedFinalPremium":29,"unroundedModifiedPremium":29.07,"unroundedRotableExposures":6.675,"unroundedUnmodifiedPremium":29.069625000000002,"unroundedUnmodifiedRate":4.355365},"basicLimitRate":3.065,"classFactor":1,"deductibleFactor":0,"exposures":6675,"finalPremium":29,"ilf":1.421,"lossCostFactor":1.9,"modifiedPremium":29,"policyTermFactor":1,"premiumBaseAdjustment":0.001,"prorateFactor":1,"rotableExposures":6.675,"scheduleModFactor":1,"territoryFactor":1,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":29.07,"unmodifiedRate":4.355}} +{"level":"debug","message":"Start rating for base CGL Prod","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for base CGL Prod","metadata":{"LCM":1.613,"adjustedLimitFactor":0,"audit":{"unroundedBasicLimitRate":0,"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedRotableExposures":6.675,"unroundedUnmodifiedPremium":0,"unroundedUnmodifiedRate":0},"basicLimitRate":0,"classFactor":1,"deductibleFactor":0,"exposures":6675,"finalPremium":0,"ilf":0,"lossCostFactor":0,"modifiedPremium":0,"policyTermFactor":1,"premiumBaseAdjustment":0.001,"prorateFactor":1,"rotableExposures":6.675,"scheduleModFactor":1,"territoryFactor":1,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"unmodifiedRate":0}} +{"level":"debug","message":"Start rating for cgl additional limits","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for cgl additional limits","metadata":{"audit":{"unroundedBasicLimitsUnmodifiedPremium":20.458875,"unroundedMedicalPaymentsFinalPremium":0,"unroundedMedicalPaymentsModifiedPremium":0.246,"unroundedMedicalPaymentsUnmodifiedPremium":0.245508,"unroundedTenantLegalLiabilityFinalPremium":2,"unroundedTenantLegalLiabilityModifiedPremium":1.903,"unroundedTenantLegalLiabilityUnmodifiedPremium":1.902687},"basicLimitsUnmodifiedPremium":20.459,"medicalPaymentsFinalPremium":0,"medicalPaymentsModifiedPremium":0,"medicalPaymentsRate":0.012,"medicalPaymentsUnmodifiedPremium":0.246,"prorateFactor":1,"scheduleModFactor":1,"tenantLegalLiabilityFinalPremium":2,"tenantLegalLiabilityModifiedPremium":2,"tenantLegalLiabilityRate":0.093,"tenantLegalLiabilityUnmodifiedPremium":1.903,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for cgl minimum to add","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for cgl minimum to add","metadata":{"audit":{"unroundedFinalPremium":169,"unroundedTermPremium":169},"finalPremium":169,"minimumPremium":200,"prorateFactor":1,"sum":31,"termPremium":169,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for pollution liability","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for pollution liability","metadata":{"audit":{"unroundedFinalPremium":30,"unroundedTermPremium":30},"finalPremium":30,"flatCharge":30,"prorateFactor":1,"termPremium":30,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for unmanned aircraft","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for unmanned aircraft","metadata":{"audit":{"unroundedFinalPremium":305,"unroundedTermPremium":305},"finalPremium":305,"flatCharge":305,"prorateFactor":1,"termPremium":305,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for Miscellaneous EO","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for Miscellaneous EO","metadata":{"additionalPremiumToMeetMinimum":63.812,"audit":{"unroundedFinalPremium":65,"unroundedModifiedPremium":1.188,"unroundedRevenue":6.675,"unroundedTermPremium":65,"unroundedUnmodifiedPremium":1.1881499999999998},"finalPremium":65,"modifiedPremium":1.188,"prorateFactor":1,"rate":0.178,"revenue":6.675,"scheduleModFactor":1,"termPremium":65,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":1.188}} +{"level":"debug","message":"Start rating for Contractors EO","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for Contractors EO","metadata":{"audit":{"unroundedFinalPremium":67,"unroundedTermPremium":67},"finalPremium":67,"flatCharge":67,"prorateFactor":1,"termPremium":67,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for abuse and molestation coverage","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for abuse and molestation coverage","metadata":{"audit":{"unroundedFinalPremium":150,"unroundedTermPremium":150},"finalPremium":150,"flatCharge":150,"prorateFactor":1,"termPremium":150,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Final gl premium","metadata":{"glPremium":817,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for IM table","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for business items table","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for unscheduled BPP","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for unscheduled BPP","metadata":{"audit":{"unroundedFinalPremium":33,"unroundedModifiedPremium":32.984,"unroundedUnmodifiedPremium":32.984457187500006},"deductibleFactor":1.05,"finalPremium":33,"flatCharge":51,"modifiedPremium":33,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0.988,"theftExclusionFactor":0.75,"theftSublimitFactor":0.875,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":32.984,"whExclusionFactor":0.95}} +{"level":"debug","message":"Start rating for hardware and software","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for hardware and software","metadata":{"audit":{"unroundedFinalPremium":92,"unroundedModifiedPremium":91.942,"unroundedUnmodifiedPremium":91.9418183775},"deductibleFactor":1.05,"finalPremium":92,"flatCharge":153,"modifiedPremium":92,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0.988,"theftExclusionFactor":0.75,"theftSublimitFactor":0.813,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":91.942,"whExclusionFactor":0.95}} +{"level":"debug","message":"Start rating for lock and key","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for lock and key","metadata":{"audit":{"unroundedFinalPremium":4,"unroundedModifiedPremium":3.696,"unroundedUnmodifiedPremium":3.6957375},"deductibleFactor":1.05,"finalPremium":4,"flatCharge":5,"modifiedPremium":4,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0.988,"theftExclusionFactor":0.75,"theftSublimitFactor":1,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":3.696,"whExclusionFactor":0.95}} +{"level":"debug","message":"Start rating for photography and videiography","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for photography and videiography","metadata":{"audit":{"unroundedFinalPremium":158,"unroundedModifiedPremium":158.455,"unroundedUnmodifiedPremium":158.45474531250002},"deductibleFactor":1.05,"finalPremium":158,"flatCharge":245,"modifiedPremium":158,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0.988,"theftExclusionFactor":0.75,"theftSublimitFactor":0.875,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":158.455,"whExclusionFactor":0.95}} +{"level":"debug","message":"Start rating for valuable papers","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for valuable papers","metadata":{"audit":{"unroundedFinalPremium":3,"unroundedModifiedPremium":2.957,"unroundedUnmodifiedPremium":2.9565900000000003},"deductibleFactor":1.05,"finalPremium":3,"flatCharge":4,"modifiedPremium":3,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0.988,"theftExclusionFactor":0.75,"theftSublimitFactor":1,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":2.957,"whExclusionFactor":0.95}} +{"level":"debug","message":"Start rating for unmanned aircraft (physical loss)","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for unmanned aircraft (physical loss)","metadata":{"audit":{"unroundedFinalPremium":47,"unroundedModifiedPremium":47.305,"unroundedUnmodifiedPremium":47.305440000000004},"deductibleFactor":1.05,"finalPremium":47,"flatCharge":64,"modifiedPremium":47,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0.988,"theftExclusionFactor":0.75,"theftSublimitFactor":1,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":47.305,"whExclusionFactor":0.95}} +{"level":"debug","message":"Start rating for covered property","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for additionally covered property","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for contractors table","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for unscheduled contractors equipment","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for unscheduled contractors equipment","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unscheduled hardware and software","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for unscheduled hardware and software","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unscheduled small tools","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for unscheduled small tools","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for lock and key","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for lock and key","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for valuable papers","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for valuable papers","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unmanned aircraft (physical loss)","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for unmanned aircraft (physical loss)","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for installation","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for installation","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for covered property","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for additionally covered property","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for business items table","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for bailees customer","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for bailees customer","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for business income and extra expense table","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Final premium for IM table","metadata":{"imPremium":337,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Finish rating - final premium","metadata":{"finalPremium":1154,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start table lookup for filling data","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} + console.warn + Could not find Territory, set to default + +   222 | .get('Territory'); +  223 | } catch { + > 224 | console.warn('Could not find Territory, set to default'); +  | ^ +  225 | } +  226 | +  227 | // minimum premium is max of all class codes + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at warn (src/services/quoting/Canada/fillData.ts:224:13) + at calPremium (src/services/quoting/Canada/calPremium.ts:25:29) + at Object. (test/testing/foxden_quoting/Canada/calPremium_v2.1.0.test.ts:30:50) + +{"level":"debug","message":"Filling data input","metadata":{"grossSales":6675,"numOfPayrollOpenTextOfficers":2,"numOfPayrollOwners":1,"payroll":167883,"policyEffectiveDate":"2021-04-27T00:00:00.000Z","policyExpirationDate":"2022-04-27T00:00:00.000Z","policyTermLength":1,"postalCode":"L3W 0G1","professionList":["BusinessInformation_100_Profession_9219_1820001_WORLD_EN"],"transactionEffectiveDate":"2021-04-27T00:00:00.000Z","transactionExpirationDate":"2022-04-27T00:00:00.000Z","transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","workPercentageData":{"commercialWorkPercentage":0,"exteriorWorkPercentage":0,"interiorWorkPercentage":0,"residentialWorkPercentage":0}}} +{"level":"debug","message":"Filling data output","metadata":{"abuseAndMolestationHazardGroup":"H","exceptionRules":[],"isoData":[{"abuseAndMolestationHGRank":2,"abuseAndMolestationHazardGroup":"H","exposures":6675,"ilfTable":"2-","ilfTablePrem":"2","ilfTableProd":"-","isoClassCode":"18200F","isoClassDescription":"Fitness Instructors","minimumPremium":200,"minimumPremiumGroup":"Light Personal Services","premiumBase":"Gross Sales","scheduleModFactor":1}],"isoMapper":{"18200F":["18200F"]},"minimumPremium":200,"policyLevelRevenue":6675,"policyTermFactor":1,"prorateFactor":1,"territory":"","transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for gl table","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for base CGL Prem","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for base CGL Prem of iso 18200F","metadata":{"LCM":1.613,"adjustedLimitFactor":1.421,"audit":{"unroundedBasicLimitRate":3.0646999999999998,"unroundedFinalPremium":29,"unroundedModifiedPremium":29.07,"unroundedRotableExposures":6.675,"unroundedUnmodifiedPremium":29.069625000000002,"unroundedUnmodifiedRate":4.355365},"basicLimitRate":3.065,"classFactor":1,"deductibleFactor":0,"exposures":6675,"finalPremium":29,"ilf":1.421,"lossCostFactor":1.9,"modifiedPremium":29,"policyTermFactor":1,"premiumBaseAdjustment":0.001,"prorateFactor":1,"rotableExposures":6.675,"scheduleModFactor":1,"territoryFactor":1,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":29.07,"unmodifiedRate":4.355}} +{"level":"debug","message":"Start rating for base CGL Prod","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for base CGL Prod","metadata":{"LCM":1.613,"adjustedLimitFactor":0,"audit":{"unroundedBasicLimitRate":0,"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedRotableExposures":6.675,"unroundedUnmodifiedPremium":0,"unroundedUnmodifiedRate":0},"basicLimitRate":0,"classFactor":1,"deductibleFactor":0,"exposures":6675,"finalPremium":0,"ilf":0,"lossCostFactor":0,"modifiedPremium":0,"policyTermFactor":1,"premiumBaseAdjustment":0.001,"prorateFactor":1,"rotableExposures":6.675,"scheduleModFactor":1,"territoryFactor":1,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"unmodifiedRate":0}} +{"level":"debug","message":"Start rating for cgl additional limits","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for cgl additional limits","metadata":{"audit":{"unroundedBasicLimitsUnmodifiedPremium":20.458875,"unroundedMedicalPaymentsFinalPremium":0,"unroundedMedicalPaymentsModifiedPremium":0.246,"unroundedMedicalPaymentsUnmodifiedPremium":0.245508,"unroundedTenantLegalLiabilityFinalPremium":2,"unroundedTenantLegalLiabilityModifiedPremium":1.903,"unroundedTenantLegalLiabilityUnmodifiedPremium":1.902687},"basicLimitsUnmodifiedPremium":20.459,"medicalPaymentsFinalPremium":0,"medicalPaymentsModifiedPremium":0,"medicalPaymentsRate":0.012,"medicalPaymentsUnmodifiedPremium":0.246,"prorateFactor":1,"scheduleModFactor":1,"tenantLegalLiabilityFinalPremium":2,"tenantLegalLiabilityModifiedPremium":2,"tenantLegalLiabilityRate":0.093,"tenantLegalLiabilityUnmodifiedPremium":1.903,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for cgl minimum to add","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for cgl minimum to add","metadata":{"audit":{"unroundedFinalPremium":169,"unroundedTermPremium":169},"finalPremium":169,"minimumPremium":200,"prorateFactor":1,"sum":31,"termPremium":169,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for pollution liability","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for pollution liability","metadata":{"audit":{"unroundedFinalPremium":30,"unroundedTermPremium":30},"finalPremium":30,"flatCharge":30,"prorateFactor":1,"termPremium":30,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for unmanned aircraft","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for unmanned aircraft","metadata":{"audit":{"unroundedFinalPremium":305,"unroundedTermPremium":305},"finalPremium":305,"flatCharge":305,"prorateFactor":1,"termPremium":305,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for Miscellaneous EO","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for Miscellaneous EO","metadata":{"additionalPremiumToMeetMinimum":63.812,"audit":{"unroundedFinalPremium":65,"unroundedModifiedPremium":1.188,"unroundedRevenue":6.675,"unroundedTermPremium":65,"unroundedUnmodifiedPremium":1.1881499999999998},"finalPremium":65,"modifiedPremium":1.188,"prorateFactor":1,"rate":0.178,"revenue":6.675,"scheduleModFactor":1,"termPremium":65,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":1.188}} +{"level":"debug","message":"Start rating for Contractors EO","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for Contractors EO","metadata":{"audit":{"unroundedFinalPremium":67,"unroundedTermPremium":67},"finalPremium":67,"flatCharge":67,"prorateFactor":1,"termPremium":67,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for abuse and molestation coverage","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for abuse and molestation coverage","metadata":{"audit":{"unroundedFinalPremium":150,"unroundedTermPremium":150},"finalPremium":150,"flatCharge":150,"prorateFactor":1,"termPremium":150,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Final gl premium","metadata":{"glPremium":817,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for IM table","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for business items table","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for unscheduled BPP","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for unscheduled BPP","metadata":{"audit":{"unroundedFinalPremium":33,"unroundedModifiedPremium":32.984,"unroundedUnmodifiedPremium":32.984457187500006},"deductibleFactor":1.05,"finalPremium":33,"flatCharge":51,"modifiedPremium":33,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0.988,"theftExclusionFactor":0.75,"theftSublimitFactor":0.875,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":32.984,"whExclusionFactor":0.95}} +{"level":"debug","message":"Start rating for hardware and software","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for hardware and software","metadata":{"audit":{"unroundedFinalPremium":92,"unroundedModifiedPremium":91.942,"unroundedUnmodifiedPremium":91.9418183775},"deductibleFactor":1.05,"finalPremium":92,"flatCharge":153,"modifiedPremium":92,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0.988,"theftExclusionFactor":0.75,"theftSublimitFactor":0.813,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":91.942,"whExclusionFactor":0.95}} +{"level":"debug","message":"Start rating for lock and key","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for lock and key","metadata":{"audit":{"unroundedFinalPremium":4,"unroundedModifiedPremium":3.696,"unroundedUnmodifiedPremium":3.6957375},"deductibleFactor":1.05,"finalPremium":4,"flatCharge":5,"modifiedPremium":4,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0.988,"theftExclusionFactor":0.75,"theftSublimitFactor":1,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":3.696,"whExclusionFactor":0.95}} +{"level":"debug","message":"Start rating for photography and videiography","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for photography and videiography","metadata":{"audit":{"unroundedFinalPremium":158,"unroundedModifiedPremium":158.455,"unroundedUnmodifiedPremium":158.45474531250002},"deductibleFactor":1.05,"finalPremium":158,"flatCharge":245,"modifiedPremium":158,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0.988,"theftExclusionFactor":0.75,"theftSublimitFactor":0.875,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":158.455,"whExclusionFactor":0.95}} +{"level":"debug","message":"Start rating for valuable papers","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for valuable papers","metadata":{"audit":{"unroundedFinalPremium":3,"unroundedModifiedPremium":2.957,"unroundedUnmodifiedPremium":2.9565900000000003},"deductibleFactor":1.05,"finalPremium":3,"flatCharge":4,"modifiedPremium":3,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0.988,"theftExclusionFactor":0.75,"theftSublimitFactor":1,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":2.957,"whExclusionFactor":0.95}} +{"level":"debug","message":"Start rating for unmanned aircraft (physical loss)","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for unmanned aircraft (physical loss)","metadata":{"audit":{"unroundedFinalPremium":47,"unroundedModifiedPremium":47.305,"unroundedUnmodifiedPremium":47.305440000000004},"deductibleFactor":1.05,"finalPremium":47,"flatCharge":64,"modifiedPremium":47,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0.988,"theftExclusionFactor":0.75,"theftSublimitFactor":1,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":47.305,"whExclusionFactor":0.95}} +{"level":"debug","message":"Start rating for covered property","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for additionally covered property","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for contractors table","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for unscheduled contractors equipment","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for unscheduled contractors equipment","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unscheduled hardware and software","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for unscheduled hardware and software","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unscheduled small tools","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for unscheduled small tools","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for lock and key","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for lock and key","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for valuable papers","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for valuable papers","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unmanned aircraft (physical loss)","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for unmanned aircraft (physical loss)","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for installation","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for installation","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for covered property","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for additionally covered property","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for business items table","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Start rating for bailees customer","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Rating result for bailees customer","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for business income and extra expense table","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Final premium for IM table","metadata":{"imPremium":337,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +{"level":"debug","message":"Finish rating - final premium","metadata":{"finalPremium":1154,"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch turnOnEmfileProbe from SSM, falling back to default: true AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/turnOnEmfileProbe because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.disconnect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:147:10) + at async Promise.allSettled (index 0) + at Object.close (/home/circleci/project/test/utils/context/createTestContext.ts:80:22) + at Object. (/home/circleci/project/test/testing/foxden_quoting/Canada/calPremium_v2.1.0.test.ts:12:3) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: 'be6f36f1-3c5c-4dac-b614-3712be21eeb9', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   78 | // note: awaiting on Promise.allSettled doesn't throw Errors, so we're +  79 | // closing the foreign services with best efforts (i.e. it doesn't matter if one fails) + > 80 | const promises = await Promise.allSettled(closables.map((fn) => fn())); +  | ^ +  81 | const errors = promises.reduce((acc, promise) => { +  82 | if (promise.status === 'rejected') { +  83 | acc.push(promise.reason); + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.disconnect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:147:10) + at async Promise.allSettled (index 0) + at Object.close (test/utils/context/createTestContext.ts:80:22) + at Object. (test/testing/foxden_quoting/Canada/calPremium_v2.1.0.test.ts:12:3) + + console.log + Using default value true for turnOnEmfileProbe + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + MongoDB connection pool closed + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + [EMFILE investigation]: Ending investigation in undefined for MongoDBConnection... + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + *** no leak emfiles found + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + +{"level":"debug","message":"Everything in the Context are closed properly","metadata":{"transactionId":"f119b9a1-03e3-47ec-8c2f-f913725b2766"}} +PASS integration test/testing/foxden_quoting/Canada/calPremium_v2.1.0.test.ts + calGLPremium + ✓ simple test (379 ms) + ✓ quotable for new postal code thats not in list of territories (289 ms) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +PASS integration test/testing/amtrust/updateQuoteErrors.test.ts + Amtrust API Errors updateQuote + ✓ updateQuote Timeout Request (90 ms) + ✓ updateQuote Status Error 404 (128 ms) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch maxPoolSize from SSM, falling back to default: 10 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/maxPoolSize because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:91:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/foxden_quoting/getNewAnswers.test.ts:6:21) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '01488422-b58e-4230-a679-c64ce4be48dd', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:91:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/foxden_quoting/getNewAnswers.test.ts:6:21) + + console.log + Using default value 10 for maxPoolSize + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch maxIdleTimeMS from SSM, falling back to default: 10000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/maxIdleTimeMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:95:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/foxden_quoting/getNewAnswers.test.ts:6:21) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '4528780e-ce59-45f7-add1-e33258f77e99', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:95:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/foxden_quoting/getNewAnswers.test.ts:6:21) + + console.log + Using default value 10000 for maxIdleTimeMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch serverSelectionTimeoutMS from SSM, falling back to default: 3000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/serverSelectionTimeoutMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:99:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/foxden_quoting/getNewAnswers.test.ts:6:21) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '82734927-3512-4143-8d01-22746996c6b2', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:99:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/foxden_quoting/getNewAnswers.test.ts:6:21) + + console.log + Using default value 3000 for serverSelectionTimeoutMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch heartbeatFrequencyMS from SSM, falling back to default: 5000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/heartbeatFrequencyMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:103:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/foxden_quoting/getNewAnswers.test.ts:6:21) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: 'a68a1ae3-c926-4c95-8ca3-bcaf4ad19602', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:103:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/foxden_quoting/getNewAnswers.test.ts:6:21) + + console.log + Using default value 5000 for heartbeatFrequencyMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch turnOnEmfileProbe from SSM, falling back to default: true AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/turnOnEmfileProbe because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:107:10) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/foxden_quoting/getNewAnswers.test.ts:6:21) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '7e1cc2b2-0bc4-419a-b2c0-8e42f7f5b77a', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:107:10) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/foxden_quoting/getNewAnswers.test.ts:6:21) + + console.log + Using default value true for turnOnEmfileProbe + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + MongoDB connection options: { + "maxPoolSize": 10, + "minPoolSize": 1, + "maxIdleTimeMS": 10000, + "serverSelectionTimeoutMS": 3000, + "heartbeatFrequencyMS": 5000 + } + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + [EMFILE investigation] Starting investigation in undefined for MongoDBConnection... + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + *** new process, emfiles count: 42 + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + Connected to MongoDB (maxPoolSize: 10, maxIdleTimeMS: 10000) + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +{"level":"debug","message":"Existing quote region","metadata":{"region":"Canada","transactionId":"81781d37-eb75-43c3-adef-655cd8f0d7fa"}} +{"level":"debug","message":"Changed coverage input","metadata":{"coverage":{"chooseCoverage":true,"limits":{"aggregateLimit":100000,"occurrenceLimit":100000},"name":"cgl"},"transactionId":"81781d37-eb75-43c3-adef-655cd8f0d7fa"}} +{"level":"debug","message":"Question names for changed coverage","metadata":{"questionNames":{"aggregateLimit":"Coverage_Munich_201_9219_CGLAggregateLimit_WORLD_EN","chooseCoverage":"Coverage_Munich_201_9219_CGL_CA_EN","occurrenceLimit":"Coverage_Munich_201_9219_CGLOccurrenceLimit_WORLD_EN"},"transactionId":"81781d37-eb75-43c3-adef-655cd8f0d7fa"}} +{"level":"debug","message":"generate new answer for updated coverage","metadata":{"newAnswers":{"Coverage_Munich_201_9219_CGLAggregateLimit_WORLD_EN":"100000","Coverage_Munich_201_9219_CGLOccurrenceLimit_WORLD_EN":"100000","Coverage_Munich_201_9219_CGL_CA_EN":{"chooseCoverage":true}},"transactionId":"81781d37-eb75-43c3-adef-655cd8f0d7fa"}} +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch turnOnEmfileProbe from SSM, falling back to default: true AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/turnOnEmfileProbe because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.disconnect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:147:10) + at async Promise.allSettled (index 0) + at Object.close (/home/circleci/project/test/utils/context/createTestContext.ts:80:22) + at Object. (/home/circleci/project/test/testing/foxden_quoting/getNewAnswers.test.ts:31:5) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '43baed13-31c6-4ae4-a8bb-0928e0171a39', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   78 | // note: awaiting on Promise.allSettled doesn't throw Errors, so we're +  79 | // closing the foreign services with best efforts (i.e. it doesn't matter if one fails) + > 80 | const promises = await Promise.allSettled(closables.map((fn) => fn())); +  | ^ +  81 | const errors = promises.reduce((acc, promise) => { +  82 | if (promise.status === 'rejected') { +  83 | acc.push(promise.reason); + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.disconnect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:147:10) + at async Promise.allSettled (index 0) + at Object.close (test/utils/context/createTestContext.ts:80:22) + at Object. (test/testing/foxden_quoting/getNewAnswers.test.ts:31:5) + + console.log + Using default value true for turnOnEmfileProbe + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + MongoDB connection pool closed + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + [EMFILE investigation]: Ending investigation in undefined for MongoDBConnection... + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + *** no leak emfiles found + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + +{"level":"debug","message":"Everything in the Context are closed properly","metadata":{"transactionId":"81781d37-eb75-43c3-adef-655cd8f0d7fa"}} +PASS integration test/testing/foxden_quoting/getNewAnswers.test.ts + getNewAnswersSet + ✓ basic test (450 ms) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch maxPoolSize from SSM, falling back to default: 10 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/maxPoolSize because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:91:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/checkFein.test.ts:13:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '0c3f95b0-797e-4407-8e7d-1707ba49dab2', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:91:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/checkFein.test.ts:13:15) + + console.log + Using default value 10 for maxPoolSize + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch maxIdleTimeMS from SSM, falling back to default: 10000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/maxIdleTimeMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:95:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/checkFein.test.ts:13:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: 'ee179e6e-059a-425a-a24b-e263c6492581', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:95:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/checkFein.test.ts:13:15) + + console.log + Using default value 10000 for maxIdleTimeMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch serverSelectionTimeoutMS from SSM, falling back to default: 3000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/serverSelectionTimeoutMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:99:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/checkFein.test.ts:13:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '5d5822ae-7483-4193-bcd1-0172ce08415f', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:99:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/checkFein.test.ts:13:15) + + console.log + Using default value 3000 for serverSelectionTimeoutMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch heartbeatFrequencyMS from SSM, falling back to default: 5000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/heartbeatFrequencyMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:103:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/checkFein.test.ts:13:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '150da318-89bf-4211-88bc-a63e89ef6730', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:103:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/checkFein.test.ts:13:15) + + console.log + Using default value 5000 for heartbeatFrequencyMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch turnOnEmfileProbe from SSM, falling back to default: true AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/turnOnEmfileProbe because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:107:10) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/amtrust/checkFein.test.ts:13:15) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: 'd3797526-c1c6-45c8-8258-ba1514996eaa', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:107:10) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/amtrust/checkFein.test.ts:13:15) + + console.log + Using default value true for turnOnEmfileProbe + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + MongoDB connection options: { + "maxPoolSize": 10, + "minPoolSize": 1, + "maxIdleTimeMS": 10000, + "serverSelectionTimeoutMS": 3000, + "heartbeatFrequencyMS": 5000 + } + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + [EMFILE investigation] Starting investigation in undefined for MongoDBConnection... + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + *** new process, emfiles count: 42 + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + Connected to MongoDB (maxPoolSize: 10, maxIdleTimeMS: 10000) + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +{"level":"debug","message":"got response for FEIN check","metadata":{"AdditionalMessages":["1"],"Data":true,"Message":"hi","StatusCode":200,"transactionId":"0e3de116-3360-41b9-8e96-d9fbc07ce3d0"}} +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch turnOnEmfileProbe from SSM, falling back to default: true AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/turnOnEmfileProbe because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.disconnect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:147:10) + at async Promise.allSettled (index 0) + at Object.close (/home/circleci/project/test/utils/context/createTestContext.ts:80:22) + at Object. (/home/circleci/project/test/testing/amtrust/checkFein.test.ts:18:5) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '96a326e4-78fe-4dec-9d77-93319dc57857', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   78 | // note: awaiting on Promise.allSettled doesn't throw Errors, so we're +  79 | // closing the foreign services with best efforts (i.e. it doesn't matter if one fails) + > 80 | const promises = await Promise.allSettled(closables.map((fn) => fn())); +  | ^ +  81 | const errors = promises.reduce((acc, promise) => { +  82 | if (promise.status === 'rejected') { +  83 | acc.push(promise.reason); + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.disconnect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:147:10) + at async Promise.allSettled (index 0) + at Object.close (test/utils/context/createTestContext.ts:80:22) + at Object. (test/testing/amtrust/checkFein.test.ts:18:5) + + console.log + Using default value true for turnOnEmfileProbe + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + MongoDB connection pool closed + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + [EMFILE investigation]: Ending investigation in undefined for MongoDBConnection... + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + *** no leak emfiles found + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + +{"level":"debug","message":"Everything in the Context are closed properly","metadata":{"transactionId":"0e3de116-3360-41b9-8e96-d9fbc07ce3d0"}} +PASS integration test/testing/amtrust/checkFein.test.ts + Amtrust API checkFein + ✓ checkFein Successful Request (5 ms) + +PASS unit src/utils/timeZone.test.ts + getTimeZone + ✓ returns Canada/Eastern for ON (3 ms) + ✓ returns Canada/Atlantic for NS (1 ms) + ✓ returns Canada/Pacific for BC + ✓ returns America/New_York for OH (8 ms) + ✓ returns America/Chicago for IL (1 ms) + ✓ returns America/Los_Angeles for CA + ✓ returns America/Anchorage for AK (1 ms) + ✓ returns Pacific/Honolulu for HI + +PASS integration test/testing/amtrust/updateQuote.test.ts + Amtrust API updateQuote + ✓ updateQuote Successful Request (12 ms) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +PASS integration test/testing/amtrust/getAvailableLimitsErrors.test.ts + Amtrust API Errors getAvailableLimits + ✓ getAvailableLimits Timeout Request (93 ms) + ✓ getAvailableLimits Status Error 404 (133 ms) + +PASS integration test/testing/amtrust/getClassCodes.test.ts + Amtrust API getClassCodes + ✓ getClassCodes Successful Request (5 ms) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +PASS integration test/testing/amtrust/createQuoteProposalErrors.test.ts + Amtrust API Errors createQuoteProposal + ✓ createQuoteProposal Timeout Request (137 ms) + ✓ createQuoteProposal Status Error 404 (124 ms) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +PASS integration test/testing/amtrust/getExistingQuoteErrors.test.ts + Amtrust API Errors getExistingQuote + ✓ getExistingQuote Timeout Request (789 ms) + ✓ getExistingQuote Status Error 404 (123 ms) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +PASS integration test/testing/amtrust/getClassCodesErrors.test.ts + Amtrust API Errors getClassCodes + ✓ getClassCodes Timeout Request (123 ms) + ✓ getClassCodes Status Error 404 (140 ms) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch maxPoolSize from SSM, falling back to default: 10 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/maxPoolSize because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:91:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/foxden_quoting/US/calOhioPremium.munich.test.ts:12:13) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: 'b6c6a0e3-7c7a-4f4e-82ad-b8a265313ae1', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:91:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/foxden_quoting/US/calOhioPremium.munich.test.ts:12:13) + + console.log + Using default value 10 for maxPoolSize + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch maxIdleTimeMS from SSM, falling back to default: 10000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/maxIdleTimeMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:95:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/foxden_quoting/US/calOhioPremium.munich.test.ts:12:13) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '8711eb01-4c83-412e-af05-22c4779d44bd', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:95:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/foxden_quoting/US/calOhioPremium.munich.test.ts:12:13) + + console.log + Using default value 10000 for maxIdleTimeMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch serverSelectionTimeoutMS from SSM, falling back to default: 3000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/serverSelectionTimeoutMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:99:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/foxden_quoting/US/calOhioPremium.munich.test.ts:12:13) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '408da3bb-12df-4f7e-8ba9-7577239ce8c8', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:99:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/foxden_quoting/US/calOhioPremium.munich.test.ts:12:13) + + console.log + Using default value 3000 for serverSelectionTimeoutMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch heartbeatFrequencyMS from SSM, falling back to default: 5000 AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/heartbeatFrequencyMS because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:103:9) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/foxden_quoting/US/calOhioPremium.munich.test.ts:12:13) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '6f603930-33f4-4ddf-9f12-793f4cb0f624', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:103:9) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/foxden_quoting/US/calOhioPremium.munich.test.ts:12:13) + + console.log + Using default value 5000 for heartbeatFrequencyMS + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch turnOnEmfileProbe from SSM, falling back to default: true AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/turnOnEmfileProbe because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.connect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:107:10) + at default_1 (/home/circleci/project/test/utils/context/createTestContext.ts:63:23) + at Object. (/home/circleci/project/test/testing/foxden_quoting/US/calOhioPremium.munich.test.ts:12:13) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: '481469fa-55e1-40c6-adc5-d26d0f0e573a', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   61 | const mongoServerUrl = `mongodb://127.0.0.1:${port}/${dbName}?`; +  62 | const mongoConnection = new MongoDBConnection(STAGE); + > 63 | const mongoClient = await mongoConnection.connect(mongoServerUrl); +  | ^ +  64 | closables.push(() => mongoConnection.disconnect()); +  65 | const dbOps = createDBOperations(mongoClient); +  66 | + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.connect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:107:10) + at default_1 (test/utils/context/createTestContext.ts:63:23) + at Object. (test/testing/foxden_quoting/US/calOhioPremium.munich.test.ts:12:13) + + console.log + Using default value true for turnOnEmfileProbe + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + MongoDB connection options: { + "maxPoolSize": 10, + "minPoolSize": 1, + "maxIdleTimeMS": 10000, + "serverSelectionTimeoutMS": 3000, + "heartbeatFrequencyMS": 5000 + } + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + [EMFILE investigation] Starting investigation in undefined for MongoDBConnection... + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + *** new process, emfiles count: 40 + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + + console.log + Connected to MongoDB (maxPoolSize: 10, maxIdleTimeMS: 10000) + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + +{"level":"debug","message":"Start table lookup for filling data","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Using policy dates to calculate policy term measurements","metadata":{"policyDates":{"policyEffectiveDate":"2021-04-27T00:00:00.000Z","policyExpirationDate":"2022-04-27T00:00:00.000Z","transactionEffectiveDate":"2021-04-27T00:00:00.000Z","transactionExpirationDate":"2022-04-27T00:00:00.000Z"},"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Successfully calculated policy term measurements","metadata":{"policyTermMeasurements":{"policyTermFactor":1,"policyTermLength":1,"prorateFactor":1},"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Using policy dates to calculate policy term measurements","metadata":{"policyDates":{"policyEffectiveDate":"2021-04-27T00:00:00.000Z","policyExpirationDate":"2022-04-27T00:00:00.000Z","transactionEffectiveDate":"2021-04-27T00:00:00.000Z","transactionExpirationDate":"2022-04-27T00:00:00.000Z"},"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Successfully calculated policy term measurements","metadata":{"policyTermMeasurements":{"policyTermFactor":1,"policyTermLength":1,"prorateFactor":1},"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Filling data input","metadata":{"carrierPartner":"Munich","grossSales":6675,"numOfEmployees":0,"numOfPayrollOpenTextOfficers":2,"numOfPayrollOwners":1,"payroll":167883,"professionList":["BusinessInformation_100_Profession_9219_1820001_WORLD_EN"],"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","workPercentageData":{"commercialWorkPercentage":0,"exteriorWorkPercentage":0,"interiorWorkPercentage":0,"residentialWorkPercentage":0},"zipCode":"43210"}} +{"level":"debug","message":"Filling data output","metadata":{"abuseAndMolestationHazardGroup":"H","exceptionRules":[],"isoData":[{"abuseAndMolestationHGRank":2,"abuseAndMolestationHazardGroup":"H","exposures":6675,"ilfTable":"2-","ilfTablePrem":"2","ilfTableProd":"-","isoClassCode":"18200","isoClassDescription":"Spas or Personal Enhancement Facilities","minimumPremium":"200","minimumPremiumGroup":"Personal Services","premiumBase":"Gross Sales"}],"isoMapper":{"18200":["18200"]},"isoTerritory":"505","minimumPremium":200,"policyLevelRevenue":6675,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for gl table","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for base CGL Prem","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for base CGL Prem of iso 18200","metadata":{"LCM":1.538,"adjustedLimitFactor":1.67,"audit":{"unroundedBasicLimitRate":5.10616,"unroundedFinalPremium":57,"unroundedModifiedPremium":56.918,"unroundedRotableExposures":6.675,"unroundedUnmodifiedPremium":56.91772499999999,"unroundedUnmodifiedRate":8.52702},"basicLimitRate":5.106,"deductibleFactor":0,"exposures":6675,"finalPremium":57,"ilf":1.67,"lossCostFactor":3.32,"modifiedPremium":57,"policyTermFactor":1,"premiumBaseAdjustment":0.001,"prorateFactor":1,"rotableExposures":6.675,"scheduleModFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":56.918,"unmodifiedRate":8.527}} +{"level":"debug","message":"Start rating for base CGL Prod","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for base CGL Prod","metadata":{"LCM":1.538,"adjustedLimitFactor":0,"audit":{"unroundedBasicLimitRate":0,"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedRotableExposures":6.675,"unroundedUnmodifiedPremium":0,"unroundedUnmodifiedRate":0},"basicLimitRate":0,"deductibleFactor":0,"exposures":6675,"finalPremium":0,"ilf":0,"lossCostFactor":0,"modifiedPremium":0,"policyTermFactor":1,"premiumBaseAdjustment":0.001,"prorateFactor":1,"rotableExposures":6.675,"scheduleModFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"unmodifiedRate":0}} +{"level":"debug","message":"Start rating for cgl additional limits","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for cgl additional limits","metadata":{"audit":{"unroundedBasicLimitsUnmodifiedPremium":34.08255,"unroundedMedicalPaymentsFinalPremium":0,"unroundedMedicalPaymentsModifiedPremium":0,"unroundedMedicalPaymentsUnmodifiedPremium":0,"unroundedPremisesRentedToYouModifiedPremium":0,"unroundedPremisesRentedToYouUnmodifiedPremium":0,"unroundedpPremisesRentedToYouFinalPremium":0},"basicLimitsUnmodifiedPremium":34.083,"medicalPaymentsFinalPremium":0,"medicalPaymentsModifiedPremium":0,"medicalPaymentsRate":0,"medicalPaymentsUnmodifiedPremium":0,"premisesRentedToYouFinalPremium":0,"premisesRentedToYouModifiedPremium":0,"premisesRentedToYouRate":0,"premisesRentedToYouUnmodifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for cgl minimum to add","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for cgl minimum to add","metadata":{"audit":{"unroundedFinalPremium":143,"unroundedTermPremium":143},"finalPremium":143,"minimumPremium":200,"prorateFactor":1,"sum":57,"termPremium":143,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for pollution liability","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for pollution liability","metadata":{"audit":{"unroundedFinalPremium":30,"unroundedTermPremium":30},"finalPremium":30,"flatCharge":30,"prorateFactor":1,"termPremium":30,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for unmanned aircraft (coverage A only)","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unmanned aircraft (coverage A only)","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for unmanned aircraft (coverage B only)","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unmanned aircraft (coverage B only)","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for unmanned aircraft (coverage A&B)","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unmanned aircraft (coverage A&B)","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for Miscellaneous EO","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for Miscellaneous EO","metadata":{"additionalPremiumToMeetMinimum":48.658,"audit":{"unroundedFinalPremium":50,"unroundedModifiedPremium":1.342,"unroundedRevenue":6.675,"unroundedTermPremium":50,"unroundedUnmodifiedPremium":1.341675},"finalPremium":50,"modifiedPremium":1.342,"prorateFactor":1,"rate":0.201,"revenue":6.675,"scheduleModFactor":1,"termPremium":50,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":1.342}} +{"level":"debug","message":"Start rating for Contractors EO","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for Contractors EO","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for abuse and molestation coverage","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for abuse and molestation coverage","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for employee benefits coverage","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for employee benefits coverage","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for TRIA","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for TRIA","metadata":{"active":false,"audit":{"unroundedFinalPremium":2,"unroundedTermPremium":2.3000000000000003},"finalPremium":2,"prorateFactor":1,"rate":0.01,"sum":230,"termPremium":2,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"info","message":"Start rating for addtional insured","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Final gl premium","metadata":{"glPremium":280,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for IM table","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for business items table","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for unscheduled BPP","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unscheduled BPP","metadata":{"audit":{"unroundedFinalPremium":25,"unroundedModifiedPremium":25,"unroundedTermPremium":25,"unroundedUnmodifiedPremium":25},"deductibleFactor":1,"finalPremium":25,"flatCharge":25,"modifiedPremium":25,"policyTermFactor":1,"prorateFactor":1,"scheduleModFactor":1,"termPremium":25,"theftDeductibleFactor":1,"theftExclusionFactor":1,"theftSublimitFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":25,"whExclusionFactor":1}} +{"level":"debug","message":"Start rating for hardware and software","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for hardware and software","metadata":{"audit":{"unroundedFinalPremium":38,"unroundedModifiedPremium":38,"unroundedTermPremium":38,"unroundedUnmodifiedPremium":38},"deductibleFactor":1,"finalPremium":38,"flatCharge":38,"modifiedPremium":38,"policyTermFactor":1,"prorateFactor":1,"scheduleModFactor":1,"termPremium":38,"theftDeductibleFactor":1,"theftExclusionFactor":1,"theftSublimitFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":38,"whExclusionFactor":1}} +{"level":"debug","message":"Start rating for lock and key","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for lock and key","metadata":{"audit":{"unroundedFinalPremium":25,"unroundedModifiedPremium":25,"unroundedTermPremium":25,"unroundedUnmodifiedPremium":25},"deductibleFactor":1,"finalPremium":25,"flatCharge":25,"modifiedPremium":25,"policyTermFactor":1,"prorateFactor":1,"scheduleModFactor":1,"termPremium":25,"theftDeductibleFactor":1,"theftExclusionFactor":1,"theftSublimitFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":25,"whExclusionFactor":1}} +{"level":"debug","message":"Start rating for photography and videiography","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for photography and videiography","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unmanned aircraft (physical loss)","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unmanned aircraft (physical loss)","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for valuable papers","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for valuable papers","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for covered property","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for additionally covered property","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for contractors table","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for unscheduled contractors equipment","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unscheduled contractors equipment","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unscheduled hardware and software","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unscheduled hardware and software","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unscheduled small tools","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unscheduled small tools","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for lock and key","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for lock and key","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unmanned aircraft (physical loss)","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unmanned aircraft (physical loss)","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for valuable papers","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for valuable papers","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for installation","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for installation","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for covered property","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for additionally covered property","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for business items table","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for bailees customer","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for bailees customer","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for business income and extra expense table","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Finish rating - final premium","metadata":{"finalPremium":368,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start table lookup for filling data","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Using policy dates to calculate policy term measurements","metadata":{"policyDates":{"policyEffectiveDate":"2021-04-27T00:00:00.000Z","policyExpirationDate":"2022-04-27T00:00:00.000Z","transactionEffectiveDate":"2021-04-27T00:00:00.000Z","transactionExpirationDate":"2022-04-27T00:00:00.000Z"},"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Successfully calculated policy term measurements","metadata":{"policyTermMeasurements":{"policyTermFactor":1,"policyTermLength":1,"prorateFactor":1},"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Using policy dates to calculate policy term measurements","metadata":{"policyDates":{"policyEffectiveDate":"2021-04-27T00:00:00.000Z","policyExpirationDate":"2022-04-27T00:00:00.000Z","transactionEffectiveDate":"2021-04-27T00:00:00.000Z","transactionExpirationDate":"2022-04-27T00:00:00.000Z"},"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Successfully calculated policy term measurements","metadata":{"policyTermMeasurements":{"policyTermFactor":1,"policyTermLength":1,"prorateFactor":1},"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Filling data input","metadata":{"carrierPartner":"Munich","grossSales":3518,"numOfEmployees":0,"numOfPayrollOpenTextOfficers":2,"numOfPayrollOwners":1,"payroll":3518,"professionList":["BusinessInformation_100_Profession_9219_1647104_WORLD_EN"],"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","workPercentageData":{"commercialWorkPercentage":0,"exteriorWorkPercentage":0,"interiorWorkPercentage":0,"residentialWorkPercentage":0},"zipCode":"43210"}} +{"level":"debug","message":"Filling data output","metadata":{"abuseAndMolestationHazardGroup":"L","exceptionRules":[],"isoData":[{"abuseAndMolestationHGRank":1,"abuseAndMolestationHazardGroup":"L","exposures":3518,"ilfTable":"2-","ilfTablePrem":"2","ilfTableProd":"-","isoClassCode":"16471","isoClassDescription":"Photographers","minimumPremium":"200","minimumPremiumGroup":"Personal Services","premiumBase":"Gross Sales"}],"isoMapper":{"16471":["16471"]},"isoTerritory":"505","minimumPremium":200,"policyLevelRevenue":3518,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for gl table","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for base CGL Prem","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for base CGL Prem of iso 16471","metadata":{"LCM":1.538,"adjustedLimitFactor":1.53,"audit":{"unroundedBasicLimitRate":0.247618,"unroundedFinalPremium":1,"unroundedModifiedPremium":1.333,"unroundedRotableExposures":3.5180000000000002,"unroundedUnmodifiedPremium":1.333322,"unroundedUnmodifiedRate":0.37944},"basicLimitRate":0.248,"deductibleFactor":0,"exposures":3518,"finalPremium":1,"ilf":1.53,"lossCostFactor":0.161,"modifiedPremium":1,"policyTermFactor":1,"premiumBaseAdjustment":0.001,"prorateFactor":1,"rotableExposures":3.518,"scheduleModFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":1.333,"unmodifiedRate":0.379}} +{"level":"debug","message":"Start rating for base CGL Prod","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for base CGL Prod","metadata":{"LCM":1.538,"adjustedLimitFactor":0,"audit":{"unroundedBasicLimitRate":0,"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedRotableExposures":3.5180000000000002,"unroundedUnmodifiedPremium":0,"unroundedUnmodifiedRate":0},"basicLimitRate":0,"deductibleFactor":0,"exposures":3518,"finalPremium":0,"ilf":0,"lossCostFactor":0,"modifiedPremium":0,"policyTermFactor":1,"premiumBaseAdjustment":0.001,"prorateFactor":1,"rotableExposures":3.518,"scheduleModFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"unmodifiedRate":0}} +{"level":"debug","message":"Start rating for cgl additional limits","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for cgl additional limits","metadata":{"audit":{"unroundedBasicLimitsUnmodifiedPremium":0.8724639999999999,"unroundedMedicalPaymentsFinalPremium":0,"unroundedMedicalPaymentsModifiedPremium":0,"unroundedMedicalPaymentsUnmodifiedPremium":0,"unroundedPremisesRentedToYouModifiedPremium":0,"unroundedPremisesRentedToYouUnmodifiedPremium":0,"unroundedpPremisesRentedToYouFinalPremium":0},"basicLimitsUnmodifiedPremium":0.872,"medicalPaymentsFinalPremium":0,"medicalPaymentsModifiedPremium":0,"medicalPaymentsRate":0,"medicalPaymentsUnmodifiedPremium":0,"premisesRentedToYouFinalPremium":0,"premisesRentedToYouModifiedPremium":0,"premisesRentedToYouRate":0,"premisesRentedToYouUnmodifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for cgl minimum to add","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for cgl minimum to add","metadata":{"audit":{"unroundedFinalPremium":199,"unroundedTermPremium":199},"finalPremium":199,"minimumPremium":200,"prorateFactor":1,"sum":1,"termPremium":199,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for pollution liability","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for pollution liability","metadata":{"audit":{"unroundedFinalPremium":30,"unroundedTermPremium":30},"finalPremium":30,"flatCharge":30,"prorateFactor":1,"termPremium":30,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for unmanned aircraft (coverage A only)","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unmanned aircraft (coverage A only)","metadata":{"audit":{"unroundedFinalPremium":185,"unroundedTermPremium":185},"finalPremium":185,"flatCharge":185,"prorateFactor":1,"termPremium":185,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for unmanned aircraft (coverage B only)","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unmanned aircraft (coverage B only)","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for unmanned aircraft (coverage A&B)","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unmanned aircraft (coverage A&B)","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for Miscellaneous EO","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for Miscellaneous EO","metadata":{"additionalPremiumToMeetMinimum":49.293,"audit":{"unroundedFinalPremium":50,"unroundedModifiedPremium":0.707,"unroundedRevenue":3.518,"unroundedTermPremium":50,"unroundedUnmodifiedPremium":0.707118},"finalPremium":50,"modifiedPremium":0.707,"prorateFactor":1,"rate":0.201,"revenue":3.518,"scheduleModFactor":1,"termPremium":50,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0.707}} +{"level":"debug","message":"Start rating for Contractors EO","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for Contractors EO","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for abuse and molestation coverage","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for abuse and molestation coverage","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for employee benefits coverage","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for employee benefits coverage","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for TRIA","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for TRIA","metadata":{"active":false,"audit":{"unroundedFinalPremium":4,"unroundedTermPremium":4.15},"finalPremium":4,"prorateFactor":1,"rate":0.01,"sum":415,"termPremium":4,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"info","message":"Start rating for addtional insured","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Final gl premium","metadata":{"glPremium":465,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for IM table","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for business items table","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for unscheduled BPP","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unscheduled BPP","metadata":{"audit":{"unroundedFinalPremium":96,"unroundedModifiedPremium":96,"unroundedTermPremium":96,"unroundedUnmodifiedPremium":96},"deductibleFactor":1,"finalPremium":96,"flatCharge":96,"modifiedPremium":96,"policyTermFactor":1,"prorateFactor":1,"scheduleModFactor":1,"termPremium":96,"theftDeductibleFactor":1,"theftExclusionFactor":1,"theftSublimitFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":96,"whExclusionFactor":1}} +{"level":"debug","message":"Start rating for hardware and software","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for hardware and software","metadata":{"audit":{"unroundedFinalPremium":15,"unroundedModifiedPremium":15,"unroundedTermPremium":15,"unroundedUnmodifiedPremium":15},"deductibleFactor":1,"finalPremium":15,"flatCharge":15,"modifiedPremium":15,"policyTermFactor":1,"prorateFactor":1,"scheduleModFactor":1,"termPremium":15,"theftDeductibleFactor":1,"theftExclusionFactor":1,"theftSublimitFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":15,"whExclusionFactor":1}} +{"level":"debug","message":"Start rating for lock and key","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for lock and key","metadata":{"audit":{"unroundedFinalPremium":5,"unroundedModifiedPremium":5,"unroundedTermPremium":5,"unroundedUnmodifiedPremium":5},"deductibleFactor":1,"finalPremium":5,"flatCharge":5,"modifiedPremium":5,"policyTermFactor":1,"prorateFactor":1,"scheduleModFactor":1,"termPremium":5,"theftDeductibleFactor":1,"theftExclusionFactor":1,"theftSublimitFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":5,"whExclusionFactor":1}} +{"level":"debug","message":"Start rating for photography and videiography","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for photography and videiography","metadata":{"audit":{"unroundedFinalPremium":237,"unroundedModifiedPremium":237,"unroundedTermPremium":237,"unroundedUnmodifiedPremium":237},"deductibleFactor":1,"finalPremium":237,"flatCharge":237,"modifiedPremium":237,"policyTermFactor":1,"prorateFactor":1,"scheduleModFactor":1,"termPremium":237,"theftDeductibleFactor":1,"theftExclusionFactor":1,"theftSublimitFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":237,"whExclusionFactor":1}} +{"level":"debug","message":"Start rating for unmanned aircraft (physical loss)","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unmanned aircraft (physical loss)","metadata":{"audit":{"unroundedFinalPremium":125,"unroundedModifiedPremium":125,"unroundedTermPremium":125,"unroundedUnmodifiedPremium":125},"deductibleFactor":1,"finalPremium":125,"flatCharge":125,"modifiedPremium":125,"policyTermFactor":1,"prorateFactor":1,"scheduleModFactor":1,"termPremium":125,"theftDeductibleFactor":1,"theftExclusionFactor":1,"theftSublimitFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":125,"whExclusionFactor":1}} +{"level":"debug","message":"Start rating for valuable papers","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for valuable papers","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for covered property","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for additionally covered property","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for contractors table","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for unscheduled contractors equipment","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unscheduled contractors equipment","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unscheduled hardware and software","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unscheduled hardware and software","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unscheduled small tools","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unscheduled small tools","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for lock and key","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for lock and key","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unmanned aircraft (physical loss)","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unmanned aircraft (physical loss)","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for valuable papers","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for valuable papers","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for installation","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for installation","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for covered property","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for additionally covered property","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for business items table","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for bailees customer","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for bailees customer","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for business income and extra expense table","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Finish rating - final premium","metadata":{"finalPremium":943,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start table lookup for filling data","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Using policy dates to calculate policy term measurements","metadata":{"policyDates":{"policyEffectiveDate":"2021-04-27T00:00:00.000Z","policyExpirationDate":"2022-04-27T00:00:00.000Z","transactionEffectiveDate":"2021-04-27T00:00:00.000Z","transactionExpirationDate":"2022-04-27T00:00:00.000Z"},"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Successfully calculated policy term measurements","metadata":{"policyTermMeasurements":{"policyTermFactor":1,"policyTermLength":1,"prorateFactor":1},"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Using policy dates to calculate policy term measurements","metadata":{"policyDates":{"policyEffectiveDate":"2021-04-27T00:00:00.000Z","policyExpirationDate":"2022-04-27T00:00:00.000Z","transactionEffectiveDate":"2021-04-27T00:00:00.000Z","transactionExpirationDate":"2022-04-27T00:00:00.000Z"},"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Successfully calculated policy term measurements","metadata":{"policyTermMeasurements":{"policyTermFactor":1,"policyTermLength":1,"prorateFactor":1},"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Filling data input","metadata":{"carrierPartner":"Munich","grossSales":72959439,"numOfEmployees":0,"numOfPayrollOpenTextOfficers":2,"numOfPayrollOwners":1,"payroll":59884,"professionList":["BusinessInformation_100_Profession_9219_4428009_WORLD_EN"],"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","workPercentageData":{"commercialWorkPercentage":0,"exteriorWorkPercentage":0,"interiorWorkPercentage":0,"residentialWorkPercentage":0},"zipCode":"43210"}} +{"level":"debug","message":"Filling data output","metadata":{"abuseAndMolestationHazardGroup":"L","exceptionRules":[],"isoData":[{"abuseAndMolestationHGRank":1,"abuseAndMolestationHazardGroup":"L","exposures":170584,"ilfTable":"3-","ilfTablePrem":"3","ilfTableProd":"-","isoClassCode":"44280","isoClassDescription":"Event, Party or Wedding Planners","minimumPremium":"200","minimumPremiumGroup":"Personal Services","premiumBase":"Payroll"}],"isoMapper":{"44280":["44280"]},"isoTerritory":"505","minimumPremium":200,"policyLevelRevenue":72959439,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for gl table","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for base CGL Prem","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for base CGL Prem of iso 44280","metadata":{"LCM":1.538,"adjustedLimitFactor":1.77,"audit":{"unroundedBasicLimitRate":0.256846,"unroundedFinalPremium":78,"unroundedModifiedPremium":77.616,"unroundedRotableExposures":170.584,"unroundedUnmodifiedPremium":77.61572000000001,"unroundedUnmodifiedRate":0.45489},"basicLimitRate":0.257,"deductibleFactor":0,"exposures":170584,"finalPremium":78,"ilf":1.77,"lossCostFactor":0.167,"modifiedPremium":78,"policyTermFactor":1,"premiumBaseAdjustment":0.001,"prorateFactor":1,"rotableExposures":170.584,"scheduleModFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":77.616,"unmodifiedRate":0.455}} +{"level":"debug","message":"Start rating for base CGL Prod","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for base CGL Prod","metadata":{"LCM":1.538,"adjustedLimitFactor":0,"audit":{"unroundedBasicLimitRate":0,"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedRotableExposures":170.584,"unroundedUnmodifiedPremium":0,"unroundedUnmodifiedRate":0},"basicLimitRate":0,"deductibleFactor":0,"exposures":170584,"finalPremium":0,"ilf":0,"lossCostFactor":0,"modifiedPremium":0,"policyTermFactor":1,"premiumBaseAdjustment":0.001,"prorateFactor":1,"rotableExposures":170.584,"scheduleModFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"unmodifiedRate":0}} +{"level":"debug","message":"Start rating for cgl additional limits","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for cgl additional limits","metadata":{"audit":{"unroundedBasicLimitsUnmodifiedPremium":43.840088,"unroundedMedicalPaymentsFinalPremium":0,"unroundedMedicalPaymentsModifiedPremium":0,"unroundedMedicalPaymentsUnmodifiedPremium":0,"unroundedPremisesRentedToYouModifiedPremium":0,"unroundedPremisesRentedToYouUnmodifiedPremium":0,"unroundedpPremisesRentedToYouFinalPremium":0},"basicLimitsUnmodifiedPremium":43.84,"medicalPaymentsFinalPremium":0,"medicalPaymentsModifiedPremium":0,"medicalPaymentsRate":0,"medicalPaymentsUnmodifiedPremium":0,"premisesRentedToYouFinalPremium":0,"premisesRentedToYouModifiedPremium":0,"premisesRentedToYouRate":0,"premisesRentedToYouUnmodifiedPremium":0,"prorateFactor":1,"scheduleModFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for cgl minimum to add","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for cgl minimum to add","metadata":{"audit":{"unroundedFinalPremium":122,"unroundedTermPremium":122},"finalPremium":122,"minimumPremium":200,"prorateFactor":1,"sum":78,"termPremium":122,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for pollution liability","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for pollution liability","metadata":{"audit":{"unroundedFinalPremium":30,"unroundedTermPremium":30},"finalPremium":30,"flatCharge":30,"prorateFactor":1,"termPremium":30,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for unmanned aircraft (coverage A only)","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unmanned aircraft (coverage A only)","metadata":{"audit":{"unroundedFinalPremium":215,"unroundedTermPremium":215},"finalPremium":215,"flatCharge":215,"prorateFactor":1,"termPremium":215,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for unmanned aircraft (coverage B only)","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unmanned aircraft (coverage B only)","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for unmanned aircraft (coverage A&B)","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unmanned aircraft (coverage A&B)","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for Miscellaneous EO","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for Miscellaneous EO","metadata":{"additionalPremiumToMeetMinimum":0,"audit":{"unroundedFinalPremium":14665,"unroundedModifiedPremium":14664.847,"unroundedRevenue":72959.439,"unroundedTermPremium":14664.847,"unroundedUnmodifiedPremium":14664.847239},"finalPremium":14665,"modifiedPremium":14664.847,"prorateFactor":1,"rate":0.201,"revenue":72959.439,"scheduleModFactor":1,"termPremium":14665,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":14664.847}} +{"level":"debug","message":"Start rating for Contractors EO","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for Contractors EO","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for abuse and molestation coverage","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for abuse and molestation coverage","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for employee benefits coverage","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for employee benefits coverage","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedTermPremium":0},"finalPremium":0,"flatCharge":0,"prorateFactor":1,"termPremium":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for TRIA","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for TRIA","metadata":{"active":false,"audit":{"unroundedFinalPremium":4,"unroundedTermPremium":4.45},"finalPremium":4,"prorateFactor":1,"rate":0.01,"sum":445,"termPremium":4,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"info","message":"Start rating for addtional insured","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Final gl premium","metadata":{"glPremium":15110,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for IM table","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for business items table","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for unscheduled BPP","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unscheduled BPP","metadata":{"audit":{"unroundedFinalPremium":25,"unroundedModifiedPremium":25,"unroundedTermPremium":25,"unroundedUnmodifiedPremium":25},"deductibleFactor":1,"finalPremium":25,"flatCharge":25,"modifiedPremium":25,"policyTermFactor":1,"prorateFactor":1,"scheduleModFactor":1,"termPremium":25,"theftDeductibleFactor":1,"theftExclusionFactor":1,"theftSublimitFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":25,"whExclusionFactor":1}} +{"level":"debug","message":"Start rating for hardware and software","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for hardware and software","metadata":{"audit":{"unroundedFinalPremium":38,"unroundedModifiedPremium":38,"unroundedTermPremium":38,"unroundedUnmodifiedPremium":38},"deductibleFactor":1,"finalPremium":38,"flatCharge":38,"modifiedPremium":38,"policyTermFactor":1,"prorateFactor":1,"scheduleModFactor":1,"termPremium":38,"theftDeductibleFactor":1,"theftExclusionFactor":1,"theftSublimitFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":38,"whExclusionFactor":1}} +{"level":"debug","message":"Start rating for lock and key","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for lock and key","metadata":{"audit":{"unroundedFinalPremium":25,"unroundedModifiedPremium":25,"unroundedTermPremium":25,"unroundedUnmodifiedPremium":25},"deductibleFactor":1,"finalPremium":25,"flatCharge":25,"modifiedPremium":25,"policyTermFactor":1,"prorateFactor":1,"scheduleModFactor":1,"termPremium":25,"theftDeductibleFactor":1,"theftExclusionFactor":1,"theftSublimitFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":25,"whExclusionFactor":1}} +{"level":"debug","message":"Start rating for photography and videiography","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for photography and videiography","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unmanned aircraft (physical loss)","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unmanned aircraft (physical loss)","metadata":{"audit":{"unroundedFinalPremium":250,"unroundedModifiedPremium":250,"unroundedTermPremium":250,"unroundedUnmodifiedPremium":250},"deductibleFactor":1,"finalPremium":250,"flatCharge":250,"modifiedPremium":250,"policyTermFactor":1,"prorateFactor":1,"scheduleModFactor":1,"termPremium":250,"theftDeductibleFactor":1,"theftExclusionFactor":1,"theftSublimitFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":250,"whExclusionFactor":1}} +{"level":"debug","message":"Start rating for valuable papers","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for valuable papers","metadata":{"audit":{"unroundedFinalPremium":4,"unroundedModifiedPremium":4,"unroundedTermPremium":4,"unroundedUnmodifiedPremium":4},"deductibleFactor":1,"finalPremium":4,"flatCharge":4,"modifiedPremium":4,"policyTermFactor":1,"prorateFactor":1,"scheduleModFactor":1,"termPremium":4,"theftDeductibleFactor":1,"theftExclusionFactor":1,"theftSublimitFactor":1,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":4,"whExclusionFactor":1}} +{"level":"debug","message":"Start rating for covered property","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for additionally covered property","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for contractors table","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for unscheduled contractors equipment","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unscheduled contractors equipment","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unscheduled hardware and software","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unscheduled hardware and software","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unscheduled small tools","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unscheduled small tools","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for lock and key","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for lock and key","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for unmanned aircraft (physical loss)","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for unmanned aircraft (physical loss)","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for valuable papers","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for valuable papers","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for installation","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for installation","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for covered property","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for additionally covered property","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for business items table","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Start rating for bailees customer","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Rating result for bailees customer","metadata":{"audit":{"unroundedFinalPremium":0,"unroundedModifiedPremium":0,"unroundedTermPremium":0,"unroundedUnmodifiedPremium":0},"deductibleFactor":0,"finalPremium":0,"flatCharge":0,"modifiedPremium":0,"policyTermFactor":0,"prorateFactor":1,"scheduleModFactor":1,"termPremium":0,"theftDeductibleFactor":0,"theftExclusionFactor":0,"theftSublimitFactor":0,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd","unmodifiedPremium":0,"whExclusionFactor":0}} +{"level":"debug","message":"Start rating for business income and extra expense table","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +{"level":"debug","message":"Finish rating - final premium","metadata":{"finalPremium":15452,"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit +(node:1557) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ClientRequest]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit + console.warn + Failed to fetch turnOnEmfileProbe from SSM, falling back to default: true AccessDeniedException: User: arn:aws:iam::448894833180:user/foxden-backend-context-user is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:************:448894833180:parameter/foxden-test/mongodb/connection/turnOnEmfileProbe because no identity-based policy allows the ssm:GetParameter action + at de_AccessDeniedExceptionRes (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7721:21) + at de_CommandError (/home/circleci/project/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7519:19) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/core/dist-cjs/index.js:193:18 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 + at /home/circleci/project/node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 + at MongoDBConnection.getConfigParameter (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:65:24) + at MongoDBConnection.disconnect (/home/circleci/project/node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:147:10) + at async Promise.allSettled (index 0) + at Object.close (/home/circleci/project/test/utils/context/createTestContext.ts:80:22) + at Object. (/home/circleci/project/test/testing/foxden_quoting/US/calOhioPremium.munich.test.ts:15:3) { + '$fault': 'client', + '$metadata': { + httpStatusCode: 400, + requestId: 'bd12d35e-8ae4-4e42-bb7f-f5e8719375b6', + extendedRequestId: undefined, + cfId: undefined, + attempts: 1, + totalRetryDelay: 0 + }, + __type: 'AccessDeniedException' + } + +   78 | // note: awaiting on Promise.allSettled doesn't throw Errors, so we're +  79 | // closing the foreign services with best efforts (i.e. it doesn't matter if one fails) + > 80 | const promises = await Promise.allSettled(closables.map((fn) => fn())); +  | ^ +  81 | const errors = promises.reduce((acc, promise) => { +  82 | if (promise.status === 'rejected') { +  83 | acc.push(promise.reason); + + at console.warn (node_modules/@sentry/src/integrations/console.ts:51:29) + at MongoDBConnection.getConfigParameter (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:75:15) + at MongoDBConnection.disconnect (node_modules/@foxden/shared-lib/src/mongoDBConnection.ts:147:10) + at async Promise.allSettled (index 0) + at Object.close (test/utils/context/createTestContext.ts:80:22) + at Object. (test/testing/foxden_quoting/US/calOhioPremium.munich.test.ts:15:3) + + console.log + Using default value true for turnOnEmfileProbe + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + MongoDB connection pool closed + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + [EMFILE investigation]: Ending investigation in undefined for MongoDBConnection... + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + + console.log + *** no leak emfiles found + + at console.log (node_modules/@sentry/src/integrations/console.ts:51:29) + at async Promise.allSettled (index 0) + +{"level":"debug","message":"Everything in the Context are closed properly","metadata":{"transactionId":"845c170b-7f98-461d-8ac3-49322d691cbd"}} +PASS integration test/testing/foxden_quoting/US/calOhioPremium.munich.test.ts (5.984 s) + calPremium + ✓ case0 (593 ms) + ✓ case1 (682 ms) + ✓ case2 (547 ms) + +PASS integration test/testing/amtrust/getExistingQuote.test.ts + Amtrust API getExistingQuote + ✓ getExistingQuote Successful Request (7 ms) + +PASS integration test/testing/amtrust/getAvailableLimits.test.ts + Amtrust API getAvailableLimits + ✓ getAvailableLimits Successful Request (5 ms) + +PASS integration test/testing/foxden_quoting/addMunichToQuestionAnswersMap.test.ts + addMunichToQuestionAnswersMap test + ✓ eligible quote (5 ms) + ✓ empty quote (1 ms) + ○ skipped obsolete test - ineligible quote removed + +PASS integration test/testing/amtrust/createQuoteProposal.test.ts + Amtrust API createQuoteProposal + ✓ createQuoteProposal Successful Request (5 ms) + +PASS integration test/testing/utils/roundToNDigits.test.ts + roundToThreeDigits + ✓ 1 (4 ms) + ✓ 1.5 (1 ms) + ✓ 1.235 (1 ms) + ✓ 1.123 + ✓ 1.1234 (1 ms) + ✓ 1.1235 + ✓ 1.1236 (1 ms) + ✓ 1.1239 + +PASS unit src/models/graphql/operation/document/generateId.test.ts + generateId GraphQL operation module + ✓ should load the module without errors (66 ms) + +PASS unit src/app.test.ts + app.test.ts tests + ✓ simple test (2 ms) + +-------------------------------------------------------|---------|----------|---------|---------|----------------------------------------------------------------------------- +File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s +-------------------------------------------------------|---------|----------|---------|---------|----------------------------------------------------------------------------- +All files | 16.19 | 57.48 | 8.79 | 16.28 | + src | 9.67 | 48.51 | 4.54 | 9.78 | + app.test.ts | 0 | 100 | 0 | 0 | 1-3 + createGenericServer.test.ts | 0 | 100 | 0 | 0 | 1-689 + createGenericServer.ts | 62.5 | 44.7 | 71.42 | 62.5 | 93,104,115-162 + features.ts | 0 | 100 | 100 | 0 | 1-3 + index.test.ts | 0 | 100 | 0 | 0 | 5-769 + index.ts | 93.33 | 78.57 | 100 | 93.1 | 98-99 + raw-loader.d.ts | 0 | 0 | 0 | 0 | + resolvers.ts | 0 | 100 | 100 | 0 | 1-55 + sentry.ts | 0 | 0 | 100 | 0 | 1-9 + src/context | 8.35 | 97.5 | 4.25 | 8.56 | + createDocumentGraphQLClientWithVersion.test.ts | 0 | 100 | 0 | 0 | 2-808 + createDocumentGraphQLClientWithVersion.ts | 100 | 100 | 100 | 100 | + createPaymentGraphQLClientWithVersion.test.ts | 0 | 100 | 0 | 0 | 3-811 + createPaymentGraphQLClientWithVersion.ts | 100 | 100 | 100 | 100 | + getSecrets.test.ts | 0 | 100 | 0 | 0 | 1-575 + getSecrets.ts | 100 | 100 | 100 | 100 | + index.test.ts | 0 | 100 | 0 | 0 | 1-624 + index.ts | 100 | 87.5 | 100 | 100 | 33 + logger.test.ts | 0 | 100 | 0 | 0 | 5-1102 + logger.ts | 100 | 100 | 100 | 100 | + mongodb.ts | 100 | 100 | 100 | 100 | + src/context/amTrust | 12.85 | 52.88 | 11.76 | 12.84 | + adapter.test.ts | 0 | 0 | 0 | 0 | 1-717 + adapter.ts | 100 | 100 | 100 | 100 | + amtrustBusinessType.ts | 87.5 | 100 | 0 | 87.5 | 41 + checkFein.ts | 100 | 100 | 100 | 100 | + createQuoteProposal.test.ts | 0 | 0 | 0 | 0 | 1-347 + createQuoteProposal.ts | 100 | 100 | 100 | 100 | + getAvailableLimits.ts | 100 | 100 | 100 | 100 | + getExistingQuote.ts | 100 | 100 | 100 | 100 | + getIsContractor.test.ts | 0 | 100 | 0 | 0 | 1-288 + getIsContractor.ts | 100 | 100 | 100 | 100 | + getNewQuote.test.ts | 0 | 100 | 0 | 0 | 2-1356 + getNewQuote.ts | 100 | 100 | 100 | 100 | + getProfessions.ts | 100 | 100 | 100 | 100 | + getRulesForOfficer.test.ts | 0 | 100 | 0 | 0 | 3-142 + getRulesForOfficer.ts | 100 | 100 | 100 | 100 | + isSupportedState.ts | 100 | 100 | 100 | 100 | + toAmTrustQuoteInput.ts | 11.84 | 0 | 0 | 12 | 68-305 + toAmtrustDynamicAnswersInput.test.ts | 0 | 100 | 0 | 0 | 2-244 + toAmtrustDynamicAnswersInput.ts | 100 | 100 | 100 | 100 | + updateAnswers.test.ts | 0 | 0 | 0 | 0 | 3-933 + updateAnswers.ts | 100 | 100 | 100 | 100 | + updateOwnerOfficer.test.ts | 0 | 100 | 0 | 0 | 2-1261 + updateOwnerOfficer.ts | 100 | 100 | 100 | 100 | + updateQuote.ts | 100 | 100 | 100 | 100 | + src/context/amTrust/classCodes | 9.3 | 100 | 4.76 | 10.16 | + common.test.ts | 0 | 100 | 0 | 0 | 1-298 + common.ts | 100 | 100 | 100 | 100 | + getClassCodes.ts | 100 | 100 | 100 | 100 | + src/context/amTrust/schema | 93.33 | 100 | 66.66 | 93.33 | + amTrustBusinessKind.ts | 100 | 100 | 100 | 100 | + common.ts | 85.71 | 100 | 50 | 85.71 | 9 + src/context/hubspot | 21.8 | 30.55 | 20 | 21.05 | + formsAdapter.test.ts | 0 | 0 | 0 | 0 | 2-117 + formsAdapter.ts | 100 | 100 | 100 | 100 | + index.test.ts | 0 | 100 | 0 | 0 | 2-480 + index.ts | 100 | 90 | 100 | 100 | 134 + src/models/graphql | 0 | 100 | 100 | 0 | + amTrust.ts | 0 | 100 | 100 | 0 | 1-3 + applicationAnswers.ts | 0 | 100 | 100 | 0 | 1-3 + common.ts | 0 | 100 | 100 | 0 | 1-3 + generatedId.ts | 0 | 100 | 100 | 0 | 1-3 + resolvers.ts | 0 | 100 | 100 | 0 | 1-5 + scalars.ts | 0 | 100 | 100 | 0 | 1-3 + schema.ts | 0 | 100 | 100 | 0 | 1-37 + surveyJSON.ts | 0 | 100 | 100 | 0 | 1-3 + updateCoverage.ts | 0 | 100 | 100 | 0 | 1-3 + src/models/graphql/cancellation | 0 | 100 | 100 | 0 | + cancellation.ts | 0 | 100 | 100 | 0 | 1-3 + src/models/graphql/endorsement | 0 | 100 | 100 | 0 | + Canada.ts | 0 | 100 | 100 | 0 | 1-3 + Ohio.ts | 0 | 100 | 100 | 0 | 1-3 + endorsement.ts | 0 | 100 | 100 | 0 | 1-3 + src/models/graphql/generated | 97.68 | 100 | 85.91 | 99.06 | + document.ts | 94.26 | 100 | 73.07 | 97.45 | 1211-1217 + payment.ts | 96.34 | 100 | 84.21 | 98.75 | 1067 + rating-quoting-mongodb.ts | 100 | 100 | 100 | 100 | + rating-quoting.ts | 100 | 100 | 100 | 100 | + src/models/graphql/operation/document | 18.18 | 100 | 0 | 18.18 | + generateId.test.ts | 0 | 100 | 0 | 0 | 1-5 + generateId.ts | 100 | 100 | 100 | 100 | + generateQuotePdf.ts | 0 | 100 | 100 | 0 | 1-3 + saveApplicationSummaryPdf.ts | 0 | 100 | 100 | 0 | 1-3 + src/models/graphql/operation/payment | 0 | 100 | 100 | 0 | + saveInvoice.ts | 0 | 100 | 100 | 0 | 1-3 + src/models/graphql/quote | 7.4 | 0 | 0 | 7.4 | + generateQuotePdf.test.ts | 0 | 0 | 0 | 0 | 4-40 + generateQuotePdf.ts | 100 | 100 | 100 | 100 | + getQuote.ts | 0 | 100 | 100 | 0 | 1-3 + src/models/graphql/scalars | 5.95 | 100 | 3.6 | 6.81 | + AnswersResolver.ts | 100 | 100 | 100 | 100 | + Byte.test.ts | 0 | 100 | 0 | 0 | 1-174 + Byte.ts | 100 | 100 | 100 | 100 | + CanadaProvinceResolver.ts | 100 | 100 | 100 | 100 | + CanadaTimeZoneResolver.ts | 100 | 100 | 100 | 100 | + DateResolver.test.ts | 0 | 100 | 0 | 0 | 1-894 + DateResolver.ts | 100 | 100 | 100 | 100 | + DateTimeResolver.test.ts | 0 | 100 | 0 | 0 | 1-571 + DateTimeResolver.ts | 100 | 100 | 100 | 100 | + ObjectIdResolver.test.ts | 0 | 100 | 0 | 0 | 1-343 + ObjectIdResolver.ts | 100 | 100 | 100 | 100 | + PolicyDescriptionResolver.test.ts | 0 | 100 | 0 | 0 | 2-323 + PolicyDescriptionResolver.ts | 100 | 100 | 100 | 100 | + UUIDResolver.test.ts | 0 | 100 | 0 | 0 | 1-336 + UUIDResolver.ts | 100 | 100 | 100 | 100 | + src/models/graphql/scalars/utils | 18.3 | 100 | 5.2 | 19.92 | + checkISODate.ts | 100 | 100 | 100 | 100 | + createStringScalarWithSpecificValues.ts | 100 | 100 | 100 | 100 | + toISODateTime.test.ts | 0 | 100 | 0 | 0 | 2-461 + toISODateTime.ts | 100 | 100 | 100 | 100 | + src/models/insurance | 1.32 | 100 | 0 | 1.37 | + Canada.test.ts | 0 | 100 | 0 | 0 | 2-551 + Canada.ts | 100 | 100 | 100 | 100 | + Ohio.test.ts | 0 | 100 | 0 | 0 | 2-224 + Ohio.ts | 100 | 100 | 100 | 100 | + src/models/mongodb | 7.94 | 53.84 | 8.08 | 7.38 | + AmtrustApplicationAnswers.test.ts | 0 | 100 | 0 | 0 | 2-555 + AmtrustApplicationAnswers.ts | 100 | 100 | 100 | 100 | + ApplicationAnswers.ts | 100 | 100 | 100 | 100 | + ApplicationOwner.test.ts | 0 | 100 | 0 | 0 | 1-251 + ApplicationOwner.ts | 100 | 100 | 100 | 100 | + ApplicationStatus.test.ts | 0 | 100 | 0 | 0 | 2-542 + ApplicationStatus.ts | 100 | 100 | 100 | 100 | + FoxcomObject.ts | 100 | 100 | 100 | 100 | + Invoice.test.ts | 0 | 0 | 0 | 0 | 1-627 + Invoice.ts | 100 | 100 | 100 | 100 | + Policy.test.ts | 0 | 0 | 0 | 0 | 2-476 + Policy.ts | 100 | 100 | 100 | 100 | + PolicyPaymentPlan.ts | 100 | 100 | 100 | 100 | + Quote.ts | 100 | 100 | 100 | 100 | + UserAgent.test.ts | 0 | 100 | 0 | 0 | 1-260 + UserAgent.ts | 100 | 100 | 100 | 100 | + WcQuoteRef.ts | 100 | 100 | 100 | 100 | + wrapDB.ts | 100 | 100 | 100 | 100 | + src/models/mongodb/Rating | 0 | 100 | 100 | 0 | + index.ts | 0 | 100 | 100 | 0 | 20-21 + src/models/mongodb/general | 100 | 100 | 100 | 100 | + Currency.ts | 100 | 100 | 100 | 100 | + src/models/mongodb/mutable | 10.63 | 100 | 14.28 | 9.67 | + ActivePolicy.test.ts | 0 | 100 | 0 | 0 | 1-158 + ActivePolicy.ts | 100 | 100 | 100 | 100 | + MutableFoxdenObject.ts | 100 | 100 | 100 | 100 | + src/models/user | 5.07 | 100 | 2.04 | 5.1 | + isBroker.test.ts | 0 | 100 | 0 | 0 | 1-242 + isBroker.ts | 100 | 100 | 100 | 100 | + src/private | 14.6 | 0 | 0 | 14.6 | + index.ts | 0 | 100 | 100 | 0 | 1-9 + resolvers.test.ts | 0 | 0 | 0 | 0 | 2-177 + resolvers.ts | 100 | 100 | 100 | 100 | + src/resolvers | 5.94 | 100 | 4.21 | 5.76 | + cancelPolicyResolver.test.ts | 0 | 100 | 0 | 0 | 2-177 + cancelPolicyResolver.ts | 100 | 100 | 100 | 100 | + fetchQuoteForCancellationResolver.test.ts | 0 | 100 | 0 | 0 | 2-602 + fetchQuoteForCancellationResolver.ts | 100 | 100 | 100 | 100 | + generateQuotePdf.test.ts | 0 | 100 | 0 | 0 | 2-172 + generateQuotePdf.ts | 100 | 100 | 100 | 100 | + getQuoteResolver.test.ts | 0 | 100 | 0 | 0 | 2-292 + getQuoteResolver.ts | 100 | 100 | 100 | 100 | + getRatingResultsResolver.test.ts | 0 | 100 | 0 | 0 | 1-938 + getRatingResultsResolver.ts | 100 | 100 | 100 | 100 | + resetCoverageRecommendationResolver.test.ts | 0 | 100 | 0 | 0 | 2-313 + resetCoverageRecommendationResolver.ts | 100 | 100 | 100 | 100 | + updateCoverageResolver.test.ts | 0 | 100 | 0 | 0 | 2-222 + updateCoverageResolver.ts | 100 | 100 | 100 | 100 | + src/services/mutation | 10 | 100 | 7.57 | 10 | + cancelPolicy.test.ts | 0 | 100 | 0 | 0 | 1-1122 + cancelPolicy.ts | 100 | 100 | 100 | 100 | + src/services/mutation/resetCoverageRecommendation | 30.83 | 53.06 | 23.72 | 30.72 | + getRecommendCoverage.ts | 94.73 | 75 | 100 | 94.73 | 44 + index.test.ts | 0 | 100 | 0 | 0 | 1-467 + index.ts | 100 | 100 | 100 | 100 | + resetGlRecommendation.ts | 90.27 | 71.42 | 100 | 90.14 | 64,100,124,150-156,253,266 + resetGlRecommendations.test.ts | 0 | 0 | 0 | 0 | 1-161 + src/services/mutation/updateCoverage | 13.28 | 100 | 10 | 13.28 | + index.test.ts | 0 | 100 | 0 | 0 | 1-403 + index.ts | 100 | 100 | 100 | 100 | + src/services/mutation/updateCoverage/updateGlCoverage | 22.82 | 67.85 | 12.25 | 22.25 | + coverageAnswersMapper.ts | 100 | 100 | 100 | 100 | + getLimitCoverageChosenMapper.test.ts | 0 | 100 | 0 | 0 | 2-240 + getLimitCoverageChosenMapper.ts | 100 | 100 | 100 | 100 | + getNewAnswers.test.ts | 0 | 100 | 0 | 0 | 2-925 + getNewAnswers.ts | 100 | 100 | 100 | 100 | + getNewRating.test.ts | 0 | 100 | 0 | 0 | 1-555 + getNewRating.ts | 100 | 100 | 100 | 100 | + index.ts | 100 | 100 | 100 | 100 | + updateMunichCoverage.test.ts | 0 | 0 | 0 | 0 | 1-762 + src/services/query | 11.21 | 42.85 | 12.5 | 11.05 | + generateQuotePdf.test.ts | 0 | 100 | 0 | 0 | 2-165 + generateQuotePdf.ts | 100 | 100 | 100 | 100 | + getWcRules.test.ts | 0 | 0 | 0 | 0 | 4-292 + getWcRules.ts | 100 | 100 | 100 | 100 | + src/services/query/TestQuote | 28.69 | 58.33 | 8.57 | 28.44 | + testCaQuote.ts | 100 | 100 | 100 | 100 | + testUsOtherQuote.test.ts | 0 | 0 | 0 | 0 | 2-422 + testUsOtherQuote.ts | 100 | 100 | 100 | 100 | + src/services/query/cancellation | 14.71 | 100 | 3.27 | 14.76 | + sendCancellationEmail.test.ts | 0 | 100 | 0 | 0 | 2-757 + sendCancellationEmail.ts | 100 | 100 | 100 | 100 | + src/services/query/getQuote | 24.38 | 53.29 | 13.48 | 24.3 | + fetchQuote.test.ts | 0 | 100 | 0 | 0 | 1-111 + fetchQuote.ts | 100 | 100 | 100 | 100 | + getFoxdenQuote.ts | 76.15 | 65.68 | 80 | 75.83 | 153,168,203-211,238,253-291,319,338-355,392,408,443,461,510,518-529,535,553 + getRatingResults.ts | 100 | 100 | 100 | 100 | + getSelectedMunichCoverages.test.ts | 0 | 100 | 0 | 0 | 2-296 + getSelectedMunichCoverages.ts | 100 | 100 | 100 | 100 | + index.test.ts | 0 | 0 | 0 | 0 | 1-1040 + index.ts | 95.83 | 73.07 | 100 | 95.83 | 119-122 + sendQuoteEmail.test.ts | 0 | 100 | 0 | 0 | 2-1008 + sendQuoteEmail.ts | 100 | 100 | 100 | 100 | + src/services/query/getQuote/endorsementRating | 11.26 | 17.35 | 3.7 | 11.1 | + calcRoundedPremiumDelta.test.ts | 0 | 100 | 0 | 0 | 1-686 + calcRoundedPremiumDelta.ts | 100 | 100 | 100 | 100 | + calculateAggregationsDelta.ts | 9.09 | 0 | 0 | 7.4 | 49-284 + calculateCommonAggregationsDelta.test.ts | 0 | 0 | 0 | 0 | 2-548 + calculateCommonAggregationsDelta.ts | 100 | 90 | 100 | 100 | 90 + getEndorsementRatingResults.ts | 10.52 | 0 | 0 | 10.71 | 33-44,66-102,114-127,159-444 + getUpdatedLinesOfBusinessUS.test.ts | 0 | 0 | 0 | 0 | 2-969 + getUpdatedLinesOfBusinessUS.ts | 100 | 97.5 | 100 | 100 | 123 + src/services/query/getQuote/getCanadaQuote | 97.61 | 90.69 | 100 | 97.61 | + index.ts | 97.61 | 90.69 | 100 | 97.61 | 130 + src/services/query/getQuote/getOhioQuote | 97.36 | 77.5 | 100 | 97.36 | + index.ts | 97.36 | 77.5 | 100 | 97.36 | 122 + src/services/query/getQuote/getUsOtherStatesQuote | 97.61 | 97.72 | 100 | 97.61 | + index.ts | 97.61 | 97.72 | 100 | 97.61 | 135 + src/services/quoting | 42.25 | 86.17 | 26.31 | 41.42 | + exceptionRules.ts | 95.69 | 83.75 | 100 | 95.65 | 125,212,217,279 + isoHelper.test.ts | 0 | 100 | 0 | 0 | 1-558 + isoHelper.ts | 100 | 100 | 100 | 100 | + src/services/quoting/Canada | 100 | 100 | 100 | 100 | + calMunichProrateFactor.ts | 100 | 100 | 100 | 100 | + calPremium.ts | 100 | 100 | 100 | 100 | + calProrateFactor.ts | 100 | 100 | 100 | 100 | + constants.ts | 100 | 100 | 100 | 100 | + fillData.ts | 100 | 100 | 100 | 100 | + src/services/quoting/Canada/GL | 24.44 | 100 | 11.46 | 24.3 | + abuseAndMolestation.ts | 100 | 100 | 100 | 100 | + baseCGL.test.ts | 0 | 100 | 0 | 0 | 1-871 + baseCGL.ts | 100 | 100 | 100 | 100 | + calGLPremium.ts | 100 | 100 | 100 | 100 | + cglAdditionalLimits.test.ts | 0 | 100 | 0 | 0 | 1-1022 + cglAdditionalLimits.ts | 100 | 100 | 100 | 100 | + cglMeetPolicyMinimum.test.ts | 0 | 100 | 0 | 0 | 1-460 + cglMeetPolicyMinimum.ts | 100 | 100 | 100 | 100 | + constants.ts | 100 | 100 | 100 | 100 | + eo.ts | 100 | 100 | 100 | 100 | + limitedLiability.ts | 100 | 100 | 100 | 100 | + src/services/quoting/Canada/IM | 27.39 | 96.96 | 8.41 | 27.24 | + baileesCustomer.ts | 100 | 100 | 100 | 100 | + biAndEE.test.ts | 0 | 100 | 0 | 0 | 1-509 + biAndEE.ts | 100 | 100 | 100 | 100 | + calIMPremium.ts | 100 | 100 | 100 | 100 | + commercialBusinessItems.test.ts | 0 | 100 | 0 | 0 | 1-521 + commercialBusinessItems.ts | 100 | 100 | 100 | 100 | + commercialContractorsCoverage.ts | 90.9 | 85.71 | 100 | 90.9 | 231-244 + constants.ts | 100 | 100 | 100 | 100 | + imHelper.test.ts | 0 | 100 | 0 | 0 | 1-1162 + imHelper.ts | 100 | 100 | 100 | 100 | + src/services/quoting/US | 23.31 | 15.04 | 12.35 | 25.79 | + calOhioPremium.ts | 100 | 100 | 100 | 100 | + calOtherStatesPremium.ts | 100 | 100 | 100 | 100 | + calPolicyTermMeasurements.ts | 100 | 100 | 100 | 100 | + calProrateFactor.ts | 100 | 100 | 100 | 100 | + constants.ts | 91.66 | 66.66 | 100 | 90.9 | 29 + fillOhioData.test.ts | 0 | 0 | 0 | 0 | 1-715 + fillOhioData.ts | 100 | 100 | 100 | 100 | + fillOtherStatesData.test.ts | 0 | 0 | 0 | 0 | 1-767 + fillOtherStatesData.ts | 100 | 100 | 100 | 100 | + getCsvPath.ts | 100 | 100 | 100 | 100 | + getMinimumPremiumColName.test.ts | 0 | 100 | 0 | 0 | 1-57 + getMinimumPremiumColName.ts | 100 | 100 | 100 | 100 | + statesWithHigherLimits.ts | 100 | 100 | 100 | 100 | + src/services/quoting/US/GL | 17.76 | 100 | 6.5 | 17.66 | + TRIA.ts | 100 | 100 | 100 | 100 | + abuseAndMolestation.test.ts | 0 | 100 | 0 | 0 | 1-522 + abuseAndMolestation.ts | 100 | 100 | 100 | 100 | + additionalInsured.ts | 100 | 100 | 100 | 100 | + baseCGL.test.ts | 0 | 100 | 0 | 0 | 1-1013 + baseCGL.ts | 100 | 100 | 100 | 100 | + calGLPremium.ts | 100 | 100 | 100 | 100 | + cglAdditionalLimits.test.ts | 0 | 100 | 0 | 0 | 1-760 + cglAdditionalLimits.ts | 100 | 100 | 100 | 100 | + cglMeetPolicyMinimum.test.ts | 0 | 100 | 0 | 0 | 1-325 + cglMeetPolicyMinimum.ts | 100 | 100 | 100 | 100 | + employeeBenefits.test.ts | 0 | 100 | 0 | 0 | 1-815 + employeeBenefits.ts | 100 | 100 | 100 | 100 | + eo.test.ts | 0 | 100 | 0 | 0 | 1-1211 + eo.ts | 100 | 100 | 100 | 100 | + limitedLiability.ts | 100 | 100 | 100 | 100 | + src/services/quoting/US/IM | 20.14 | 100 | 12.03 | 20.02 | + baileesCustomer.ts | 100 | 100 | 100 | 100 | + biAndEE.test.ts | 0 | 100 | 0 | 0 | 1-619 + biAndEE.ts | 100 | 100 | 100 | 100 | + calIMPremium.test.ts | 0 | 100 | 0 | 0 | 2-933 + calIMPremium.ts | 100 | 100 | 100 | 100 | + commercialBusinessItems.ts | 100 | 100 | 100 | 100 | + commercialContractorsCoverage.ts | 100 | 100 | 100 | 100 | + constants.ts | 100 | 100 | 100 | 100 | + imHelper.test.ts | 0 | 100 | 0 | 0 | 1-819 + imHelper.ts | 100 | 100 | 100 | 100 | + src/typings | 0 | 0 | 0 | 0 | + loader.d.ts | 0 | 0 | 0 | 0 | + src/utils | 11.9 | 65.47 | 8.54 | 11.48 | + arrayCalculation.ts | 100 | 100 | 100 | 100 | + bijectiveMap.test.ts | 0 | 100 | 0 | 0 | 1-156 + bijectiveMap.ts | 100 | 100 | 100 | 100 | + checkConfigurationFlag.ts | 100 | 100 | 100 | 100 | + deriveQuoteExpireDate.test.ts | 0 | 100 | 0 | 0 | 1-131 + deriveQuoteExpireDate.ts | 100 | 100 | 100 | 100 | + extractReplacementAnswers.test.ts | 0 | 100 | 0 | 0 | 3-682 + extractReplacementAnswers.ts | 100 | 100 | 100 | 100 | + formatDate.test.ts | 0 | 100 | 0 | 0 | 2-151 + formatDate.ts | 100 | 100 | 100 | 100 | + formatPhoneNumber.test.ts | 0 | 100 | 0 | 0 | 1-123 + formatPhoneNumber.ts | 100 | 100 | 100 | 100 | + generateId.test.ts | 0 | 100 | 0 | 0 | 1-334 + generateId.ts | 100 | 100 | 100 | 100 | + getApplicationAnswers.test.ts | 0 | 0 | 0 | 0 | 2-885 + getApplicationAnswers.ts | 100 | 100 | 100 | 100 | + getCancellationData.test.ts | 0 | 100 | 0 | 0 | 1-343 + getCancellationData.ts | 100 | 100 | 100 | 100 | + getConfiguration.test.ts | 0 | 100 | 0 | 0 | 1-444 + getConfiguration.ts | 100 | 100 | 100 | 100 | + getCountryAndProvinceOrState.test.ts | 0 | 100 | 0 | 0 | 2-230 + getCountryAndProvinceOrState.ts | 100 | 100 | 100 | 100 | + getCoveragesMapper.ts | 53.76 | 30.26 | 100 | 52.74 | 246-453,510-515,524-568,583 + getEnv.test.ts | 0 | 0 | 0 | 0 | 2-180 + getEnv.ts | 100 | 100 | 100 | 100 | + getIsQuoteExpired.test.ts | 0 | 100 | 0 | 0 | 1-1125 + getIsQuoteExpired.ts | 96.96 | 100 | 75 | 96.96 | 63 + getJSONFileNameByApplicationId.test.ts | 0 | 100 | 0 | 0 | 1-343 + getJSONFileNameByApplicationId.ts | 100 | 100 | 100 | 100 | + getLatestTransactionDate.test.ts | 0 | 100 | 0 | 0 | 1-1786 + getLatestTransactionDate.ts | 100 | 100 | 100 | 100 | + getProfessionInfoNoDb.ts | 14.28 | 0 | 0 | 14.28 | 34-54 + getQuoteInfo.test.ts | 0 | 100 | 0 | 0 | 1-704 + getQuoteInfo.ts | 100 | 100 | 100 | 100 | + getWcQuoteRef.test.ts | 0 | 100 | 0 | 0 | 1-386 + getWcQuoteRef.ts | 100 | 100 | 100 | 100 | + isArrayOfStrings.test.ts | 0 | 0 | 0 | 0 | 2-233 + isArrayOfStrings.ts | 100 | 100 | 100 | 100 | + isJestRunning.test.ts | 0 | 100 | 0 | 0 | 2-101 + isJestRunning.ts | 100 | 100 | 100 | 100 | + localizeToDateString.ts | 100 | 100 | 100 | 100 | + mergeArraysWithoutDuplicates.ts | 100 | 100 | 100 | 100 | + quotePageHelper.test.ts | 0 | 100 | 0 | 0 | 1-739 + quotePageHelper.ts | 97.91 | 91.66 | 100 | 97.77 | 164 + roundToNDigits.test.ts | 0 | 100 | 0 | 0 | 1-126 + roundToNDigits.ts | 100 | 100 | 100 | 100 | + sendApplicationEmail.test.ts | 0 | 100 | 0 | 0 | 1-669 + sendApplicationEmail.ts | 100 | 100 | 100 | 100 | + sendCancellationEmail.ts | 38.09 | 0 | 0 | 38.09 | 18,22-35,44-66 + startOfDay.ts | 100 | 100 | 100 | 100 | + testEnv.ts | 100 | 100 | 100 | 100 | + timeZone.test.ts | 0 | 100 | 0 | 0 | 1-33 + timeZone.ts | 100 | 100 | 100 | 100 | + truncateDecimals.test.ts | 0 | 100 | 0 | 0 | 1-156 + truncateDecimals.ts | 100 | 100 | 100 | 100 | + updateVariablesHelpers.test.ts | 0 | 0 | 0 | 0 | 1-819 + updateVariablesHelpers.ts | 100 | 100 | 100 | 100 | + versionMapper.test.ts | 0 | 100 | 0 | 0 | 1-208 + versionMapper.ts | 100 | 100 | 100 | 100 | + withContext.test.ts | 0 | 100 | 0 | 0 | 1-749 + withContext.ts | 100 | 100 | 100 | 100 | + src/utils/address | 11.87 | 87.5 | 9.67 | 11.89 | + isAddressType.ts | 57.14 | 0 | 0 | 57.14 | 17-21 + province.test.ts | 0 | 100 | 0 | 0 | 1-339 + province.ts | 100 | 100 | 100 | 100 | + removeAddress2FromStreet.test.ts | 0 | 100 | 0 | 0 | 1-105 + removeAddress2FromStreet.ts | 100 | 100 | 100 | 100 | + src/utils/apollo | 7.37 | 20.27 | 8.73 | 7.11 | + loggingPlugin.test.ts | 0 | 0 | 0 | 0 | 1-1025 + loggingPlugin.ts | 100 | 100 | 100 | 100 | + securityPlugin.test.ts | 0 | 0 | 0 | 0 | 2-583 + securityPlugin.ts | 100 | 100 | 100 | 100 | + src/utils/date | 20 | 100 | 11.11 | 20 | + addYearsWithTimeZone.test.ts | 0 | 100 | 0 | 0 | 1-53 + addYearsWithTimeZone.ts | 100 | 100 | 100 | 100 | + src/utils/graphql | 3.54 | 100 | 3.7 | 4.03 | + createStringScalarWithSpecificValues.test.ts | 0 | 100 | 0 | 0 | 1-376 + createStringScalarWithSpecificValues.ts | 100 | 100 | 100 | 100 | + src/utils/mongodb | 13.48 | 100 | 6.32 | 13.64 | + constants.ts | 0 | 100 | 100 | 0 | 1-3 + getApplicationAnswersView.test.ts | 0 | 100 | 0 | 0 | 2-657 + getApplicationAnswersView.ts | 100 | 100 | 100 | 100 | + getLatestPolicyFromApplicationIdView.ts | 100 | 100 | 100 | 100 | + getLatestQuoteByApplicationId.test.ts | 0 | 100 | 0 | 0 | 2-263 + getLatestQuoteByApplicationId.ts | 100 | 100 | 100 | 100 | + policyAnswersView.ts | 100 | 100 | 100 | 100 | + src/utils/rounding | 9.3 | 100 | 4.16 | 8.23 | + roundHalfAwayFromZero.test.ts | 0 | 100 | 0 | 0 | 1-117 + roundHalfAwayFromZero.ts | 100 | 100 | 100 | 100 | + src/utils/surveyjs | 18.12 | 78.1 | 11.06 | 18.36 | + convertUnderwritingAnwsers.test.ts | 0 | 100 | 0 | 0 | 1-335 + convertUnderwritingAnwsers.ts | 100 | 100 | 100 | 100 | + getSurveyJSON.test.ts | 0 | 0 | 0 | 0 | 3-1108 + getSurveyJSON.ts | 100 | 100 | 100 | 100 | + getSurveyJSONPath.test.ts | 0 | 100 | 0 | 0 | 6-297 + getSurveyJSONPath.ts | 100 | 100 | 100 | 100 | + getSurveyObject.ts | 79.28 | 65.33 | 78.26 | 80.59 | 167-193,220,229,252-257,312,342,375 + src/utils/surveyjs/config | 100 | 100 | 100 | 100 | + workExclusionSpecialCases.ts | 100 | 100 | 100 | 100 | + src/utils/surveyjs/questionAnswersMap | 17.95 | 94.82 | 5.83 | 18.1 | + addAmtrustToQuestionAnswersMap.test.ts | 0 | 100 | 0 | 0 | 1-1137 + addAmtrustToQuestionAnswersMap.ts | 100 | 100 | 100 | 100 | + addMunichToQuestionAnswersMap.ts | 100 | 100 | 100 | 100 | + getFinalQuestionAnswersMap.test.ts | 0 | 0 | 0 | 0 | 1-195 + getFinalQuestionAnswersMap.ts | 95.23 | 87.5 | 100 | 95.23 | 59 + getQuestionAnswersMap.ts | 100 | 100 | 100 | 100 | + getQuestionAnswersMapAmtrust.test.ts | 0 | 100 | 0 | 0 | 1-883 + getQuestionAnswersMapAmtrust.ts | 100 | 100 | 100 | 100 | + getQuestionAnswersMapMunich.test.ts | 0 | 100 | 0 | 0 | 1-400 + getQuestionAnswersMapMunich.ts | 100 | 100 | 100 | 100 | + src/utils/surveyjs/questionAnswersMap/helpers | 8.97 | 96.52 | 7.63 | 8.22 | + getAddressQuestionAnswer.test.ts | 0 | 100 | 0 | 0 | 3-128 + getAddressQuestionAnswer.ts | 100 | 100 | 100 | 100 | + getCheckboxQuestionAnswer.test.ts | 0 | 100 | 0 | 0 | 1-463 + getCheckboxQuestionAnswer.ts | 100 | 100 | 100 | 100 | + getClassDescription.test.ts | 0 | 100 | 0 | 0 | 1-159 + getClassDescription.ts | 100 | 100 | 100 | 100 | + getCoverageOptionQuestionAnswers.test.ts | 0 | 100 | 0 | 0 | 1-144 + getCoverageOptionQuestionAnswers.ts | 100 | 100 | 100 | 100 | + getCustomerQuestionAnswer.ts | 100 | 100 | 100 | 100 | + getDisplayValue.ts | 94.11 | 94.44 | 100 | 92.85 | 21 + getDisplayValueByQuestion.test.ts | 0 | 100 | 0 | 0 | 2-1488 + getDisplayValueByQuestion.ts | 100 | 100 | 100 | 100 | + getMatrixDynamicQuestionAnswer.test.ts | 0 | 100 | 0 | 0 | 3-365 + getMatrixDynamicQuestionAnswer.ts | 100 | 100 | 100 | 100 | + getPanelDynamicQuestionAnswer.test.ts | 0 | 100 | 0 | 0 | 3-694 + getPanelDynamicQuestionAnswer.ts | 100 | 100 | 100 | 100 | + getPartnerCode.test.ts | 0 | 100 | 0 | 0 | 2-255 + getPartnerCode.ts | 100 | 100 | 100 | 100 | + getProfessionPercentageValue.ts | 100 | 83.33 | 100 | 100 | 19 + getQuestionAnswerDetail.test.ts | 0 | 100 | 0 | 0 | 8-1915 + getQuestionAnswerDetail.ts | 100 | 90.32 | 100 | 100 | 35-79,94 + getValueFromChoices.test.ts | 0 | 100 | 0 | 0 | 1-87 + getValueFromChoices.ts | 100 | 100 | 100 | 100 | + getWorkExlucsionList.test.ts | 0 | 100 | 0 | 0 | 1-298 + getWorkExlucsionList.ts | 100 | 100 | 100 | 100 | + index.ts | 100 | 100 | 100 | 100 | + src/utils/zod | 15.17 | 100 | 6.25 | 17.89 | + answers.ts | 100 | 100 | 100 | 100 | + common.test.ts | 0 | 100 | 0 | 0 | 1-132 + common.ts | 100 | 100 | 100 | 100 | +-------------------------------------------------------|---------|----------|---------|---------|----------------------------------------------------------------------------- +Summary of all failing tests +FAIL src/context/amTrust/updateAnswers.test.ts + ● updateAnswers › adversarial null/undefined inputs › should throw TypeError when domain is null (URL constructor rejects it) + + expect(received).rejects.toThrow(expected) + + Expected constructor: TypeError + Received constructor: TypeError + + Received message: "Invalid URL" + +   28 | logger.debug('using input to post dynamic question', { dynamicAnswers }); +  29 | + > 30 | const endpoint = new URL( +  | ^ +  31 | `${domain}/api/v1/quotes/${wcQuoteId}/questions-answers` +  32 | ); +  33 | + + at updateAnswers (src/context/amTrust/updateAnswers.ts:30:20) + at Object. (src/context/amTrust/updateAnswers.test.ts:628:7) + at Object.toThrow (node_modules/expect/build/index.js:2155:20) + at Object. (src/context/amTrust/updateAnswers.test.ts:640:17) + + ● updateAnswers — integration (real axios + local HTTP server) › sends a real POST with the correct method, path, headers, and body + + expect(received).toBe(expected) // Object.is equality + + Expected: "/api/v1/quotes/424242/questions-answers" + Received: "//api/v1/quotes/424242/questions-answers" + +   879 | const [req] = recorded; +  880 | expect(req.method).toBe('POST'); + > 881 | expect(req.url).toBe('/api/v1/quotes/424242/questions-answers'); +  | ^ +  882 | expect(req.headers.authorization).toBe('Bearer integration-token'); +  883 | expect(req.headers['content-type']).toBe('application/json'); +  884 | expect(req.headers.subscriber_id).toBe('integration-subscriber'); + + at Object. (src/context/amTrust/updateAnswers.test.ts:881:21) + + +Test Suites: 1 failed, 188 passed, 189 total +Tests: 2 failed, 35 skipped, 4500 passed, 4537 total +Snapshots: 17 passed, 17 total +Time: 683.321 s +Ran all test suites in 2 projects. +shutting down in memory Mongodb +error Command failed with exit code 1. +info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. + +Exited with code exit status 1 + +``` \ No newline at end of file diff --git a/utils/logs/test_detect_infra_failure.py b/utils/logs/test_detect_infra_failure.py index 21a318121..a94dd4c82 100644 --- a/utils/logs/test_detect_infra_failure.py +++ b/utils/logs/test_detect_infra_failure.py @@ -10,6 +10,15 @@ # Real CI log from SpiderPlus PR 13615 (segfault during PHPUnit) SEGFAULT_LOG_PATH = Path("payloads/github/check_suite/segfault_phpunit_log.txt") +# Real CircleCI `test` job log from Foxquilt/foxden-rating-quoting-backend PR 714. +# App-level console.warn at the top contains "AccessDeniedException" (SSM fetch fell back to defaults — harmless). +# Jest ran to completion and reported `Tests: 2 failed, 35 skipped, 4500 passed` from real assertion bugs in the PR. +# detect_infra_failure used to match "AccessDeniedException" and send the PR down the infra-retry branch, burning 3 empty-commit retries without ever invoking the LLM fix path. +# Must now classify as None (code bug). +PR714_FOXDEN_RATING_QUOTING_LOG_PATH = Path( + "utils/logs/fixtures/foxden_rating_quoting_pr714_circleci_log.txt" +) + NORMAL_TEST_FAILURE_LOG = """\ PHPUnit 9.6.27 by Sebastian Bergmann and contributors. @@ -123,3 +132,11 @@ def test_detect_infra_failure_matches(error_log, expected): def test_detect_infra_failure_no_match(error_log, expected): result = detect_infra_failure(error_log) assert result == expected + + +def test_strip_jest_noise_removes_app_level_access_denied_warn(): + # Real PR 714 CircleCI log: app-level console.warn at the top prints "AccessDeniedException" from an SSM fetch that fell back to a default. + # strip_jest_noise removes that console block inside detect_infra_failure, so the spurious match no longer routes the PR to the infra-retry path. + # Jest still ran and reported real assertion failures further down; classifier must return None so the LLM fix path handles them. + real_log = PR714_FOXDEN_RATING_QUOTING_LOG_PATH.read_text(encoding="utf-8") + assert detect_infra_failure(real_log) is None diff --git a/uv.lock b/uv.lock index 00f7af074..a0462a279 100644 --- a/uv.lock +++ b/uv.lock @@ -596,7 +596,7 @@ wheels = [ [[package]] name = "gitauto" -version = "1.55.0" +version = "1.55.2" source = { virtual = "." } dependencies = [ { name = "annotated-doc" },