Skip to content

Commit

Permalink
test(core): Additional Lifecycle unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ksentak authored and AdityaKasar committed Oct 10, 2024
1 parent deb47eb commit f338572
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/sdks/core/src/cpp/sdk/cpptest/unit/lifecycleTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,15 @@ TEST_F(LifecycleTest, Close)

EXPECT_EQ(error, Firebolt::Error::None) << "Error on calling Lifecycle.close() method";
}

// Lifecycle.ready method needs events to be supported in mock transport to work

TEST_F(LifecycleTest, Finished)
{
nlohmann::json_abi_v3_11_3::json expectedValues = nlohmann::json::parse(jsonEngine->get_value("Lifecycle.finished"));

Firebolt::IFireboltAccessor::Instance().LifecycleInterface().finished(&error);

EXPECT_EQ(error, Firebolt::Error::None) << "Error on calling Lifecycle.background() method";
}

0 comments on commit f338572

Please sign in to comment.