From 7366050f76e26fd168e23fb59d2fdb35ae5f4c17 Mon Sep 17 00:00:00 2001
From: Aymane HAFIANE <aymane.hafiane@capgemini.com>
Date: Thu, 11 May 2023 10:56:23 +0200
Subject: [PATCH] BIOMASS-2980-test-nb add s1tiling cwl url in description

---
 wpst_notebook_test/wpst_echo_test.ipynb     | 20 +++++++++++++++++++-
 wpst_notebook_test/wpst_s1tiling_test.ipynb | 20 +-------------------
 2 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/wpst_notebook_test/wpst_echo_test.ipynb b/wpst_notebook_test/wpst_echo_test.ipynb
index 86877eb..0b4ec5a 100644
--- a/wpst_notebook_test/wpst_echo_test.ipynb
+++ b/wpst_notebook_test/wpst_echo_test.ipynb
@@ -1,16 +1,22 @@
 {
  "cells": [
   {
+   "attachments": {},
    "cell_type": "markdown",
    "id": "8b30c14c",
    "metadata": {},
    "source": [
     "# Test note book \n",
     "\n",
-    "In this test we're using echo algorythm for it's ease of use and to demonstrate the capabilities and functionality of copa backend API."
+    "In this test we're using echo algorythm for it's ease of use and to demonstrate the capabilities and functionality of copa backend API. \n",
+    "\n",
+    "Please make sure you have *copa_backend_url* , *echo_cwl*, *client_id* and *url_token* set in /projects/.maap/maap.ini\n",
+    "\n",
+    "echo_cwl = https://s3public.oss.eu-west-0.prod-cloud-ocb.orange-business.com/cwl/echo-test/workflow.cwl"
    ]
   },
   {
+   "attachments": {},
    "cell_type": "markdown",
    "id": "dd440e2a",
    "metadata": {},
@@ -84,6 +90,7 @@
    ]
   },
   {
+   "attachments": {},
    "cell_type": "markdown",
    "id": "144f3655",
    "metadata": {},
@@ -105,6 +112,7 @@
    ]
   },
   {
+   "attachments": {},
    "cell_type": "markdown",
    "id": "ba2317cd",
    "metadata": {},
@@ -134,6 +142,7 @@
    ]
   },
   {
+   "attachments": {},
    "cell_type": "markdown",
    "id": "a9a512d7",
    "metadata": {},
@@ -166,6 +175,7 @@
    ]
   },
   {
+   "attachments": {},
    "cell_type": "markdown",
    "id": "7af8c2c5",
    "metadata": {},
@@ -186,6 +196,7 @@
    ]
   },
   {
+   "attachments": {},
    "cell_type": "markdown",
    "id": "1edf9f2d",
    "metadata": {},
@@ -220,6 +231,7 @@
    ]
   },
   {
+   "attachments": {},
    "cell_type": "markdown",
    "id": "5f8751b4",
    "metadata": {},
@@ -282,6 +294,7 @@
    ]
   },
   {
+   "attachments": {},
    "cell_type": "markdown",
    "id": "ec731150",
    "metadata": {},
@@ -341,6 +354,7 @@
    ]
   },
   {
+   "attachments": {},
    "cell_type": "markdown",
    "id": "b0097062",
    "metadata": {},
@@ -393,6 +407,7 @@
    ]
   },
   {
+   "attachments": {},
    "cell_type": "markdown",
    "id": "a919ee9a",
    "metadata": {},
@@ -414,6 +429,7 @@
    ]
   },
   {
+   "attachments": {},
    "cell_type": "markdown",
    "id": "862e1ee0",
    "metadata": {},
@@ -448,6 +464,7 @@
    ]
   },
   {
+   "attachments": {},
    "cell_type": "markdown",
    "id": "d3b3e0ed",
    "metadata": {},
@@ -476,6 +493,7 @@
    ]
   },
   {
+   "attachments": {},
    "cell_type": "markdown",
    "id": "decb24af",
    "metadata": {},
diff --git a/wpst_notebook_test/wpst_s1tiling_test.ipynb b/wpst_notebook_test/wpst_s1tiling_test.ipynb
index 75c0a70..610e888 100644
--- a/wpst_notebook_test/wpst_s1tiling_test.ipynb
+++ b/wpst_notebook_test/wpst_s1tiling_test.ipynb
@@ -19,7 +19,7 @@
     "\n",
     "**copa_backend_url** : Url for copa bakend, use Url for the corresponding environement.\n",
     "\n",
-    "**s1tiling_cwl** : Url of s3 location for the cwl of s2tiling algorithm\n",
+    "**s1tiling_cwl** : Url of s3 location for the cwl of s1tiling algorithm. s1tiling_cwl = https://s3public.oss.eu-west-0.prod-cloud-ocb.orange-business.com/cwl/s1-tiling-demo/workflow.cwl\n",
     "\n",
     "**client_id** : Client ID\n",
     "\n",
@@ -262,24 +262,6 @@
     "    workflow_id = process_already_deployed"
    ]
   },
-  {
-   "cell_type": "code",
-   "execution_count": 9,
-   "id": "0aa9e6ea",
-   "metadata": {},
-   "outputs": [
-    {
-     "name": "stdout",
-     "output_type": "stream",
-     "text": [
-      "b'{\"code\":\"500\",\"description\":\"An error occurred Error creating workflow on the cluster : {\\\\\"code\\\\\":6,\\\\\"message\\\\\":\\\\\"workflowtemplates.argoproj.io \\\\\\\\\\\\\"wf-s1tiling-demo\\\\\\\\\\\\\" already exists\\\\\"}\"}'\n"
-     ]
-    }
-   ],
-   "source": [
-    "print(workflow.content)"
-   ]
-  },
   {
    "attachments": {},
    "cell_type": "markdown",
-- 
GitLab