From d72fb73441a06012ec177d1584652f4483989f96 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Feb 12 2019 21:42:21 +0000 Subject: Unsupported --- diff --git a/.gitignore b/.gitignore deleted file mode 100644 index e69de29..0000000 --- a/.gitignore +++ /dev/null diff --git a/Makefile b/Makefile deleted file mode 100644 index 8d2ceab..0000000 --- a/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -.PHONY: build run default - -IMAGE_NAME = chrony - - -default: run - -build: - docker build --tag=$(IMAGE_NAME) . - -run: build - # gives too many permissions, avoid using this if possible: - # docker run --privileged -v /etc/chrony.conf:/etc/chrony.conf:ro -d $(IMAGE_NAME) - # better solution, needs docker-1.12: - #docker run --net=host --cap-add SYS_TIME -v /etc/chrony.conf:/etc/chrony.conf:ro -d $(IMAGE_NAME) - docker run --net=host -p 123:123 --cap-add SYS_TIME -d $(IMAGE_NAME) - -runfg: build - # gives too many permissions: - # docker run --privileged -v /etc/chrony.conf:/etc/chrony.conf:ro $(IMAGE_NAME) - # better solution, needs docker-1.12: - #docker run --net=host -it --cap-add SYS_TIME -v /etc/chrony.conf:/etc/chrony.conf:ro $(IMAGE_NAME) - docker run --net=host -p 123:123 -it --cap-add SYS_TIME $(IMAGE_NAME) - -test: build - cd tests; MODULE=docker MODULEMD=$(MODULEMDURL) URL="docker=$(IMAGE_NAME)" make all -# cd tests; MODULE=rpm MODULEMD=$(MODULEMDURL) URL="docker=$(IMAGE_NAME)" make all diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..cfb6fca --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +Unsupported diff --git a/sources b/sources deleted file mode 100644 index e69de29..0000000 --- a/sources +++ /dev/null diff --git a/tests/Makefile b/tests/Makefile deleted file mode 100644 index 8fd8ae7..0000000 --- a/tests/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -MODULE_LINT=/usr/share/moduleframework/tools/modulelint.py -CMD=python -m avocado run --filter-by-tags=-WIP $(MODULE_LINT) *.py - -# -all: - $(CMD) diff --git a/tests/config.yaml b/tests/config.yaml deleted file mode 100644 index 0ad0034..0000000 --- a/tests/config.yaml +++ /dev/null @@ -1,13 +0,0 @@ -document: modularity-testing -version: 1 -name: chrony -modulemd-url: https://src.fedoraproject.org/cgit/modules/chronyd.git/plain/chrony.yaml -service: - port: 123 -module: - docker: - start: "docker run -it --net=host --cap-add SYS_TIME" - container: chrony - rpm: - repos: - - http://mirror.vutbr.cz/fedora/releases/26/Everything/x86_64/os/ diff --git a/tests/sanity1.py b/tests/sanity1.py deleted file mode 100644 index 42010af..0000000 --- a/tests/sanity1.py +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- -# -# This Modularity Testing Framework helps you to write tests for modules -# Copyright (C) 2017 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# he Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Authors: Rado Pitonak -# - -from avocado import main -from avocado.core import exceptions -from moduleframework import module_framework -import time - - -class SanityCheck1(module_framework.AvocadoTest): - """ - :avocado: enable - """ - - def test1(self): - self.start() - self.run("ls / | grep bin") - - def test2Version(self): - version = "2.4.1" - self.start() - self.run("chronyd --version | grep " + version) - - def test3ChronyRunning(self): - self.start() - time.sleep(1) - self.runHost("ntpdate -q localhost") - - -if __name__ == '__main__': - main() diff --git a/tests/simpleTest.py b/tests/simpleTest.py deleted file mode 100644 index 780e387..0000000 --- a/tests/simpleTest.py +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- -# -# This Modularity Testing Framework helps you to write tests for modules -# Copyright (C) 2017 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# he Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Authors: Jan Scotka -# - -from moduleframework import module_framework -import os - - -class simpleTests(module_framework.AvocadoTest): - """ - :avocado: enable - """ - - def testPath(self): - print ">>>>>>>>>>>>>> ", module_framework.__file__ - print ">>>>>>>>>>>>>> ", __file__ - - def testAssertIn(self): - self.start() - self.assertIn("sbin", self.run("ls /").stdout) - - def testInsideModule(self): - self.start() - self.assertEqual("a", self.run("echo a").stdout.strip()) - - def testCommandOnHost(self): - self.start() - self.assertEqual("a", self.runHost("echo a").stdout.strip())