diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-03-23 16:05:48 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-03-23 16:05:48 +0100 |
commit | caf565a6a538bbd66f1867a2608bd6a8ac07d4fd (patch) | |
tree | b8b19ebf66290f774747365eebd5b58c5ec0819f /tests | |
parent | d8b2f7aba3ab58914db6fb0b5234225db1402b15 (diff) | |
parent | af5ff32b9b21a95da71e07e6aee6e07938a195a8 (diff) |
Merge remote-tracking branch 'origin/dev' into wip/cmake
Conflicts:
dependencies.yaml
Change-Id: I15dc8f6d292527b8686271c575b1f57897d17806
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/oauth1/tst_oauth1.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/auto/oauth1/tst_oauth1.cpp b/tests/auto/oauth1/tst_oauth1.cpp index c76ba8f..b68491b 100644 --- a/tests/auto/oauth1/tst_oauth1.cpp +++ b/tests/auto/oauth1/tst_oauth1.cpp @@ -468,7 +468,8 @@ void tst_OAuth1::getToken() QCOMPARE(oauthHeaders["oauth_version"], "1.0"); QString expectedSignature; { - QVariantMap modifiedHeaders = oauthHeaders.unite(parameters); + QVariantMap modifiedHeaders = oauthHeaders; + modifiedHeaders.insert(parameters); modifiedHeaders.remove("oauth_signature"); QOAuth1Signature signature(url, clientCredentials.second, @@ -592,11 +593,13 @@ void tst_OAuth1::prepareRequestSignature() // verify the signature const auto sigString = QUrl::fromPercentEncoding(authArgs.take(oauthSignature) .toByteArray()).toUtf8(); + + authArgs.insert(extraParams); QOAuth1Signature signature(request.url(), consumerSecret, accessKeySecret, QOAuth1Signature::HttpRequestMethod::Custom, - authArgs.unite(extraParams)); + authArgs); signature.setCustomMethodString(operation); const auto signatureData = signature.hmacSha1(); QCOMPARE(signatureData.toBase64(), sigString); |