Skip to content

api-gateway: e2e gatewayclassconfig test #2344

Closed
sarahalsmiller wants to merge 6 commits intomainfrom
NET-4270-GatewayClassConfig-based-End-to-End-tests
Closed

api-gateway: e2e gatewayclassconfig test #2344
sarahalsmiller wants to merge 6 commits intomainfrom
NET-4270-GatewayClassConfig-based-End-to-End-tests

Conversation

@sarahalsmiller
Copy link
Copy Markdown
Member

Changes proposed in this PR:

  • Add end to end consulapigateway test

How I've tested this PR:

  • Test passes

How I expect reviewers to test this PR:

  • Acceptance test CI job passes

Checklist:

  • [ X ] Tests added
  • CHANGELOG entry added

    HashiCorp engineers only, community PRs should not add a changelog entry.
    Entries should use present tense (e.g. Add support for...)

@sarahalsmiller sarahalsmiller added pr/no-changelog PR does not need a corresponding .changelog entry backport/1.2.x This release branch is no longer active. labels Jun 12, 2023
@sarahalsmiller sarahalsmiller changed the title api-gateway: e2e gatewayclassconfig test (WIP) api-gateway: e2e gatewayclassconfig test Jun 12, 2023
@sarahalsmiller sarahalsmiller marked this pull request as ready for review June 12, 2023 22:48
@sarahalsmiller sarahalsmiller force-pushed the NET-4270-GatewayClassConfig-based-End-to-End-tests branch from 6a39098 to 94315f3 Compare June 13, 2023 14:46
labels := common.LabelsForGateway(gateway)
err = k8client.List(context.Background(), &podList, client.InNamespace(namespace), client.MatchingLabels(labels))
require.NoError(r, err)
require.EqualValues(r, *wantNumber, *deployment.Spec.Replicas)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is the intention for this to assert the length of podList instead of a value on the Deployment that was fetched in the stanza before this one?

"testing"
)

func TestAPIGateway_GatewayClassConfigEndToEnd(t *testing.T) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would you please add a comment here explaining what this test covers? I understand the "End-to-end" phrasing comes from the Jira ticket, but I think that is a given when we are dealing with acceptance tests.

You could shorten it to TestAPIGateway_GatewayClassConfig and just talk about the scaling parameters and whatnot in a comment.

@t-eckert
Copy link
Copy Markdown
Contributor

There are a few extra blank lines that would be nice to tidy up.

Copy link
Copy Markdown
Contributor

@t-eckert t-eckert left a comment

Choose a reason for hiding this comment

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

Great work! Really put my laptop through its paces when I ran it locally.

@sarahalsmiller sarahalsmiller force-pushed the NET-4270-GatewayClassConfig-based-End-to-End-tests branch from 3fa44b5 to 83af2c1 Compare June 14, 2023 14:59
@sarahalsmiller
Copy link
Copy Markdown
Member Author

This acceptance test work was pulled into #2377, as that PR contains a fix for a bug that this test uncovered. Closing.

@github-actions github-actions bot deleted the NET-4270-GatewayClassConfig-based-End-to-End-tests branch September 1, 2025 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/1.2.x This release branch is no longer active. pr/no-changelog PR does not need a corresponding .changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants