mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-12 21:40:29 +00:00
Encode/decode working everywhere now.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package cloudcfg
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"testing"
|
||||
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
|
||||
@@ -16,7 +15,7 @@ func TestParseBadStorage(t *testing.T) {
|
||||
}
|
||||
|
||||
func DoParseTest(t *testing.T, storage string, obj interface{}) {
|
||||
json_data, _ := json.Marshal(obj)
|
||||
json_data, _ := api.Encode(obj)
|
||||
yaml_data, _ := yaml.Marshal(obj)
|
||||
t.Logf("Intermediate yaml:\n%v\n", string(yaml_data))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user