cmd/golangorg: move test case that needs internet to live.txt
One test case added in CL 388016 depends on production resources,
specifically the snippet https://play.golang.org/p/MAohLsrz7JQ.go
served by the production instance of the Go playground.
This would be caught by TryBots where internet access is disabled,
but that didn't happen due to golang/go#51444.
Updates golang/go#51181.
Fixes golang/go#51439.
Change-Id: I4f1c5ea1a6ccad9ae4e5cbb749e3dee0b26731b5
Reviewed-on: https://go-review.googlesource.com/c/website/+/389394
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Jamal Carvalho <jamalcarvalho@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
diff --git a/cmd/golangorg/testdata/godev.txt b/cmd/golangorg/testdata/godev.txt
index 8624c8b..a85ef48 100644
--- a/cmd/golangorg/testdata/godev.txt
+++ b/cmd/golangorg/testdata/godev.txt
@@ -43,19 +43,13 @@
body contains The Go Playground
body contains About the Playground
-GET https://go.dev/play/p/MAohLsrz7JQ.go
-header Content-Type == text/plain; charset=utf-8
-body !contains The Go Playground
-body !contains About the Playground
-body contains Hello, 世界
-
GET https://golang.google.cn/play/p/asdfasdf
code == 500
body contains Sorry, but shared playground snippets are not visible in China.
body !contains The Go Playground
body !contains About the Playground
-GET https://golang.google.cn/play/p/MAohLsrz7JQ.go
+GET https://golang.google.cn/play/p/asdfasdf.go
code == 500
body contains Sorry, but shared playground snippets are not visible in China.
diff --git a/cmd/golangorg/testdata/live.txt b/cmd/golangorg/testdata/live.txt
index ba30bc9..fe310ec 100644
--- a/cmd/golangorg/testdata/live.txt
+++ b/cmd/golangorg/testdata/live.txt
@@ -56,3 +56,9 @@
postbody
package main
body !contains UA-
+
+GET https://go.dev/play/p/MAohLsrz7JQ.go
+header Content-Type == text/plain; charset=utf-8
+body !contains The Go Playground
+body !contains About the Playground
+body contains Hello, 世界