Andy Bavier | 4a79ec8 | 2018-04-03 09:37:01 -0700 | [diff] [blame] | 1 | |
| 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | |
| 17 | FROM ubuntu:16.04 |
| 18 | |
| 19 | RUN apt-get update && \ |
| 20 | apt-get install -y python python-pip python-setuptools |
| 21 | |
| 22 | RUN pip install robotframework robotframework-requests \ |
| 23 | robotframework-httplibrary robotframework-ride pygments pexpect pyyaml |
| 24 | |
| 25 | RUN pip install -U requests |
| 26 | |
| 27 | RUN mkdir -p /tests |
| 28 | COPY src /tests |
| 29 | COPY src/test/cord-api/Properties/K8S_RestApiProperties.py /tests/test/cord-api/Properties/RestApiProperties.py |
| 30 | |
| 31 | WORKDIR /tests/test/cord-api/Tests |
| 32 | |
| 33 | ENTRYPOINT ["pybot", "-L", "TRACE", "-d", "Log", "-T"] |
| 34 | CMD ["Ch_ServiceTest.txt"] |