- getDataWithUrl("/config/", Draft02.MediaTypes.DATA + JSON, 400);
- getDataWithUrl("/config/", Draft02.MediaTypes.DATA + XML, 400);
- getDataWithUrl("/config/", MediaType.APPLICATION_JSON, 400);
- getDataWithUrl("/config/", MediaType.APPLICATION_XML, 400);
- getDataWithUrl("/config/", MediaType.TEXT_XML, 400);
- }
-
- /**
- * Tests {@link RestconfImpl#readAllData() readAllData()} method of
- * RestconfImpl with url {@code "/datastore"}. Currently the method isn't
- * supported so it returns 500
- */
- @Test
- public void getDatastoreDataAllTest500() throws UnsupportedEncodingException {
- getDatastoreAllDataTest(Draft01.MediaTypes.DATASTORE + XML);
- getDatastoreAllDataTest(Draft01.MediaTypes.DATASTORE + JSON);
- }
-
- /**
- *
- * Tests {@link RestconfImpl#getModules getModules} method of RestconfImpl
- * with uri {@code "/modules"}. Currently the method isn't supported so it
- * returns 500
- */
- @Test
- public void getModulesDataTest500() throws UnsupportedEncodingException {
- getModulesDataTest(Draft01.MediaTypes.API + JSON);
- getModulesDataTest(Draft01.MediaTypes.API + XML);
- getModulesDataTest(Draft02.MediaTypes.API + JSON);
- getModulesDataTest(Draft02.MediaTypes.API + XML);
- }
-
- /**
- * Test of request for not existing data. Returning status code 404
- */
- @Test
- public void getDataWithUrlNoExistingDataTest404() throws UnsupportedEncodingException, URISyntaxException {
- String uri = createUri("/datastore/", "ietf-interfaces:interfaces/interface/eth0");