forked from PolarPanda611/trinity
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetting_test.go
More file actions
21 lines (18 loc) · 792 Bytes
/
Copy pathsetting_test.go
File metadata and controls
21 lines (18 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package trinity
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestLoadWebAppSetting(t *testing.T) {
const (
logFilePath = "./examples/config/webapp_template.yml"
runMode = "Local"
)
s := newSetting(runMode, logFilePath)
assert.Equal(t, "trinity", s.GetProjectName(), "func exec error , test failed")
assert.Equal(t, "HTTP", s.GetSetting().GetWebAppType(), "func exec error , test failed")
assert.Equal(t, false, s.GetSetting().GetServiceMeshAutoRegister(), "func exec error , test failed")
assert.Equal(t, "trinity", s.GetSetting().GetProjectName(), "func exec error , test failed")
assert.Equal(t, "127.0.0.1", s.GetServiceMeshAddress(), "func exec error , test failed")
assert.Equal(t, 8500, s.GetServiceMeshPort(), "func exec error , test failed")
}