Browse Source

mv test-files

master
Ulrich Carmesin 3 years ago
parent
commit
1279b98157
  1. 5
      .idea/.gitignore
  2. 6
      .idea/externalDependencies.xml
  3. 4
      .idea/misc.xml
  4. 8
      .idea/modules.xml
  5. 8
      .idea/pythonProject.iml
  6. 0
      components/__init__.py
  7. 17
      components/mariadb/CONFIG.yml
  8. 40
      components/testa/CONFIG.yml
  9. 7
      components/testa/Testa.py
  10. 0
      components/testa/__init__.py
  11. 23
      components/testa1/CONFIG.yml
  12. 193
      components/testa1/DATASTRUCTURE.yml
  13. 8
      components/testa1/Testa1.py
  14. 0
      components/testa1/__init__.py
  15. 16
      components/testa11/CONFIG.yml
  16. 187
      components/testa11/DATASTRUCTURE.yml
  17. 8
      components/testa11/Testa11.py
  18. 0
      components/testa11/__init__.py
  19. 24
      components/testa2/CONFIG.yml
  20. 8
      components/testa2/Testa2.py
  21. 0
      components/testa2/__init__.py
  22. 19
      components/testa21/CONFIG.yml
  23. 6
      components/testa21/Testa21.py
  24. 0
      components/testa21/__init__.py
  25. 24
      components/testb/CONFIG.yml
  26. 6
      components/testb/Testb.py
  27. 0
      components/testb/__init__.py
  28. 17
      components/testb1/CONFIG.yml
  29. 6
      components/testb1/Testb1.py
  30. 0
      components/testb1/__init__.py
  31. 7
      test/environment/ENV01/PARAMETER_TEST_ENV01.yml
  32. 87
      test/environment/ENV01/configs/tool_conn.yml
  33. 43
      test/lauf/V0.1/implement_2021-08-28_23-50-51/PARAMETER_TEST_UMGEB1.yml
  34. 24
      test/tdata/implement/firstunit.csv

5
.idea/.gitignore

