summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKozoriz <kozorizandriy@gmail.com>2016-05-23 12:27:18 +0300
committerKozoriz <kozorizandriy@gmail.com>2016-05-26 13:20:16 +0300
commita8a8a0592a686c9cbef5bff5eab26c49d8abf491 (patch)
treecc312481250fdd159948dfa82b17a59c5ebcac46
parentaca5418d451f663164bc999e2018fb4c75e1ced2 (diff)
downloadsdl_core-a8a8a0592a686c9cbef5bff5eab26c49d8abf491.tar.gz
Fix tests in policy and sql_pt_representation
-rw-r--r--src/components/policy/test/policy_manager_impl_test.cc4
-rw-r--r--src/components/policy/test/sql_pt_representation_test.cc2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/components/policy/test/policy_manager_impl_test.cc b/src/components/policy/test/policy_manager_impl_test.cc
index 979c7ef4e0..ee07c6d0c1 100644
--- a/src/components/policy/test/policy_manager_impl_test.cc
+++ b/src/components/policy/test/policy_manager_impl_test.cc
@@ -565,7 +565,7 @@ TEST_F(PolicyManagerImplTest, LoadPT_SetInvalidUpdatePT_PTIsNotLoaded) {
}
TEST_F(PolicyManagerImplTest2,
- DISABLED_KmsChanged_SetExceededKms_ExpectCorrectSchedule) {
+ KmsChanged_SetExceededKms_ExpectCorrectSchedule) {
// Arrange
CreateLocalPT("sdl_preloaded_pt.json");
::policy::Counters counter = ::policy::Counters::KILOMETERS;
@@ -573,7 +573,7 @@ TEST_F(PolicyManagerImplTest2,
EXPECT_EQ("UP_TO_DATE", manager->GetPolicyTableStatus());
// Set kms changed but not exceed limit
manager->KmsChanged(51500);
- EXPECT_EQ("UPDATE_NEEDED", manager->GetPolicyTableStatus());
+ EXPECT_EQ("UP_TO_DATE", manager->GetPolicyTableStatus());
// Set kms changed and exceed limit
manager->KmsChanged(52500);
EXPECT_EQ("UPDATE_NEEDED", manager->GetPolicyTableStatus());
diff --git a/src/components/policy/test/sql_pt_representation_test.cc b/src/components/policy/test/sql_pt_representation_test.cc
index cfd923ebe1..98bd419e7a 100644
--- a/src/components/policy/test/sql_pt_representation_test.cc
+++ b/src/components/policy/test/sql_pt_representation_test.cc
@@ -1436,6 +1436,8 @@ TEST(SQLPTRepresentationTest3, RemoveDB_RemoveDB_ExpectFileDeleted) {
delete reps;
}
+// TODO {AKozoriz} : Snapshot must have module meta section, but test
+// generates snapshot without it.
TEST_F(SQLPTRepresentationTest,
DISABLED_GenerateSnapshot_SetPolicyTable_SnapshotIsPresent) {
// Arrange