Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

t3c integration tests to not modify config file#7028

Merged
rob05c merged 2 commits intoapache:masterfrom
jpappa200:fix-t3c-tests
Aug 19, 2022
Merged

t3c integration tests to not modify config file#7028
rob05c merged 2 commits intoapache:masterfrom
jpappa200:fix-t3c-tests

Conversation

@jpappa200
Copy link
Contributor

Currently, the Cache Config Integration Test framework modifies cache-config/ort-tests/tc-fixtures.json with the ATS RPM version before running. Because this file is checked into git, this creates a git change. It means developers have to revert the file before committing, commit -A, can accidentally commit the file with the injected RPM info, etc.


Which Traffic Control components are affected by this PR?

  • Traffic Control Cache Config (t3c, formerly ORT)

What is the best way to verify this PR?

Run t3c integration tests and see that tc-fixtures.json is not modified.

If this is a bugfix, which Traffic Control versions contained the bug?

Not a bug fix.

PR submission checklist

@ocket8888 ocket8888 added low impact affects only a small portion of a CDN, and cannot itself break one tests related to tests and/or testing infrastructure tech debt rework due to choosing easy/limited solution cache-config Cache config generation labels Aug 19, 2022
Copy link
Member

@rob05c rob05c left a comment

Choose a reason for hiding this comment

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

LGTM. Ran tests, they passed, no local files were modified.

Thanks for this! This has been annoying me for ages

@rob05c rob05c merged commit 2895a4f into apache:master Aug 19, 2022
zrhoffman pushed a commit to zrhoffman/trafficcontrol that referenced this pull request Oct 2, 2022
* write tc-fixtures.json to tmp file and move to container

* use tc-fixtures.json from container
@jpappa200 jpappa200 deleted the fix-t3c-tests branch February 6, 2023 20:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cache-config Cache config generation low impact affects only a small portion of a CDN, and cannot itself break one tech debt rework due to choosing easy/limited solution tests related to tests and/or testing infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants