Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

config chain integration tests #122

Merged
merged 5 commits into from
Jun 20, 2018
Merged

config chain integration tests #122

merged 5 commits into from
Jun 20, 2018

Conversation

laverya
Copy link
Member

@laverya laverya commented Jun 19, 2018

What I Did

Added an integration test for chained template functions and a related test to verify that saved state does not override readonly values. Changed headless daemon to not rely on persisting state to disk & to cache it in memory, just as the other daemons do.

How I Did it

Added integration tests. Changed headless daemon to also save state to internal variable & return that variable if it is not nil when reading state.

How to verify it

Description for the Changelog

Picture of a BoatShip (not required but encouraged)

image

laverya added 5 commits June 18, 2018 17:19
Add test case showing brokenness.

Change "beta resolves to alpha" and "beta ignore override" tests to make live state != default

hidden is not readonly

apply saved state to writeable items only
the state files we are reading from and writing to do not have to be the same file
@codeclimate
Copy link

codeclimate bot commented Jun 20, 2018

Code Climate has analyzed commit 30c56be and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 76.9% (50% is the threshold).

This pull request will bring the total coverage in the repository to 48.7% (0.3% change).

View more on Code Climate.

@laverya laverya changed the title [WIP] config chain integration tests config chain integration tests Jun 20, 2018
@laverya laverya requested a review from divolgin June 20, 2018 17:05
@laverya laverya merged commit b8b685b into replicatedhq:master Jun 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants