Skip to content

Commit

Permalink
Extend capabilities test to include desktopEnterpriseChannel check.
Browse files Browse the repository at this point in the history
Signed-off-by: Camila Ayres <[email protected]>
  • Loading branch information
camilasan committed Jul 3, 2024
1 parent bf23b94 commit 952526a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/testcapabilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,21 @@ private slots:

QCOMPARE(serverHasValidSubscription, true);
}

void testSupport_desktopEnterpriseChannel_returnString()
{
QVariantMap supportMap;
const auto defaultChannel = "stable";
supportMap["desktopEnterpriseChannel"] = defaultChannel;

QVariantMap capabilitiesMap;
capabilitiesMap["support"] = supportMap;

const auto &capabilities = OCC::Capabilities(capabilitiesMap);
const auto serverHasValidSubscription = capabilities.serverHasValidSubscription();

QCOMPARE(serverHasValidSubscription, defaultChannel);
}
};

QTEST_GUILESS_MAIN(TestCapabilities)
Expand Down

0 comments on commit 952526a

Please sign in to comment.