#157 Show the current openssh configuration - DO NOT MERGE
Closed 3 years ago by plautrba. Opened 3 years ago by plautrba.
tests/ plautrba/selinux test-image-openssh-configuration  into  master

@@ -0,0 +1,41 @@ 

+ export TEST=/CoreOS/selinux-policy/other/test-image

+ export TESTVERSION=1.0

+ 

+ BUILT_FILES=

+ 

+ FILES=$(METADATA) runtest.sh Makefile PURPOSE

+ 

+ .PHONY: all install download clean

+ 

+ run: $(FILES) build

+ 	./runtest.sh

+ 

+ build: $(BUILT_FILES)

+ 	test -x runtest.sh || chmod a+x runtest.sh

+ 

+ clean:

+ 	rm -f *~ $(BUILT_FILES)

+ 

+ 

+ include /usr/share/rhts/lib/rhts-make.include

+ 

+ $(METADATA): Makefile

+ 	@echo "Owner:           Jan Zarsky <jzarsky@redhat.com>" > $(METADATA)

+ 	@echo "Name:            $(TEST)" >> $(METADATA)

+ 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

+ 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

+ 	@echo "Description:     Mount various filesystems, test context options." >> $(METADATA)

+ 	@echo "Type:            Sanity" >> $(METADATA)

+ 	@echo "TestTime:        5m" >> $(METADATA)

+ 	@echo "RunFor:          selinux-policy" >> $(METADATA)

+ 	@echo "Requires:        selinux-policy" >> $(METADATA)

+ 	@echo "Requires:        util-linux" >> $(METADATA)

+ 	@echo "Requires:        e2fsprogs" >> $(METADATA)

+ 	@echo "Requires:        dosfstools" >> $(METADATA)

+ 	@echo "Priority:        Normal" >> $(METADATA)

+ 	@echo "License:         GPLv2+" >> $(METADATA)

+ 	@echo "Confidential:    no" >> $(METADATA)

+ 	@echo "Destructive:     no" >> $(METADATA)

+ 	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5 -RHEL6" >> $(METADATA)

+ 

+ 	rhts-lint $(METADATA)

@@ -0,0 +1,3 @@ 

+ PURPOSE of /CoreOS/selinux-policy/Sanity/mounting

+ Description: Mount various filesystems, test context options.

+ Author: Jan Zarsky <jzarsky@redhat.com>

@@ -0,0 +1,8 @@ 

+ path: /other/mounting

+ summary: Mount various filesystems, test context options

+ description: |

+     Test the context and defcontext options of the mount command. Test

+     different filesystems: ext2, ext3, ext4. XFS, FAT32. Requires

+     e2fsprogs and dosfstools.

+ relevancy:

+     - "distro = rhel-4, rhel-5, rhel-6: False"

@@ -0,0 +1,14 @@ 

+ #!/bin/bash

+ 

+ . /usr/share/beakerlib/beakerlib.sh

+ 

+ rlJournalStart

+     rlPhaseStartTest "Test the image"

+         rlRun "rpm -V openssh-server"

+         rlRun "/usr/sbin/sshd -T"

+         rlRun "cat /etc/ssh/sshd_config"

+         for i in /etc/ssh/sshd_config.d/*; do

+             rlRun "echo $i; cat $i"

+         done

+ rlJournalPrintText

+ rlJournalEnd