Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add and update KFP processor tests #3022

Merged
merged 4 commits into from
Nov 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
432 changes: 432 additions & 0 deletions elyra/tests/pipeline/kfp/conftest.py

Large diffs are not rendered by default.

927 changes: 405 additions & 522 deletions elyra/tests/pipeline/kfp/test_processor_kfp.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "042fe9e2-a95b-419b-9d18-e18f73e1ce0b",
"metadata": {},
"source": [
"This is a test notebook."
]
},
{
"cell_type": "markdown",
"id": "5da62e7f-d63b-402d-83c4-7c2da5f62f2e",
"metadata": {},
"source": [
"Read an input file"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "9407a8c3-c9c2-4224-b99c-5b0492e9f4b8",
"metadata": {},
"outputs": [],
"source": [
"input_filename = \"producer_output.csv\"\n",
"with open(input_filename, \"r\") as fh:\n",
" input = fh.read()"
]
},
{
"cell_type": "markdown",
"id": "f9f232ee-62be-4311-920b-3dc990f4c3aa",
"metadata": {},
"source": [
"Create an output file"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "15cd8863-b7e3-4234-857f-e5f40cbe767e",
"metadata": {},
"outputs": [],
"source": [
"output_filename = \"consumer_producer_output.csv\""
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "90d5ff6c-1048-49fb-ac06-0a011df2aa8f",
"metadata": {},
"outputs": [],
"source": [
"with open(output_filename, \"w\") as fh:\n",
" fh.write(input)\n",
" fh.write(\"X,Y,Z\\n\")"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
62 changes: 62 additions & 0 deletions elyra/tests/pipeline/resources/test_pipelines/kfp/consumer.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "042fe9e2-a95b-419b-9d18-e18f73e1ce0b",
"metadata": {},
"source": [
"This is a test notebook."
]
},
{
"cell_type": "markdown",
"id": "f9f232ee-62be-4311-920b-3dc990f4c3aa",
"metadata": {},
"source": [
"Read an output file"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "15cd8863-b7e3-4234-857f-e5f40cbe767e",
"metadata": {},
"outputs": [],
"source": [
"input_filename = \"consumer_producer_output.csv\""
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "90d5ff6c-1048-49fb-ac06-0a011df2aa8f",
"metadata": {},
"outputs": [],
"source": [
"with open(input_filename, \"r\") as fh:\n",
" fh.read()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Loading