@ -1,5 +0,0 @@
# Default ignored files
/shelf/
/workspace.xml
../test/log/*.txt
../test/environment/ENV01/log/*.txt

6
.idea/externalDependencies.xml

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalDependencies">
<plugin id="com.intellij.configurationScript" />
</component>
</project>

4
.idea/misc.xml

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9 (pythonProject)" project-jdk-type="Python SDK" />
</project>

8
.idea/modules.xml

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/pythonProject.iml" filepath="$PROJECT_DIR$/.idea/pythonProject.iml" />
</modules>
</component>
</project>

8
.idea/pythonProject.iml

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 3.9 (pythonProject)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

0
components/__init__.py

17
components/mariadb/CONFIG.yml

@ -1,17 +0,0 @@
# Example af a component with
# # one instance -> connection
# # mo subcomponents
# # artifact-tyoe flaskdb -> precondition, load testdata, postcondition
conf:
instance:
count: 1
components: none
function:
check_environment: "todo"
init_testcase: "todo" # -> precondition, load testdata
finish_testcase: "todo" # -> postcondition, check data
artifact:
db:
reset: testcase
checks:
type: systemctl

40
components/testa/CONFIG.yml

@ -1,40 +0,0 @@
# Example af a component with
# # more instance -> connection
# # some subcomponents
# # artifact-tyoe log
conf:
instance:
count: 2 # count of instances
single: n
components:
testA1:
relationtyp: call # call|called|queue
conffile: "{dompath}/config/dbconn.xml"
filetyp: xml
ippattern: "<second>.*?<ip>(.*?)</ip>"
hostpattern: "<second>.*?<hostname>(.*?)</hostname>"
testA2:
relationtyp: call # call : is called by this comp
conffile: "{dompath}/config/settings.xml"
filetyp: xml
urlpattern: "<first>.*?<ulr>(.*?)</url>"
function:
check_environment: "todo"
init_testcase: "todo"
finish_testcase: "todo"
system: # look at sysmonitor
script: "{dompath}/bin/sysctl.sh" # for checking
checks: "status,version,start,stop,restart,available"
artifact: # look at testrun
log: # log|flaskdb|file|lob
path: "{dompath}/log/debug.log"
rotate: jmx
reset: testcase
oldfile: "{dompath}/log/debug_{timepattern}.log"
catalog: # TODO
fields:
- field1:
type: "varchar(20)"
domain: product # for which stakeholder it is important and a view should be implemented

7
components/testa/Testa.py

@ -1,7 +0,0 @@
import components.component
import components.testexec
class Testa(components.component.Component, components.testexec.Testexecuter):
def __init__(self):
print('init Testa')

0
components/testa/__init__.py

23
components/testa1/CONFIG.yml

@ -1,23 +0,0 @@
# Example af a component with
# # one instance -> connection
# # mo subcomponents
# # artifact-tyoe flaskdb -> precondition, load testdata, postcondition
conf:
instance:
count: 1
single: y
components:
testa11:
relationtyp: a # these attributes can be checked in statical way if connection is correctly set
conffile: "{dompath}/config/dbconn.xml"
filetyp: xml
ippattern: "<second>.*?<ip>(.*?)</ip>"
hostpattern: "<second>.*?<hostname>(.*?)</hostname>"
function:
check_environment: "todo"
init_testcase: "todo" # -> precondition, load testdata
finish_testcase: "todo" # -> postcondition, check data
artifact:
db:
reset: testset
testdata: flaskdb #

193
components/testa1/DATASTRUCTURE.yml

@ -1,193 +0,0 @@
# Example of a data-structure with
# # different count of tables, id-fields
testa1: # database
immo: # schema
lofts: # table
character: inventory
fields:
- street
- city
- zip
- state
- beds
- baths
- sqft
- type
- price
- latitude
- longitude
data:
city:
id: b_2
acceptance: norm
type: string
nullable: n
zip:
id: b_1
acceptance: norm
type: string
nullable: n
state:
id: n
acceptance: norm
type: string
nullable: n
beds:
id: n
acceptance: norm
type: int
nullable: y
baths:
id: n
acceptance: norm
type: int
nullable: y
sqft:
id: n
acceptance: norm
type: double
nullable: y
type:
id: n
acceptance: norm
type: string
nullable: y
price:
id: n
acceptance: norm
type: double
nullable: y
latitude:
id: n
acceptance: norm
type: float
nullable: y
longitude:
id: n
acceptance: norm
type: float
nullable: y
user:
name:
character: inventory
fields:
- Username
- Identifier
- First_name
- Last_name
data:
Username:
id: b_1
acceptance: norm
type: string
nullable: y
Identifier:
id: t_1
acceptance: exist
type: int
nullable: y
First_name:
id: n
acceptance: norm
type: string
nullable: y
Last_name:
id: n
acceptance: norm
type: string
nullable: y
mail:
character: inventory
fields:
- Email
- Identifier
- First_name
- Last_name
data:
Email:
id: b_1
acceptance: norm
type: string
nullable: y
Identifier:
id: t_1
acceptance: exist
type: int
nullable: n
First_name:
id: n
acceptance: norm
type: string
nullable: y
Last_name:
id: n
acceptance: norm
type: string
nullable: y
action:
character: transaction
fields:
- id
- Identifier
- login_ok
- login_time
- session_state
- end_time
- cnt_transactions
data:
id:
id: t_1
acceptance: exist
type: int
nullable: n
Identifier:
id: b_1
acceptance: norm
type: int
nullable: n
login_ok:
login_time:
session_state:
end_time:
cnt_transactions:
biblio:
books:
character: inventory
fields:
- id
- title
- autor
- library
- subject
- description
data:
id:
id: t_1
acceptance: norm
type: int
nullable: n
title:
id: b_1
acceptance: norm
type: string
nullable: n
autor:
id: b_2
acceptance: norm
type: string
nullable: n
library:
id: n
acceptance: norm
type: string
nullable: y
subject:
id: n
acceptance: norm
type: string
nullable: y
description:
id: n
acceptance: exist
type: clob
nullable: y

8
components/testa1/Testa1.py

@ -1,8 +0,0 @@
import components.component
import components.testexec
class Testa1(components.component.Component, components.testexec.Testexecuter):
def __init__(self):
print('init Testa1')

0
components/testa1/__init__.py

16
components/testa11/CONFIG.yml

@ -1,16 +0,0 @@
# Example af a component with
# # one instance -> connection
# # mo subcomponents
# # artifact-tyoe flaskdb -> precondition, load testdata, postcondition
conf:
instance:
count: 1
single: y
components:
none: none
function:
finish_testcase: "todo" # -> postcondition, check data
artifact:
lob:
reset: none
path: "testa1:biblio:books.description"

187
components/testa11/DATASTRUCTURE.yml

@ -1,187 +0,0 @@
# Example of a data-structure with
# # different count of tables, id-fields
testa1: # database
immo: # schema
lofts: # table
character: inventory
fields:
- street
- city
- zip
- state
- beds
- baths
- sqft
- type
- price
- latitude
- longitude
data:
city:
id: b_2
acceptance: norm
type: string
nullable: n
zip:
id: b_1
acceptance: norm
type: string
nullable: n
state:
id: n
acceptance: norm
type: string
nullable: n
beds:
id: n
acceptance: norm
type: int
nullable: y
baths:
id: n
acceptance: norm
type: int
nullable: y
sqft:
id: n
acceptance: norm
type: double
nullable: y
type:
id: n
acceptance: norm
type: string
nullable: y
price:
id: n
acceptance: norm
type: double
nullable: y
latitude:
id: n
acceptance: norm
type: float
nullable: y
longitude:
id: n
acceptance: norm
type: float
nullable: y
user:
name:
character: inventory
fields:
- Username
- Identifier
- First_name
- Last_name
data:
Username:
id: b_1
acceptance: norm
type: string
nullable: y
Identifier:
id: t_1
acceptance: exist
type: int
nullable: y
First_name:
id: n
acceptance: norm
type: string
nullable: y
Last_name:
id: n
acceptance: norm
type: string
nullable: y
mail:
character: inventory
fields:
- Email
- Identifier
- First_name
- Last_name
data:
Email:
id: b_1
acceptance: norm
type: string
nullable: y
Identifier:
id: t_1
acceptance: exist
type: int
nullable: n
First_name:
id: n
acceptance: norm
type: string
nullable: y
Last_name:
id: n
acceptance: norm
type: string
nullable: y
action:
character: transaction
fields:
- id
- Identifier
- login_ok
- login_time
- session_state
- end_time
- cnt_transactions
data:
id:
id: t_1
acceptance: exist
type: int
nullable: n
Identifier:
id: b_1
acceptance: norm
type: int
nullable: n
login_ok:
login_time:
session_state:
end_time:
cnt_transactions:
biblio:
books:
character: inventory
fields:
- id
- title
- autor
- library
- subject
data:
id:
id: t_1
acceptance: norm
type: int
nullable: n
title:
id: b_1
acceptance: norm
type: string
nullable: n
autor:
id: b_2
acceptance: norm
type: string
nullable: n
library:
id: n
acceptance: norm
type: string
nullable: y
subject:
id: n
acceptance: norm
type: string
nullable: y

8
components/testa11/Testa11.py

@ -1,8 +0,0 @@
import components.component
import components.testexec
class Testa11(components.component.Component, components.testexec.Testexecuter):
def __init__(self):
print('init Testa1')

0
components/testa11/__init__.py

24
components/testa2/CONFIG.yml

@ -1,24 +0,0 @@
# Example af a component like a sub-app with
# # one interface -
# # one subcomponents
# # artifact-tyoe log
conf:
instance:
count: 1
single: n
components:
testa21:
relationtyp: call
conffile: "{dompath}/config/dbconn.xml"
filetyp: xml
ippattern: "<second>.*?<ip>(.*?)</ip>"
hostpattern: "<second>.*?<hostname>(.*?)</hostname>"
function:
check_environment: "todo"
init_testcase: "todo"
finish_testcase: "todo"
artifact:
lob:
path: "testa"
rotate: jmx
reset: testcase

8
components/testa2/Testa2.py

@ -1,8 +0,0 @@
import components.component
import components.testexec
class Testa2(components.component.Component, components.testexec.Testexecuter):
def __init__(self):
print('init Testa1')

0
components/testa2/__init__.py

19
components/testa21/CONFIG.yml

@ -1,19 +0,0 @@
# Example af a component like a sub-app with
# # no subcomponents
# # artifact-tyoe log
conf:
instance:
count: 1
single: n
components:
none: none
function:
check_environment: "todo"
init_testcase: "todo"
finish_testcase: "todo"
artifact:
file:
path: "{dompath}/log/debug.log"
reset: testcase
format: xml
match: lines # lines|tree

6
components/testa21/Testa21.py

@ -1,6 +0,0 @@
import components.component
import components.testexec
class Testa21(components.component.Component, components.testexec.Testexecuter):
def __init__(self):
print('init Testa1')

0
components/testa21/__init__.py

24
components/testb/CONFIG.yml

@ -1,24 +0,0 @@
# Example af a component like a main app with
# # one instance -> connection
# # one subcomponents
# # artifact-tyoe log
conf:
instance:
count: 1
single: y
components:
testB1:
relationtyp: flaskdb
conffile: "{dompath}/config/dbconn.xml"
filetyp: xml
ippattern: "<second>.*?<ip>(.*?)</ip>"
hostpattern: "<second>.*?<hostname>(.*?)</hostname>"
function:
check_environment: "todo"
init_testcase: "todo"
finish_testcase: "todo"
artifact:
log:
path: "{dompath}/log/debug.log"
rotate: jmx
reset: testcase

6
components/testb/Testb.py

@ -1,6 +0,0 @@
import components.component
import components.testexec
class Testb(components.component.Component, components.testexec.Testexecuter):
def __init__(self):
print('init Testb')

0
components/testb/__init__.py

17
components/testb1/CONFIG.yml

@ -1,17 +0,0 @@
# Example af a component with
# # one instance -> connection
# # mo subcomponents
# # artifact-tyoe flaskdb -> precondition, load testdata, postcondition
conf:
instance:
count: 1
single: y
components:
none: none
function:
check_environment: "todo"
init_testcase: "todo" # -> precondition, load testdata
finish_testcase: "todo" # -> postcondition, check data
artifact:
db:
reset: testset

6
components/testb1/Testb1.py

@ -1,6 +0,0 @@
import components.component
import components.testexec
class Testb1(components.component.Component, components.testexec.Testexecuter):
def __init__(self):
print('init Testa1')

0
components/testb1/__init__.py

7
test/environment/ENV01/PARAMETER_TEST_ENV01.yml

@ -1,7 +0,0 @@
comps: {}
par:
application: TEST
basedir: envbase
environment: ENV01
parstring: python check_environment --application TEST --environment ENV01
program: check_environment

87
test/environment/ENV01/configs/tool_conn.yml

@ -1,87 +0,0 @@
env:
testa:
instance: 2
inst1:
ip: "192.178.168.12"
hostname: my-app-store-1
port: 54321
dompath: /opt/app/testa
domscript: bin/manage.sh
user: testa
password: test_secure_a
home: /home/testa
inst2:
ip: 192.178.168.14
hostname: my-app-store-2
port: 54321
dompath: /opt/app/testa
domscript: bin/manage.sh
user: testa
password: test_secure_a
home: /home/testa
testa1:
instance: 1
inst1:
ip: 192.178.168.12
hostname: my-app-store-1
port: 54410
dompath: /opt/app/testa01
domscript: bin/manage.sh
user: testa
password: test_secure_a
home: /home/testa
testa11:
instance: 1
inst1:
ip: 192.178.168.12
hostname: my-app-store-1
port: 54410
dompath: /opt/app/testa01
domscript: bin/manage.sh
user: testa
password: test_secure_a
home: /home/testa
testa2:
instance: 1
inst1:
ip: 192.178.168.12
hostname: my-app-store-1
port: 54420
dompath: /opt/app/testa02
domscript: bin/manage.sh
user: testa
password: test_secure_a
home: /home/testa
testa21:
instance: 1
inst1:
ip: 192.178.168.12
hostname: my-app-store-1
port: 54420
dompath: /opt/app/testa02
domscript: bin/manage.sh
user: testa
password: test_secure_a
home: /home/testa
testb:
instance: 1
inst1:
ip: 192.178.168.14
hostname: my-app-store-2
port: 54500
dompath: /opt/app/testb
domscript: bin/manage.sh
user: testb
password: test_secure_b
home: /home/testb
testb1:
instance: 1
inst1:
ip: 192.178.168.14
hostname: my-app-store-2
port: 54510
dompath: /opt/app/testb01
domscript: bin/manage.sh
user: testb
password: test_secure_b
home: /home/testb

43
test/lauf/V0.1/implement_2021-08-28_23-50-51/PARAMETER_TEST_UMGEB1.yml

@ -1,43 +0,0 @@
comps:
testa_02:
conn:
dompath: /opt/app/testa
domscript: bin/manage.sh
home: /home/testa
hostname: my-app-store-1
ip: 192.178.168.12
password: test_secure_a
port: 54321
user: testa
function:
check_environment: 'INFO: checkInstance for testa_02 is OK'
finish_testcase: todo
init_testcase: todo
testb:
conn:
dompath: /opt/app/testb
domscript: bin/manage.sh
home: /home/testb
hostname: my-app-store-2
ip: 192.178.168.14
password: test_secure_b
port: 54500
user: testb
function:
check_environment: 'INFO: checkInstance for testb is OK'
finish_testcase: todo
init_testcase: todo
par:
application: TEST
basedir: tsbase
environment: ENV01
parstring: python init_testset --application TEST --environment ENV01 --tsdir /home/ulrich/6_Projekte/Programme/pythonProject/test/lauf/V0.1/implement_2021-08-28_23-50-51
--tdtyp csv --tdsrc implement --tdname firstunit
program: init_testset
release: V0.1
tdname: firstunit
tdsrc: implement
tdtyp: csv
tltime: 2021-08-28_23-50-51
tsdir: /home/ulrich/6_Projekte/Programme/pythonProject/test/lauf/V0.1/implement_2021-08-28_23-50-51
usecase: implement

24
test/tdata/implement/firstunit.csv

@ -1,24 +0,0 @@
head;referencedate;;;;;;;;;;;
;25.08.2021;;;;;;;;;;;
;;;;;;;;;;;;
node;action;street;city;zip;state;beds;baths;sqft;type;price;latitude;longitude
testa1:immo:lofts;;3526 HIGH ST;SACRAMENTO;95838;CA;2;1;836;Residential;59222;38.631913;-121.434879
testa1:immo:lofts;;51 OMAHA CT;SACRAMENTO;95823;CA;3;1;1167;Residential;68212;38.478902;-121.431028
;;;;;;;;;;;;
;;;;;;;;;;;;
node;action;Username;Identifier;First_name;Last_name;;;;;;;
testa1:user:name;;booker12;9012;Rachel;Booker;;;;;;;
testa1:user:name;;grey07;2070;Laura;Grey;;;;;;;
;;;;;;;;;;;;
;;;;;;;;;;;;
node;action;Email;Identifier;First_name;Last_name;;;;;;;
testa1:user:mail;;rachel@yourcompany.com;9012;Rachel;Booker;;;;;;;
testa1:user:mail;;laura@yourcompany.com ;2070;Laura;Grey;;;;;;;
;;;;;;;;;;;;
;;;;;;;;;;;;
node;action;id;title;autor;library;subject;description;;;;;
testa1:biblio:books;;1;Eldon Base for stackable storage shelf, platinum;Muhammed MacIntyre;Nunavut;Storage & Organization;;;;;;
testa1:biblio:books;;2;"1.7 Cubic Foot Compact ""Cube"" Office Refrigerators";Barry French;Nunavut;Appliances;;;;;;
testa1:biblio:books;;3;Cardinal Slant-D® Ring Binder, Heavy Gauge Vinyl;Barry French;Nunavut;Binders and Binder Accessories;;;;;;
testa1:biblio:books;;4;R380;Clay Rozendal;Nunavut;Telephones and Communication;;;;;;
testa1:biblio:books;;5;Holmes HEPA Air Purifier;Carlos Soltero;Nunavut;Appliances;;;;;;
1 head referencedate
2 25.08.2021
3
4 node action street city zip state beds baths sqft type price latitude longitude
5 testa1:immo:lofts 3526 HIGH ST SACRAMENTO 95838 CA 2 1 836 Residential 59222 38.631913 -121.434879
6 testa1:immo:lofts 51 OMAHA CT SACRAMENTO 95823 CA 3 1 1167 Residential 68212 38.478902 -121.431028
7
8
9 node action Username Identifier First_name Last_name
10 testa1:user:name booker12 9012 Rachel Booker
11 testa1:user:name grey07 2070 Laura Grey
12
13
14 node action Email Identifier First_name Last_name
15 testa1:user:mail rachel@yourcompany.com 9012 Rachel Booker
16 testa1:user:mail laura@yourcompany.com  2070 Laura Grey
17
18
19 node action id title autor library subject description
20 testa1:biblio:books 1 Eldon Base for stackable storage shelf, platinum Muhammed MacIntyre Nunavut Storage & Organization
21 testa1:biblio:books 2 1.7 Cubic Foot Compact "Cube" Office Refrigerators Barry French Nunavut Appliances
22 testa1:biblio:books 3 Cardinal Slant-D® Ring Binder, Heavy Gauge Vinyl Barry French Nunavut Binders and Binder Accessories
23 testa1:biblio:books 4 R380 Clay Rozendal Nunavut Telephones and Communication
24 testa1:biblio:books 5 Holmes HEPA Air Purifier Carlos Soltero Nunavut Appliances
Loading…
Cancel
Save