Skip to content

Commit 6f7d6cb

Browse files
authored
Merge pull request #210 from waterkip/tests
Use method, not Moose interals in tests
2 parents 78fc289 + a7dac91 commit 6f7d6cb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

t/21-artifact-response.t

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ isa_ok($assertion, "Net::SAML2::Protocol::Assertion");
9494

9595
is($assertion->valid("https://netsaml2-testapp.local"), "1", "Assertion is Valid - ok");
9696

97-
is($assertion->{in_response_to}, 'NETSAML2_2b2bcaa750d745ed5ffec2e3cc3a905ab855de0f7970d9391427641a720e6a97', "Assertion InResponseTo - ok");
97+
is($assertion->in_response_to, 'NETSAML2_2b2bcaa750d745ed5ffec2e3cc3a905ab855de0f7970d9391427641a720e6a97', "Assertion InResponseTo - ok");
9898

99-
is($assertion->{id}, 'ID_ef9c4328-63de-4d55-ae05-e5342e67f36c', "Assertion ID - ok");
99+
is($assertion->id, 'ID_ef9c4328-63de-4d55-ae05-e5342e67f36c', "Assertion ID - ok");
100100

101101
$assertion = Net::SAML2::Protocol::Assertion->new_from_xml(
102102
xml => $assertion_artifact->get_response(),
@@ -106,9 +106,9 @@ isa_ok($assertion, "Net::SAML2::Protocol::Assertion", "from get_response");
106106

107107
is($assertion->valid("https://netsaml2-testapp.local"), "1", "Assertion is Valid - ok");
108108

109-
is($assertion->{in_response_to}, 'NETSAML2_2b2bcaa750d745ed5ffec2e3cc3a905ab855de0f7970d9391427641a720e6a97', "Assertion InResponseTo - ok");
109+
is($assertion->in_response_to, 'NETSAML2_2b2bcaa750d745ed5ffec2e3cc3a905ab855de0f7970d9391427641a720e6a97', "Assertion InResponseTo - ok");
110110

111-
is($assertion->{id}, 'ID_ef9c4328-63de-4d55-ae05-e5342e67f36c', "Assertion ID - ok");
111+
is($assertion->id, 'ID_ef9c4328-63de-4d55-ae05-e5342e67f36c', "Assertion ID - ok");
112112

113113
########################################
114114
# LogoutResponse from ArtifactResponse #
@@ -127,9 +127,9 @@ isa_ok($logout, "Net::SAML2::Protocol::LogoutResponse");
127127

128128
ok($logout->success(), "Logout Response has a Success");
129129

130-
is($logout->{response_to}, 'NETSAML2_0b499739aa1d76eb80093a068053b8fee62cade60f7dc27826d0f13b19cad16a', "Logout Response InResponseTo - ok");
130+
is($logout->response_to, 'NETSAML2_0b499739aa1d76eb80093a068053b8fee62cade60f7dc27826d0f13b19cad16a', "Logout Response InResponseTo - ok");
131131

132-
is($logout->{id}, 'ID_bfc25851-4da2-4420-8240-9103b77b12dc', "Logout Response Id - ok");
132+
is($logout->id, 'ID_bfc25851-4da2-4420-8240-9103b77b12dc', "Logout Response Id - ok");
133133

134134
$logout = Net::SAML2::Protocol::LogoutResponse->new_from_xml(
135135
xml => $logout_artifact->get_response(),
@@ -139,6 +139,6 @@ isa_ok($logout, "Net::SAML2::Protocol::LogoutResponse", "from get_response");
139139

140140
ok($logout->success(), "Logout Response has a Success");
141141

142-
is($logout->{response_to}, 'NETSAML2_0b499739aa1d76eb80093a068053b8fee62cade60f7dc27826d0f13b19cad16a', "Logout Response InResponseTo - ok");
142+
is($logout->response_to, 'NETSAML2_0b499739aa1d76eb80093a068053b8fee62cade60f7dc27826d0f13b19cad16a', "Logout Response InResponseTo - ok");
143143

144144
done_testing;

0 commit comments

Comments
 (0)