Skip to content

Commit

Permalink
fix: change default test website (#5920)
Browse files Browse the repository at this point in the history
  • Loading branch information
haneabogdan authored Oct 15, 2024
1 parent e5e3df8 commit e35bb69
Show file tree
Hide file tree
Showing 36 changed files with 543 additions and 508 deletions.
Binary file added cmd/testworkflow-toolkit/testworkflow-toolkit
Binary file not shown.
10 changes: 4 additions & 6 deletions contrib/executor/cypress/examples/cypress/e2e/simple.cy.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
describe('The Home Page', () => {
it('successfully loads', () => {
cy.visit('https://testkube.kubeshop.io');
describe("The Home Page", () => {
it("successfully loads", () => {
cy.visit("https://testkube-test-page-lipsum.pages.dev/");

cy.contains(
'Testkube provides a Kubernetes-native framework for test definition, execution and results'
);
cy.contains("Testkube");
});
});
2 changes: 1 addition & 1 deletion contrib/executor/example/pkg/runner/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestRun(t *testing.T) {
ctx,
testkube.Execution{
Content: &testkube.TestContent{
Uri: "https://testkube.io",
Uri: "https://testkube-test-page-lipsum.pages.dev/",
},
})

Expand Down
2 changes: 1 addition & 1 deletion contrib/executor/jmeterd/pkg/runner/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ const failureJMX = `<?xml version="1.0" encoding="UTF-8"?>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
<stringProp name="HTTPSampler.domain">testkube.kubeshop.io</stringProp>
<stringProp name="HTTPSampler.domain">testkube-test-page-lipsum.pages.dev</stringProp>
<stringProp name="HTTPSampler.port"></stringProp>
<stringProp name="HTTPSampler.protocol"></stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
Expand Down
2 changes: 1 addition & 1 deletion pkg/executor/containerexecutor/containerexecutor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func TestNewExecutorJobSpecWithArgs(t *testing.T) {
PvcTemplateExtensions: "",
ImagePullSecrets: []string{"secret-name"},
Command: []string{"/bin/curl"},
Args: []string{"-v", "https://testkube.kubeshop.io"},
Args: []string{"-v", "https://testkube-test-page-lipsum.pages.dev/"},
ActiveDeadlineSeconds: 100,
Envs: map[string]string{"key": "value"},
Variables: map[string]testkube.Variable{"aa": {Name: "aa", Value: "bb", Type_: testkube.VariableTypeBasic}},
Expand Down
4 changes: 2 additions & 2 deletions pkg/mapper/tests/kube_openapi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestMapTestCRToAPI(t *testing.T) {
ExecutionLabels: map[string]string{
"": "",
},
Args: []string{"-v", "-X", "GET", "https://testkube.kubeshop.io"},
Args: []string{"-v", "-X", "GET", "https://testkube-test-page-lipsum.pages.dev/"},
Command: []string{"curl"},
Image: "curlimages/curl:7.85.0",
ImagePullSecrets: []v1.LocalObjectReference{
Expand Down Expand Up @@ -89,7 +89,7 @@ func TestMapTestCRToAPI(t *testing.T) {
Namespace: "",
Variables: map[string]testkube.Variable{},
VariablesFile: "",
Args: []string{"-v", "-X", "GET", "https://testkube.kubeshop.io"},
Args: []string{"-v", "-X", "GET", "https://testkube-test-page-lipsum.pages.dev/"},
ArgsMode: "",
Command: []string{"curl"},
Image: "curlimages/curl:7.85.0",
Expand Down
4 changes: 2 additions & 2 deletions pkg/test/detector/detector_test_examples.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const (

exampleArtilleryFilename = "artillery.yaml"
exampleArtilleryContent = `config:
target: "https://testkube.kubeshop.io/"
target: "https://testkube-test-page-lipsum.pages.dev/"
phases:
- duration: 1
arrivalRate: 1
Expand Down Expand Up @@ -136,7 +136,7 @@ const (
}
export default function () {
http.get('https://testkube.kubeshop.io/');
http.get('https://testkube-test-page-lipsum.pages.dev/');
}`

exampleSoapUIFilename = "soapui-project.xml"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var (
DefaultInitPath = filepath.Join(DefaultInternalPath, "init")
DefaultToolkitPath = filepath.Join(DefaultInternalPath, "toolkit")
DefaultTransferDirPath = filepath.Join(DefaultInternalPath, "transfer")
DefaultTmpDirPath = filepath.Join(DefaultInternalPath, "tmp")
DefaultTmpDirPath = "/tmp"
DefaultTransferPort = 60433
DefaultShellHeader = "set -e\n"
DefaultContainerConfig = testworkflowsv1.ContainerConfig{
Expand Down
14 changes: 7 additions & 7 deletions test/artillery/executor-smoke/artillery-smoke-test.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
config:
target: "https://testkube.kubeshop.io/"
target: "https://testkube-test-page-lipsum.pages.dev/"
phases:
- duration: 1
arrivalRate: 1
- duration: 1
arrivalRate: 1
scenarios:
- flow:
- get:
url: "/"
- think: 0.1
- flow:
- get:
url: "/"
- think: 0.1
Loading

0 comments on commit e35bb69

Please sign in to comment.