Skip to content

Commit

Permalink
Merge pull request #25718 from soltysh/fix_validation
Browse files Browse the repository at this point in the history
Fix minor bit to make oc validation possible & remove unused test files
  • Loading branch information
openshift-merge-robot committed Dec 7, 2020
2 parents 77a1568 + dceb390 commit ee82ae0
Show file tree
Hide file tree
Showing 29 changed files with 71 additions and 1,164 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ test: test-tools
# $5 - output
# It will generate targets {update,verify}-bindata-$(1) logically grouping them in unsuffixed versions of these targets
# and also hooked into {update,verify}-generated for broader integration.
$(call add-bindata,bindata,-ignore ".*\.(go|md)$\" examples/db-templates examples/image-streams examples/sample-app examples/quickstarts/... examples/hello-openshift examples/jenkins/... examples/quickstarts/cakephp-mysql.json test/extended/testdata/... test/integration/testdata,testextended,testdata,test/extended/testdata/bindata.go)
$(call add-bindata,bindata,-ignore ".*\.(go|md)$\" examples/db-templates examples/image-streams examples/sample-app examples/quickstarts/... examples/hello-openshift examples/jenkins/... examples/quickstarts/cakephp-mysql.json test/extended/testdata/...,testextended,testdata,test/extended/testdata/bindata.go)
6 changes: 2 additions & 4 deletions examples/sample-app/application-template-dockerbuild.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,7 @@
"dnsPolicy": "ClusterFirst"
}
}
},
"status": {}
}
},
{
"kind": "Service",
Expand Down Expand Up @@ -413,8 +412,7 @@
"dnsPolicy": "ClusterFirst"
}
}
},
"status": {}
}
}
],
"parameters": [
Expand Down
6 changes: 2 additions & 4 deletions examples/sample-app/application-template-pullspecbuild.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,7 @@
"dnsPolicy": "ClusterFirst"
}
}
},
"status": {}
}
},
{
"kind": "Service",
Expand Down Expand Up @@ -448,8 +447,7 @@
"dnsPolicy": "ClusterFirst"
}
}
},
"status": {}
}
}
],
"parameters": [
Expand Down
6 changes: 2 additions & 4 deletions examples/sample-app/application-template-stibuild.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,7 @@
"dnsPolicy": "ClusterFirst"
}
}
},
"status": {}
}
},
{
"kind": "Service",
Expand Down Expand Up @@ -458,8 +457,7 @@
"dnsPolicy": "ClusterFirst"
}
}
},
"status": {}
}
}
],
"parameters": [
Expand Down
2 changes: 1 addition & 1 deletion test/extended/builds/digest.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
var _ = g.Describe("[sig-builds][Feature:Builds][Slow] completed builds should have digest of the image in their status", func() {
defer g.GinkgoRecover()
var (
imageStreamFixture = exutil.FixturePath("..", "integration", "testdata", "test-image-stream.json")
imageStreamFixture = exutil.FixturePath("testdata", "builds", "test-image-stream.json")
stiBuildFixture = exutil.FixturePath("testdata", "builds", "test-s2i-build.json")
dockerBuildFixture = exutil.FixturePath("testdata", "builds", "test-docker-build.json")
oc = exutil.NewCLI("build-sti-labels")
Expand Down
2 changes: 1 addition & 1 deletion test/extended/builds/labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
var _ = g.Describe("[sig-builds][Feature:Builds] result image should have proper labels set", func() {
defer g.GinkgoRecover()
var (
imageStreamFixture = exutil.FixturePath("..", "integration", "testdata", "test-image-stream.json")
imageStreamFixture = exutil.FixturePath("testdata", "builds", "test-image-stream.json")
stiBuildFixture = exutil.FixturePath("testdata", "builds", "test-s2i-build.json")
dockerBuildFixture = exutil.FixturePath("testdata", "builds", "test-docker-build.json")
oc = exutil.NewCLI("build-sti-labels")
Expand Down
2 changes: 1 addition & 1 deletion test/extended/builds/s2i_env.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var _ = g.Describe("[sig-builds][Feature:Builds][Slow] s2i build with environmen
)

var (
imageStreamFixture = exutil.FixturePath("..", "integration", "testdata", "test-image-stream.json")
imageStreamFixture = exutil.FixturePath("testdata", "builds", "test-image-stream.json")
stiEnvBuildFixture = exutil.FixturePath("testdata", "builds", "test-env-build.json")
podAndServiceFixture = exutil.FixturePath("testdata", "builds", "test-build-podsvc.json")
oc = exutil.NewCLI("build-sti-env")
Expand Down
2 changes: 1 addition & 1 deletion test/extended/cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ os::cmd::expect_success "oc set volumes dc/nginx --add --configmap-name=default-
os::cmd::try_until_text "oc get pods -l deployment-config.name=nginx" 'Running'

# only show single pods in status if they are really single
os::cmd::expect_success 'oc create -f test/integration/testdata/test-deployment-config.yaml'
os::cmd::expect_success 'oc create -f test/extended/testdata/test-deployment-config.yaml'
os::cmd::try_until_text 'oc status' 'dc\/test-deployment-config deploys docker\.io\/openshift\/origin-pod:latest' "$(( 2 * TIME_MIN ))"
os::cmd::try_until_text 'oc status' 'deployment #1 deployed.*- 1 pod' "$(( 2 * TIME_MIN ))"
os::cmd::expect_success_and_not_text 'oc status' 'pod\/test-deployment-config-1-[0-9a-z]{5} runs openshift\/origin-pod'
Expand Down

0 comments on commit ee82ae0

Please sign in to comment.