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

control-service: only delete file in test path #1545

Merged
merged 4 commits into from
Jan 24, 2023

Conversation

murphp15
Copy link
Collaborator

Why

In my previous PR I merged code which deletes an empty keytab file, so that we keep only the filename.
This is the desired behaviour for the test kdc server as it expects no file to be at the file location.
However the production path expects there to be an empty file there.

What

Push the delete logic into the test impl so that we aren't modifying the production code path.

How has this been tested

entire deployment pipeline

Open questions

Should more of the pipeline run on branches as it would have caught this issue?

Signed-off-by: murphp15 murphp15@tcd.ie

Signed-off-by: murphp15 <murphp15@tcd.ie>
@antoniivanov
Copy link
Collaborator

How did you catch the regression ? Did vdk-heartbeat post deployment test fail? It seems so. That's good. That's the purpose of the test to catch issues in real deployment. Or was some other way ?

@antoniivanov
Copy link
Collaborator

antoniivanov commented Jan 24, 2023

The integration test is now failing btw. Maybe we need a flag or something like this to control the behaviour ... ?

@murphp15
Copy link
Collaborator Author

How did you catch the regression ? Did vdk-heartbeat post deployment test fail? It seems so. That's good. That's the purpose of the test to catch issues in real deployment. Or was some other way ?

Yeah was caught by the heartbeart test

@murphp15 murphp15 enabled auto-merge (squash) January 24, 2023 13:31
@murphp15 murphp15 merged commit cffd4c1 into main Jan 24, 2023
@murphp15 murphp15 deleted the person/murphp15/delete_file_only_in_test_path branch January 24, 2023 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants