forked from fabric8io/kubernetes-client
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an integration test for BuildConfig instantiation
We instantiate BuildConfig in Eclipse JKube while doing S2I builds. Adding an integration test for that so that we don't break this again in future. Related to fabric8io#2668
- Loading branch information
1 parent
22e2e6f
commit 839ef1f
Showing
2 changed files
with
235 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
# | ||
# Copyright (C) 2015 Red Hat, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
--- | ||
kind: List | ||
apiVersion: v1 | ||
metadata: {} | ||
items: | ||
- kind: ImageStreamTag | ||
apiVersion: image.openshift.io/v1 | ||
metadata: | ||
name: ruby-25-centos7:latest | ||
creationTimestamp: | ||
labels: | ||
app: ruby-hello-world | ||
annotations: | ||
openshift.io/generated-by: OpenShiftNewApp | ||
openshift.io/imported-from: centos/ruby-25-centos7 | ||
tag: | ||
name: latest | ||
annotations: | ||
from: | ||
kind: DockerImage | ||
name: centos/ruby-25-centos7 | ||
generation: | ||
importPolicy: {} | ||
referencePolicy: | ||
type: '' | ||
generation: 0 | ||
lookupPolicy: | ||
local: false | ||
image: | ||
metadata: | ||
creationTimestamp: | ||
dockerImageMetadata: | ||
kind: DockerImage | ||
apiVersion: '1.0' | ||
Id: '' | ||
Created: | ||
ContainerConfig: {} | ||
dockerImageMetadataVersion: '1.0' | ||
- kind: ImageStream | ||
apiVersion: image.openshift.io/v1 | ||
metadata: | ||
name: ruby-hello-world | ||
creationTimestamp: | ||
labels: | ||
app: ruby-hello-world | ||
annotations: | ||
openshift.io/generated-by: OpenShiftNewApp | ||
spec: | ||
lookupPolicy: | ||
local: false | ||
status: | ||
dockerImageRepository: '' | ||
- kind: BuildConfig | ||
apiVersion: build.openshift.io/v1 | ||
metadata: | ||
name: ruby-hello-world | ||
creationTimestamp: | ||
labels: | ||
app: ruby-hello-world | ||
annotations: | ||
openshift.io/generated-by: OpenShiftNewApp | ||
spec: | ||
triggers: | ||
- type: GitHub | ||
github: | ||
secret: fNT8t2Euy4fGKmqWKwo7 | ||
- type: Generic | ||
generic: | ||
secret: XWUZamVhVLlNOAPDdSbS | ||
- type: ConfigChange | ||
- type: ImageChange | ||
imageChange: {} | ||
source: | ||
type: Git | ||
git: | ||
uri: https://github.com/openshift/ruby-hello-world | ||
strategy: | ||
type: Docker | ||
dockerStrategy: | ||
from: | ||
kind: ImageStreamTag | ||
name: ruby-25-centos7:latest | ||
output: | ||
to: | ||
kind: ImageStreamTag | ||
name: ruby-hello-world:latest | ||
resources: {} | ||
postCommit: {} | ||
nodeSelector: | ||
status: | ||
lastVersion: 0 | ||
- kind: DeploymentConfig | ||
apiVersion: apps.openshift.io/v1 | ||
metadata: | ||
name: ruby-hello-world | ||
creationTimestamp: | ||
labels: | ||
app: ruby-hello-world | ||
annotations: | ||
openshift.io/generated-by: OpenShiftNewApp | ||
spec: | ||
strategy: | ||
resources: {} | ||
triggers: | ||
- type: ConfigChange | ||
- type: ImageChange | ||
imageChangeParams: | ||
automatic: true | ||
containerNames: | ||
- ruby-hello-world | ||
from: | ||
kind: ImageStreamTag | ||
name: ruby-hello-world:latest | ||
replicas: 1 | ||
test: false | ||
selector: | ||
app: ruby-hello-world | ||
deploymentconfig: ruby-hello-world | ||
template: | ||
metadata: | ||
creationTimestamp: | ||
labels: | ||
app: ruby-hello-world | ||
deploymentconfig: ruby-hello-world | ||
annotations: | ||
openshift.io/generated-by: OpenShiftNewApp | ||
spec: | ||
containers: | ||
- name: ruby-hello-world | ||
image: ruby-hello-world:latest | ||
ports: | ||
- containerPort: 8080 | ||
protocol: TCP | ||
resources: {} | ||
status: | ||
latestVersion: 0 | ||
observedGeneration: 0 | ||
replicas: 0 | ||
updatedReplicas: 0 | ||
availableReplicas: 0 | ||
unavailableReplicas: 0 | ||
- kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: ruby-hello-world | ||
creationTimestamp: | ||
labels: | ||
app: ruby-hello-world | ||
annotations: | ||
openshift.io/generated-by: OpenShiftNewApp | ||
spec: | ||
ports: | ||
- name: 8080-tcp | ||
protocol: TCP | ||
port: 8080 | ||
targetPort: 8080 | ||
selector: | ||
app: ruby-hello-world | ||
deploymentconfig: ruby-hello-world | ||
status: | ||
loadBalancer: {} |