Пример #1
0
        /// <summary>
        /// /db/data/index/node should be a resource with no content
        /// </summary>
        /// <exception cref="Exception"> </exception>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldRespondWithNodeIndexes() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldRespondWithNodeIndexes()
        {
            JaxRsResponse response = RestRequest.Req().get(_functionalTestHelper.nodeIndexUri());

            AssertResponseContainsNoIndexesOtherThanAutoIndexes(response);
            response.Close();
        }
Пример #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldGetNodeIndexRoot()
        public virtual void ShouldGetNodeIndexRoot()
        {
            JaxRsResponse response = RestRequest.Req().get(_functionalTestHelper.nodeIndexUri(), MediaType.TEXT_HTML_TYPE);

            assertEquals(Status.OK.StatusCode, response.Status);
            AssertValidHtml(response.Entity);
            response.Close();
        }
Пример #3
0
        /// <summary>
        /// Create an auto index for nodes with specific configuration.
        /// </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldCreateANodeAutoIndexWithGivenFullTextConfiguration()
        public virtual void ShouldCreateANodeAutoIndexWithGivenFullTextConfiguration()
        {
            string responseBody = Gen.get().expectedStatus(201).payload("{\"name\":\"node_auto_index\", \"config\":{\"type\":\"fulltext\",\"provider\":\"lucene\"}}").post(_functionalTestHelper.nodeIndexUri()).entity();

            assertThat(responseBody, containsString("\"type\" : \"fulltext\""));
        }