GoogleCloudPlatform / GoogleCloudPlatform/cloud-sql-nodejs-connector

Generate or build certs during tests

Open
#392 0 comments 0 reactions 1 assignee Assigned to @hessjcg View on GitHub
priority: p2 type: feature request
Dominant language
TypeScript
Stars
97
Forks
16
Avg merge
4d 16h
Merged PRs (30d)
4

Description

In the other Cloud SQL Connector repos (Python, Java, Go) we generate/build certs for the tests as part of the tests themselves or test infra.

Node currently has certs that were generated once and are [saved (hardcoded) for tests](https://github.com/GoogleCloudPlatform/cloud-sql-nodejs-connector/blob/4e3f31bff33cc6de8a21ff61ca1c96703bb66dd5/test/fixtures/certs.ts). This is not scalable for different cert types (CAS-based CAS for example) and requires generating new certs and updating the hardcoded values.

Instead node should generate/build certs within its test infra as the other Connector libraries do.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.