Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Data Logistics Service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eFlows4HPC WP2
Data Logistics Service
Commits
79536f3d
Commit
79536f3d
authored
3 years ago
by
Jedrzej Rybicki
Browse files
Options
Downloads
Patches
Plain Diff
testing step2
parent
d7a73b26
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#77453
failed
3 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+4
-1
4 additions, 1 deletion
README.md
tests/test_b2shareoperator.py
+1
-1
1 addition, 1 deletion
tests/test_b2shareoperator.py
tests/test_dag.py
+1
-1
1 addition, 1 deletion
tests/test_dag.py
with
6 additions
and
3 deletions
README.md
+
4
−
1
View file @
79536f3d
...
...
@@ -6,7 +6,8 @@ eFlows4HPC Data Logistics Service
```
mkdir ./logs ./plugins
echo -e "AIRFLOW_UID=$(id -u)\nAIRFLOW_GID=0" > .env
echo "_PIP_ADDITIONAL_REQUIREMENTS=urllib3==1.26.6" >> .env
reqs=`cat requirements.txt | tr '\n' ' '`
echo "_PIP_ADDITIONAL_REQUIREMENTS=$reqs" >> .env
docker-compose -f dockers/docker-compose.yaml --project-directory . up airflow-init
```
...
...
@@ -16,5 +17,7 @@ docker-compose -f dockers/docker-compose.yaml --project-directory . up -d
```
## Setup connection
```
curl -X POST -u creds -H "Content-Type: application/json" --data '{"connection_id": "default_b2share","conn_type":"https", "host": "b2share-testing.fz-juelich.de", "schema":""}' localhost:7001/api/v1/connections
```
This diff is collapsed.
Click to expand it.
tests/test_b2shareoperator.py
+
1
−
1
View file @
79536f3d
...
...
@@ -9,7 +9,7 @@ TEST_DAG_ID = 'test_my_custom_operator'
class
B2ShareOperatorTest
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
dag
=
DAG
(
TEST_DAG_ID
,
schedule_interval
=
'
@daily
'
,
default_args
=
{
'
start_date
'
:
DEFAULT_DATE
})
self
.
dag
=
DAG
(
TEST_DAG_ID
,
schedule_interval
=
'
@daily
'
,
name
=
'
testing_dag
'
,
default_args
=
{
'
start_date
'
:
DEFAULT_DATE
})
self
.
op
=
B2ShareOperator
(
dag
=
self
.
dag
,
task_id
=
'
test
'
,
...
...
This diff is collapsed.
Click to expand it.
tests/test_dag.py
+
1
−
1
View file @
79536f3d
...
...
@@ -10,4 +10,4 @@ class TestADag(unittest.TestCase):
dag
=
self
.
dagbag
.
get_dag
(
dag_id
=
'
firsto
'
)
assert
self
.
dagbag
.
import_errors
==
{}
assert
dag
is
not
None
assert
len
(
dag
.
tasks
)
==
1
\ No newline at end of file
assert
len
(
dag
.
tasks
)
==
4
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment