Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Testsuite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Feneas
federation
Testsuite
Commits
9704d74d
Commit
9704d74d
authored
Sep 17, 2019
by
Rigel Kent
Committed by
zauberstuhl
Sep 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
♻
reordering code in compartimented units for clarity
parent
6c8b6840
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
30 additions
and
14 deletions
+30
-14
README.md
README.md
+17
-1
projects/diaspora/Dockerfile
projects/diaspora/Dockerfile
+0
-0
projects/diaspora/start.sh
projects/diaspora/start.sh
+0
-0
projects/ganggo/Dockerfile
projects/ganggo/Dockerfile
+0
-0
projects/ganggo/app.conf
projects/ganggo/app.conf
+0
-0
projects/ganggo/ganggo_helper.bash
projects/ganggo/ganggo_helper.bash
+0
-0
projects/ganggo/start.sh
projects/ganggo/start.sh
+0
-0
projects/mastodon/.env
projects/mastodon/.env
+0
-0
projects/mastodon/Dockerfile
projects/mastodon/Dockerfile
+0
-0
projects/mastodon/start.sh
projects/mastodon/start.sh
+0
-0
projects/socialhome/.env
projects/socialhome/.env
+0
-0
projects/socialhome/Dockerfile
projects/socialhome/Dockerfile
+0
-0
projects/socialhome/socialhome_helper.bash
projects/socialhome/socialhome_helper.bash
+0
-0
projects/socialhome/start.sh
projects/socialhome/start.sh
+0
-0
projects/testproject/Dockerfile
projects/testproject/Dockerfile
+0
-0
projects/testproject/entrypoint.sh
projects/testproject/entrypoint.sh
+0
-0
scripts/build_docker_image.sh
scripts/build_docker_image.sh
+1
-1
scripts/test.sh
scripts/test.sh
+1
-1
tests/diaspora-ganggo.tx-rx.bats
tests/diaspora-ganggo.tx-rx.bats
+2
-2
tests/ganggo-diaspora.tx-rx.bats
tests/ganggo-diaspora.tx-rx.bats
+2
-2
tests/ganggo-ganggo.tx-rx.bats
tests/ganggo-ganggo.tx-rx.bats
+2
-2
tests/mastodon-mastodon.tx-rx.bats
tests/mastodon-mastodon.tx-rx.bats
+1
-1
tests/socialhome-ganggo.tx-rx.bats
tests/socialhome-ganggo.tx-rx.bats
+3
-3
tests/testproject.bats
tests/testproject.bats
+1
-1
No files found.
README.md
View file @
9704d74d
# Federation Tests
You'll find the documentation here:
[
feneas.git.feneas.org/federation/testsuite
](
https://feneas.git.feneas.org/federation/testsuite/
)
This test suite spins up pairs of instances for them to test simple federation
scenarios, testing for various protocols. At the moment it doesn't test conformance
to any protocol, but just ensures messages sent get received by the other end
of the instance pair at test.
## Documentation
You will find the full documentation at:
[
feneas.git.feneas.org/federation/testsuite
](
https://feneas.git.feneas.org/federation/testsuite/
)
### Adding your software
You can add your software to the list of supported projects by copying the
`projects/testproject`
directory and making your own helper and Dockerfile.
The helper is used in the tests, which are defined in the
`tests`
directory.
The Dockerfile is an adaptation of your software's Dockerfile, with the
addition of a custom entrypoint, required by the test suite.
diaspora/Dockerfile
→
projects/
diaspora/Dockerfile
View file @
9704d74d
File moved
diaspora/start.sh
→
projects/
diaspora/start.sh
View file @
9704d74d
File moved
ganggo/Dockerfile
→
projects/
ganggo/Dockerfile
View file @
9704d74d
File moved
ganggo/app.conf
→
projects/
ganggo/app.conf
View file @
9704d74d
File moved
ganggo_helper.bash
→
projects/ganggo/
ganggo_helper.bash
View file @
9704d74d
File moved
ganggo/start.sh
→
projects/
ganggo/start.sh
View file @
9704d74d
File moved
mastodon/.env
→
projects/
mastodon/.env
View file @
9704d74d
File moved
mastodon/Dockerfile
→
projects/
mastodon/Dockerfile
View file @
9704d74d
File moved
mastodon/start.sh
→
projects/
mastodon/start.sh
View file @
9704d74d
File moved
socialhome/.env
→
projects/
socialhome/.env
View file @
9704d74d
File moved
socialhome/Dockerfile
→
projects/
socialhome/Dockerfile
View file @
9704d74d
File moved
socialhome_helper.bash
→
projects/socialhome/
socialhome_helper.bash
View file @
9704d74d
File moved
socialhome/start.sh
→
projects/
socialhome/start.sh
View file @
9704d74d
File moved
testproject/Dockerfile
→
projects/
testproject/Dockerfile
View file @
9704d74d
File moved
testproject/entrypoint.sh
→
projects/
testproject/entrypoint.sh
View file @
9704d74d
File moved
scripts/build_docker_image.sh
View file @
9704d74d
...
...
@@ -3,7 +3,7 @@
project
=
$(
echo
$CI_COMMIT_TAG
|cut
-d-
-f2
)
# change into docker project
cd
$CI_PROJECT_DIR
/
$project
||
exit
1
cd
$CI_PROJECT_DIR
/
projects/
$project
||
exit
1
# authenticate with docker registry first
docker login
-u
$DOCKER_USER
-p
$DOCKER_PASSWORD
||
exit
1
...
...
scripts/test.sh
View file @
9704d74d
...
...
@@ -4,7 +4,7 @@
truncate
--size
0 report.tap
&&
tail
-f
report.tap &
# run tests and save it as tap format
bats
--tap
$(
find
.
-name
$PROJECT
'*.bats'
)
>>
report.tap
bats
--tap
$(
find
tests
-name
$PROJECT
'*.bats'
)
>>
report.tap
# remember exit code for later
exitCode
=
$?
...
...
diaspora-ganggo.tx-rx.bats
→
tests/
diaspora-ganggo.tx-rx.bats
View file @
9704d74d
# vim:ft=sh
load
test_helper
load
ganggo_helper
load
'../test_helper'
load
'../projects/ganggo/ganggo_helper'
@test
"
$btf
create database"
{
create_database
"g1"
...
...
ganggo-diaspora.tx-rx.bats
→
tests/
ganggo-diaspora.tx-rx.bats
View file @
9704d74d
...
...
@@ -3,8 +3,8 @@
# All API calls are documented here: https://ganggo.github.io/api/
#
load
test_helper
load
ganggo_helper
load
'../test_helper'
load
'../projects/ganggo/ganggo_helper'
@test
"
$btf
create database"
{
create_database
"g1"
...
...
ganggo-ganggo.tx-rx.bats
→
tests/
ganggo-ganggo.tx-rx.bats
View file @
9704d74d
...
...
@@ -3,8 +3,8 @@
# All API calls are documented here: https://ganggo.github.io/api/
#
load
test_helper
load
ganggo_helper
load
'../test_helper'
load
'../projects/ganggo/ganggo_helper'
@test
"
$btf
create databases"
{
create_database
"g1"
...
...
mastodon-mastodon.tx-rx.bats
→
tests/
mastodon-mastodon.tx-rx.bats
View file @
9704d74d
# vim:ft=sh
load
test_helper
load
'../test_helper'
@test
"
$btf
start mastodon#1 server"
{
start_app
"m1"
"3000"
"mastodon"
$(
latest_tag
"mastodon"
)
...
...
socialhome-ganggo.tx-rx.bats
→
tests/
socialhome-ganggo.tx-rx.bats
View file @
9704d74d
...
...
@@ -3,9 +3,9 @@
# All API calls are documented here: https://ganggo.github.io/api/
#
load
test_helper
load
ganggo_helper
load
socialhome_helper
load
'../test_helper'
load
'../projects/ganggo/ganggo_helper'
load
'../projects/socialhome/socialhome_helper'
@test
"
$btf
create databases"
{
create_database
"g1"
...
...
testproject.bats
→
test
s/test
project.bats
View file @
9704d74d
...
...
@@ -2,7 +2,7 @@
#
# this test file is related to https://feneas.git.feneas.org/federation/testsuite
load
test_helper
load
'../test_helper'
@test
"
$btf
create databases"
{
for
tp
in
tp1 tp2
;
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment