Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: valum-framework/valum
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ea889b43b90fb68f6676a83f46c41fa178311de0
Choose a base ref
..
head repository: valum-framework/valum
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 851a8bb280e0c9b0c4a577312841c2a0af41b7a6
Choose a head ref
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/vsgi/test_cookies.vala
6 changes: 3 additions & 3 deletions tests/vsgi/test_cookies.vala
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ public void test_vsgi_cookies_sign () {

var signature = VSGI.Cookies.sign (cookie, ChecksumType.SHA256, "secret".data);

assert ("1f45ecc8f4d5a281d0f1ed0085a448a9814d960dd0aa0e8fc933820e0f4d7ff93d5259bc8d3d0887eade2221c515e208954714defedffbf195895245f10b30a4value" == signature);
assert ("5d5305a844da2aa20b85bccd0067abf794ff439a9749c17527d8d9f7c2a6cf87value" == signature);
}

/**
@@ -84,7 +84,7 @@ public void test_vsgi_cookies_sign_empty_cookie () {
var cookie = new Soup.Cookie ("name", "", "0.0.0.0", "/", 3600);
var signature = VSGI.Cookies.sign (cookie, ChecksumType.SHA256, "secret".data);

assert ("e28b8f776996beb02e1d45d2ce4603013f3fcbb7353fc2d4fa5999be1b1c164652a4675387a41a44e17b283441e47889f5b6f539c0ab0704ce789ebff4e52377" == signature);
assert ("d6c8fc143254f1f9135210d09f6058414bbec029cc267f1e9c5e70da347eb3e9" == signature);
}

/**
@@ -105,7 +105,7 @@ public void test_vsgi_cookies_sign_and_verify () {
*/
public void test_vsgi_cookies_verify () {
var cookie = new Soup.Cookie ("name",
"1f45ecc8f4d5a281d0f1ed0085a448a9814d960dd0aa0e8fc933820e0f4d7ff93d5259bc8d3d0887eade2221c515e208954714defedffbf195895245f10b30a4value",
"5d5305a844da2aa20b85bccd0067abf794ff439a9749c17527d8d9f7c2a6cf87value",
"0.0.0.0",
"/",
3600);