Commit 02e2f3a3 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[trac922] Test for module name add

parent 54210ba4
......@@ -392,6 +392,24 @@ TEST_F(CCSessionTest, remoteConfig) {
EXPECT_THROW(mccs.addRemoteConfig(ccspecfile("spec2.spec")), CCSessionError);
SCOPED_TRACE("With module name");
// Try adding it with downloading the spec from config manager
ModuleSpec spec(moduleSpecFromFile(ccspecfile("spec2.spec")));
session.getMessages()->add(createAnswer(0, spec.getFullSpec()));
session.getMessages()->add(createAnswer(0, el("{}")));
EXPECT_NO_THROW(module_name = mccs.addRemoteConfig("Spec2"));
EXPECT_EQ("Spec2", module_name);
EXPECT_EQ(1, item1);
TEST_F(CCSessionTest, ignoreRemoteConfigCommands) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment