mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
use test repo within cb_pages_tests
This commit is contained in:
parent
1254d890a0
commit
9b67eca38b
1 changed files with 2 additions and 2 deletions
|
@ -112,7 +112,7 @@ func TestCustomDomainRedirects(t *testing.T) {
|
||||||
func TestRawCustomDomain(t *testing.T) {
|
func TestRawCustomDomain(t *testing.T) {
|
||||||
log.Println("=== TestRawCustomDomain ===")
|
log.Println("=== TestRawCustomDomain ===")
|
||||||
// test raw domain response for custom domain branch
|
// test raw domain response for custom domain branch
|
||||||
resp, err := getTestHTTPSClient().Get("https://raw.localhost.mock.directory:4430/crystal/raw-test/example") // need cb_pages_tests fork
|
resp, err := getTestHTTPSClient().Get("https://raw.localhost.mock.directory:4430/cb_pages_tests/raw-test/example") // need cb_pages_tests fork
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
if !assert.NotNil(t, resp) {
|
if !assert.NotNil(t, resp) {
|
||||||
t.FailNow()
|
t.FailNow()
|
||||||
|
@ -126,7 +126,7 @@ func TestRawCustomDomain(t *testing.T) {
|
||||||
func TestRawIndex(t *testing.T) {
|
func TestRawIndex(t *testing.T) {
|
||||||
log.Println("=== TestRawCustomDomain ===")
|
log.Println("=== TestRawCustomDomain ===")
|
||||||
// test raw domain response for index.html
|
// test raw domain response for index.html
|
||||||
resp, err := getTestHTTPSClient().Get("https://raw.localhost.mock.directory:4430/crystal/raw-test/@branch-test/index.html") // need cb_pages_tests fork
|
resp, err := getTestHTTPSClient().Get("https://raw.localhost.mock.directory:4430/cb_pages_tests/raw-test/@branch-test/index.html") // need cb_pages_tests fork
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
if !assert.NotNil(t, resp) {
|
if !assert.NotNil(t, resp) {
|
||||||
t.FailNow()
|
t.FailNow()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue