Skip to content

Commit

Permalink
Add back container_test (bazelbuild#249)
Browse files Browse the repository at this point in the history
* Add container tests back

* fix the paths
  • Loading branch information
tejal29 authored and dlorenc committed Dec 13, 2017
1 parent e24745a commit 3158116
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 8 deletions.
11 changes: 10 additions & 1 deletion .ci/rules_docker.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
[
{
"node": "docker",
"parameters": {
"tests": ["//tests/docker/..."]
}
},
{
"variation": "",
"configurations": [
{"node": "linux-x86_64"},
{"node": "ubuntu_16.04-x86_64"},
{"node": "darwin-x86_64"}
]
],
"parameters": {
"tests": ["//... except //tests/docker/..."]
}
}
]
7 changes: 0 additions & 7 deletions testdata/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ load(
"container_flatten",
"container_image",
"container_import",
# "container_test",
)

exports_files(["pause.tar"])
Expand Down Expand Up @@ -277,12 +276,6 @@ container_flatten(
image = ":link_with_files_base",
)

# container_test(
# name = "structure_test",
# configs = ["test.yaml"],
# image = ":link_with_files_base",
# )

load("//docker:docker.bzl", "docker_push")

docker_push(
Expand Down
15 changes: 15 additions & 0 deletions tests/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2017 The Bazel Authors. All rights reserved.
#
# 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.

package(default_visibility = ["//visibility:public"])
22 changes: 22 additions & 0 deletions tests/docker/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2017 The Bazel Authors. All rights reserved.
#
# 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.
package(default_visibility = ["//visibility:public"])

load("//contrib:test.bzl", "container_test")

container_test(
name = "structure_test",
configs = ["//tests/docker/configs:test.yaml"],
image = "//testdata:link_with_files_base",
)
15 changes: 15 additions & 0 deletions tests/docker/configs/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2017 The Bazel Authors. All rights reserved.
#
# 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.

exports_files(glob(["*.yaml"]))
File renamed without changes.

0 comments on commit 3158116

Please sign in to comment.