initial testing for directory server via nspawn in MTF
This commit is contained in:
parent
881043f6cb
commit
c2aea05d1d
4 changed files with 48 additions and 1 deletions
11
README.md
11
README.md
|
|
@ -1,3 +1,12 @@
|
|||
# 389-ds
|
||||
|
||||
The 389-ds package
|
||||
The 389-ds package
|
||||
|
||||
## how to test module
|
||||
|
||||
* Install meta-test-family: http://meta-test-family.readthedocs.io/en/latest/installation.html
|
||||
* Find/Create compose and use it as input `URL` envvar
|
||||
```
|
||||
COMPOSE=http://ftp.fi.muni.cz/pub/linux/fedora/linux/releases/26/Everything/x86_64/os/
|
||||
sudo MODULE=nspawn URL=$COMPOSE make -C tests/ test
|
||||
```
|
||||
6
tests/Makefile
Normal file
6
tests/Makefile
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Installation
|
||||
# https://meta-test-family.readthedocs.io/en/latest/installation.html#installing-mtf
|
||||
test:
|
||||
mtf-env-set
|
||||
mtf-generator
|
||||
mtf -l *.py
|
||||
22
tests/config.yaml
Normal file
22
tests/config.yaml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
document: modularity-testing
|
||||
version: 1
|
||||
name: 389-ds
|
||||
modulemd-url: https://src.fedoraproject.org/cgit/modules/389-ds.git/plain/389-ds.yaml
|
||||
packages:
|
||||
profiles:
|
||||
- default
|
||||
rpms:
|
||||
- openldap-clients
|
||||
module:
|
||||
rpm:
|
||||
setup: cp ds-config.ini {ROOT}/opt/conf.ini
|
||||
start: setup-ds.pl --silent --file=/opt/conf.ini;
|
||||
systemctl start dirsrv@myexample
|
||||
status: systemctl status dirsrv@myexample
|
||||
stop: systemctl stop dirsrv@myexample
|
||||
url: http://ftp.fi.muni.cz/pub/linux/fedora/linux/releases/26/Everything/x86_64/os/
|
||||
test:
|
||||
simplequery:
|
||||
- ldapsearch -h localhost -p 32222 -x -w password -s base -b '' 'objectclass=*' | grep 'dc=myexample'
|
||||
simplequery_negative:
|
||||
- ldapsearch -h localhost -p 32222 -x -w password -s base -b '' 'objectclass=aaa' | grep -v 'dc=myexample'
|
||||
10
tests/ds-config.ini
Normal file
10
tests/ds-config.ini
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[General]
|
||||
FullMachineName=myexample.com
|
||||
SuiteSpotUserID=nobody
|
||||
#ServerRoot= /usr/lib/fedora-ds
|
||||
[slapd]
|
||||
ServerPort=32222
|
||||
ServerIdentifier=myexample
|
||||
Suffix=dc=myexample,dc=com
|
||||
RootDN=cn=Directory Manager
|
||||
RootDNPwd=password
|
||||
Loading…
Add table
Add a link
Reference in a new issue