Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests to #81 #82

Merged
merged 2 commits into from
Jan 8, 2021
Merged

Add tests to #81 #82

merged 2 commits into from
Jan 8, 2021

Conversation

mjcarroll
Copy link
Contributor

This adds a simple check to verify that the env directives apply
to everything in the ignition namespace, as fixed in #81.

The test itself is a bit of a workaround. We don't have a mechanism
for checking the manager output, and executable command directives
cannot expand environment variables.

This writes a script that is executed by the test to verify that a
file specified by an environment variable is touch-ed

Signed-off-by: Michael Carroll [email protected]

This adds a simple check to verify that the env directives apply
to everything in the ignition namespace, as fixed in #81.

The test itself is a bit of a workaround. We don't have a mechanism
for checking the manager output, and executable command directives
cannot expand environment variables.

This writes a script that is executed by the test to verify that a
file specified by an environment variable is touch-ed

Signed-off-by: Michael Carroll <[email protected]>
@mjcarroll mjcarroll requested a review from nkoenig as a code owner January 7, 2021 18:07
Copy link
Contributor

@nkoenig nkoenig left a comment

Choose a reason for hiding this comment

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

Not sure if this test will work on Windows. If not, then we can make it run only on linux.

src/Manager_TEST.cc Show resolved Hide resolved
Signed-off-by: Michael Carroll <[email protected]>
@codecov
Copy link

codecov bot commented Jan 8, 2021

Codecov Report

❗ No coverage uploaded for pull request base (reorder_env_parsing@fb9bd5f). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@                  Coverage Diff                   @@
##             reorder_env_parsing      #82   +/-   ##
======================================================
  Coverage                       ?   30.24%           
======================================================
  Files                          ?        3           
  Lines                          ?      734           
  Branches                       ?        0           
======================================================
  Hits                           ?      222           
  Misses                         ?      512           
  Partials                       ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fb9bd5f...01689e3. Read the comment docs.

@mjcarroll mjcarroll merged commit 44ce4e0 into reorder_env_parsing Jan 8, 2021
@mjcarroll mjcarroll deleted the add_tests_81 branch January 8, 2021 15:30
nkoenig added a commit that referenced this pull request Jan 8, 2021
* Fix env parsing by placing it before executable parsing

Signed-off-by: Nate Koenig <[email protected]>

* Add tests to #81 (#82)

This adds a simple check to verify that the env directives apply
to everything in the ignition namespace, as fixed in #81.

The test itself is a bit of a workaround. We don't have a mechanism
for checking the manager output, and executable command directives
cannot expand environment variables.

This writes a script that is executed by the test to verify that a
file specified by an environment variable is touch-ed

Signed-off-by: Michael Carroll <[email protected]>

Co-authored-by: Nate Koenig <[email protected]>
Co-authored-by: Michael Carroll <[email protected]>
nkoenig added a commit that referenced this pull request Jan 8, 2021
* Fix env parsing by placing it before executable parsing

Signed-off-by: Nate Koenig <[email protected]>

* Add tests to #81 (#82)

This adds a simple check to verify that the env directives apply
to everything in the ignition namespace, as fixed in #81.

The test itself is a bit of a workaround. We don't have a mechanism
for checking the manager output, and executable command directives
cannot expand environment variables.

This writes a script that is executed by the test to verify that a
file specified by an environment variable is touch-ed

Signed-off-by: Michael Carroll <[email protected]>

Co-authored-by: Nate Koenig <[email protected]>
Co-authored-by: Michael Carroll <[email protected]>

Co-authored-by: Nate Koenig <[email protected]>
Co-authored-by: Michael Carroll <[email protected]>
nkoenig added a commit that referenced this pull request Jan 8, 2021
* Fix env parsing by placing it before executable parsing (#81)

* Fix env parsing by placing it before executable parsing

Signed-off-by: Nate Koenig <[email protected]>

* Add tests to #81 (#82)

This adds a simple check to verify that the env directives apply
to everything in the ignition namespace, as fixed in #81.

The test itself is a bit of a workaround. We don't have a mechanism
for checking the manager output, and executable command directives
cannot expand environment variables.

This writes a script that is executed by the test to verify that a
file specified by an environment variable is touch-ed

Signed-off-by: Michael Carroll <[email protected]>

Co-authored-by: Nate Koenig <[email protected]>
Co-authored-by: Michael Carroll <[email protected]>

* Prep for 2.2.1 release (#84)

Signed-off-by: Nate Koenig <[email protected]>

Co-authored-by: Nate Koenig <[email protected]>

Co-authored-by: Nate Koenig <[email protected]>
Co-authored-by: Michael Carroll <[email protected]>
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