mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-11-10 21:32:43 +08:00
```
$ go test -v ./test/api/...
InitServerTestConfig start
InitServerTestConfig init successfully
TearUp
=== RUN TestCreateDataset
dataset_api_test.go:12: Skip TestCreateDataset
dataset_api_test.go:17: TestCreateDataset 1
--- PASS: TestCreateDataset (0.00s)
=== RUN TestCreateUser
user_api_test.go:14: TestCreateUser
--- PASS: TestCreateUser (0.00s)
PASS
TearDown
```
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
31 lines
898 B
Go
31 lines
898 B
Go
//go:build integration
|
|
|
|
//
|
|
// Copyright 2026 The InfiniFlow Authors. All Rights Reserved.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
//
|
|
|
|
package api
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestCreateUser(t *testing.T) {
|
|
//resp, err := http.Post(baseURL+"/users", "application/json", body)
|
|
//assert.NoError(t, err)
|
|
//assert.Equal(t, 201, resp.StatusCode)
|
|
t.Log("TestCreateUser")
|
|
}
|