mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 07:40:56 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			473 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			473 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// Copyright 2023 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
 | 
						|
 | 
						|
package configs_test
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/TeaOSLab/EdgeNode/internal/configs"
 | 
						|
	"gopkg.in/yaml.v3"
 | 
						|
	"testing"
 | 
						|
)
 | 
						|
 | 
						|
func TestLoadClusterConfig(t *testing.T) {
 | 
						|
	config, err := configs.LoadClusterConfig()
 | 
						|
	if err != nil {
 | 
						|
		t.Fatal(err)
 | 
						|
	}
 | 
						|
	t.Logf("%+v", config)
 | 
						|
 | 
						|
	configData, err := yaml.Marshal(config)
 | 
						|
	if err != nil {
 | 
						|
		t.Fatal(err)
 | 
						|
	}
 | 
						|
	t.Log(string(configData))
 | 
						|
}
 |