11 #include <QtTest/QtTest>
17 void SsuTest::initTestCase()
21 void SsuTest::testCredentialsScope()
25 QCOMPARE(ssu.
credentialsScope(QString(
"store-c-example")), QString(
"store"));
28 QCOMPARE(ssu.domain(), QString(
"default"));
35 QCOMPARE(ssu.
credentialsScope(QString(
"adaptation"),
true), QString(
"vendor"));
39 void SsuTest::testCredentialsScopeStoreAuthRepos()
42 QCOMPARE(ssu.domain(), QString(
"example"));
50 QCOMPARE(ssu.
credentialsScope(QString(
"adaptation"),
true), QString(
"vendor"));
54 void SsuTest::testCredentialsScopeSecureDomainAuth()
60 QCOMPARE(ssu.domain(), QString(
"example2"));
64 QCOMPARE(ssu.
credentialsScope(QString(
"vendor"),
false), QString(
"example2"));
67 QCOMPARE(ssu.
credentialsScope(QString(
"adaptation"),
true), QString(
"example2"));