Skip to content

test: improve coverage for dataconnect names#10350

Open
joehan wants to merge 3 commits intonextfrom
test/dataconnect-names
Open

test: improve coverage for dataconnect names#10350
joehan wants to merge 3 commits intonextfrom
test/dataconnect-names

Conversation

@joehan
Copy link
Copy Markdown
Member

@joehan joehan commented Apr 15, 2026

Description

Add parsing and validation regex checks for Data Connect entities.

Scenarios Tested

  • Extracting groups for service and connectors

### Description
Add parsing and validation regex checks for Data Connect entities.

### Scenarios Tested
- Extracting groups for service and connectors
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the unit tests for dataconnect/names.ts, moving from a loop-based test structure to individual test cases and adding coverage for parseCloudSQLInstanceName and isGraphqlName. A bug was identified in the parseCloudSQLInstanceName test where the toString() expectation incorrectly references the services collection instead of instances, which likely points to a copy-paste error in the implementation.

Comment thread src/dataconnect/names.spec.ts
@joehan joehan requested a review from aalej April 17, 2026 19:25
@joehan joehan changed the base branch from main to next April 17, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants