@@ -26,15 +27,27 @@ func riofileTests(t *testing.T, when spec.G, it spec.S) {
it("should correctly build the system",func(){
// Export check
// todo: fix during https://github.com/rancher/rio/issues/641
//assert.Equal(t, strings.Trim(riofile.Readfile(), "\n"), strings.Trim(riofile.ExportStack(), "\n"), "should have stack export be same as original file")
// external services
export,err:=riofile.ExportStack()
assert.Nil(t,err)
orig,err:=riofile.Readfile()
assert.Nil(t,err)
assert.True(t,reflect.DeepEqual(orig["services"],export["services"]),"export should have same services as file")
assert.True(t,reflect.DeepEqual(orig["externalservices"],export["externalservices"]),"export should have same externalservices as file")
assert.True(t,reflect.DeepEqual(orig["routers"],export["routers"]),"export should have same routers as file")
@@ -69,10 +83,12 @@ func riofileTests(t *testing.T, when spec.G, it spec.S) {
riofile.Remove()
})
it("should bringup the k8s sample app",func(){
// Export check
// todo: fix during https://github.com/rancher/rio/issues/641
//assert.Equal(t, strings.Trim(riofile.Readfile(), "\n"), strings.Trim(riofile.ExportStack(), "\n"), "should have stack export be same as original file")
it("should bring up the k8s sample app",func(){
// Export check, ensure manifest services end up as rio services