UT: Use Credentials.to_mapping() in test_credential_telem_send()
This commit is contained in:
parent
068dbbe963
commit
e5d3271b74
|
@ -19,12 +19,7 @@ def credentials_for_test():
|
||||||
|
|
||||||
def test_credential_telem_send(spy_send_telemetry, credentials_for_test):
|
def test_credential_telem_send(spy_send_telemetry, credentials_for_test):
|
||||||
|
|
||||||
expected_data = [
|
expected_data = [Credentials.to_mapping(credentials_for_test)]
|
||||||
{
|
|
||||||
"identity": {"username": USERNAME, "credential_type": "USERNAME"},
|
|
||||||
"secret": {"password": PASSWORD, "credential_type": "PASSWORD"},
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
telem = CredentialsTelem([credentials_for_test])
|
telem = CredentialsTelem([credentials_for_test])
|
||||||
telem.send()
|
telem.send()
|
||||||
|
|
Loading…
Reference in New Issue