Search in sources :

Example 1 with DataGridMSIPkgInfo

use of com.emc.metalnx.core.domain.entity.DataGridMSIPkgInfo in project metalnx-web by irods-contrib.

the class DashboardController method getMSIPackageVersion.

@RequestMapping(value = "/msiPackageVersion/", method = RequestMethod.GET)
public String getMSIPackageVersion(Model model) throws DataGridConnectionRefusedException {
    logger.info("getMSIPackageVersion()");
    DataGridMSIPkgInfo msiGridInfo = msiService.getMSIPkgInfo();
    List<DataGridServer> serverList = msiGridInfo.getServers();
    model.addAttribute("msiGridInfo", msiGridInfo);
    model.addAttribute("servers", serverList);
    model.addAttribute("msiAPIVersionSupported", msiAPIVersionSupported);
    return "dashboard/msiPackageVersion";
}
Also used : DataGridMSIPkgInfo(com.emc.metalnx.core.domain.entity.DataGridMSIPkgInfo) DataGridServer(com.emc.metalnx.core.domain.entity.DataGridServer) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 2 with DataGridMSIPkgInfo

use of com.emc.metalnx.core.domain.entity.DataGridMSIPkgInfo in project metalnx-web by irods-contrib.

the class TestPluginService method testServers.

@Test
public void testServers() throws DataGridConnectionRefusedException, DataGridRuleException {
    DataGridMSIPkgInfo msiPkgInfo = msiService.getMSIPkgInfo();
    assertEquals(2, msiPkgInfo.getServers().size());
    for (DataGridServer server : msiPkgInfo.getServers()) assertEquals(msiVersion, server.getMSIVersion());
}
Also used : DataGridMSIPkgInfo(com.emc.metalnx.core.domain.entity.DataGridMSIPkgInfo) DataGridServer(com.emc.metalnx.core.domain.entity.DataGridServer) Test(org.junit.Test)

Example 3 with DataGridMSIPkgInfo

use of com.emc.metalnx.core.domain.entity.DataGridMSIPkgInfo in project metalnx-web by irods-contrib.

the class TestPluginService method testNoPkgMissing.

@Test
public void testNoPkgMissing() throws DataGridConnectionRefusedException, DataGridRuleException {
    DataGridMSIPkgInfo msiPkgInfo = msiService.getMSIPkgInfo();
    assertFalse(msiPkgInfo.isThereAnyPkgMissing());
}
Also used : DataGridMSIPkgInfo(com.emc.metalnx.core.domain.entity.DataGridMSIPkgInfo) Test(org.junit.Test)

Example 4 with DataGridMSIPkgInfo

use of com.emc.metalnx.core.domain.entity.DataGridMSIPkgInfo in project metalnx-web by irods-contrib.

the class TestPluginService method testNoPkgNotSupported.

@Test
public void testNoPkgNotSupported() throws DataGridConnectionRefusedException, DataGridRuleException {
    DataGridMSIPkgInfo msiPkgInfo = msiService.getMSIPkgInfo();
    assertFalse(msiPkgInfo.isThereAnyPkgNotSupported());
}
Also used : DataGridMSIPkgInfo(com.emc.metalnx.core.domain.entity.DataGridMSIPkgInfo) Test(org.junit.Test)

Aggregations

DataGridMSIPkgInfo (com.emc.metalnx.core.domain.entity.DataGridMSIPkgInfo)4 Test (org.junit.Test)3 DataGridServer (com.emc.metalnx.core.domain.entity.DataGridServer)2 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1