[go: up one dir, main page]

Skip to content

Commit

Permalink
unit test failure and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealFalcon committed Aug 15, 2024
1 parent cf76310 commit 884b803
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/integration_tests/userdata/test_pgp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test PGP signed and encrypted userdata."""

import pytest

from cloudinit import subp
Expand Down
2 changes: 1 addition & 1 deletion tests/unittests/cloudinit/test_user_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_handle_mime_parts(self):
def my_subp(*args, **kwargs):
if args[0][0] == "gpg":
if "Pass:" in kwargs["data"]:
return subp.SubpResult(CLOUD_CONFIG, "")
return subp.SubpResult(CLOUD_CONFIG, "gpg: Good signature")
elif "Fail:" in kwargs["data"]:
raise subp.ProcessExecutionError(
"", "gpg: public key decryption failed", 2, args[0]
Expand Down

0 comments on commit 884b803

Please sign in to comment.