Skip to content

Commit

Permalink
working on the test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Moumita Mandal committed Sep 10, 2021
1 parent c2253b3 commit 48059e1
Show file tree
Hide file tree
Showing 7 changed files with 409 additions and 41 deletions.
60 changes: 56 additions & 4 deletions tests/v3/tc1.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,66 @@
</head>

<body>
<div style="text-align: center">
<div
style="
height: 100px;
width: 50%;
margin: 0 auto;
border-style: solid;
border-radius: 20px;
padding-top: 5px;
background-color: #f2d9bf;
color: #824304;
text-align: center;
"
>
<h2>
Case 1: Customer uses rudderstack's CDN to load the SDK and the device
mode integration
</h2>
<br />
<br />
<button onclick="myFunction()">Click me</button>
</div>
<div
style="
margin: 20px auto;
height: 20%;
width: 50%;
border-style: solid;
border-radius: 20px;
padding: 5px 0px 2px 10px;
background-color: #b4e3aa;
color: #185c0a;
text-align: center; ;
"
>
<p>
<b>Note:</b> Rudderstack's JS SDK CDN:
https://cdn.rudderlabs.com/v3/rudder-analytics.min.js
</p>
<p>
Rudderstack's destination SDKs url :
https://cdn.rudderlabs.com/v3/js-integration
</p>
<p>
Refer this link for more info:
<a href="https://www.notion.so/rudderstacks/"
>https://www.notion.so/rudderstacks/</a
>
</p>
</div>
<div style="text-align: center">
<button
style="
margin: 0 auto;
display: block;
height: 40px;
width: 100px;
background-color: #3657eb;
color: cornsilk;
"
onclick="myFunction()"
>
Click me
</button>

<p id="demo"></p>
</div>
Expand Down
62 changes: 57 additions & 5 deletions tests/v3/tc2.1.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
{
configUrl:
"https://api.dev.rudderlabs.com/sourceConfig/?p=web&v=1.1.18",
cdnBaseURL: "https://cdn.rudderlabs.com/v3/js-integrations",
destSDKBaseURL: "https://cdn.rudderlabs.com/v3/js-integrations", //RS's cdn base url for destination SDKs
}
);
</script>
Expand All @@ -52,12 +52,64 @@
</head>

<body>
<div style="text-align: center">
<div
style="
height: 100px;
width: 50%;
margin: 0 auto;
border-style: solid;
border-radius: 20px;
padding-top: 5px;
background-color: #f2d9bf;
color: #824304;
text-align: center;
"
>
<h2>Case 2: Customer forwards SDKs CDN</h2>
<h3>Forwards only core SDK</h3>
<br />
<br />
<button onclick="myFunction()">Click me</button>
</div>
<div
style="
margin: 20px auto;
height: 20%;
width: 50%;
border-style: solid;
border-radius: 20px;
padding: 5px 0px 2px 10px;
background-color: #b4e3aa;
color: #185c0a;
text-align: center; ;
"
>
<p>
<b>Note:</b> Rudderstack's JS SDK CDN:
https://cdn.rudderlabs.com/v3/rudder-analytics.min.js
</p>
<p>
Rudderstack's destination SDKs url :
https://cdn.rudderlabs.com/v3/js-integration
</p>
<p>
Refer this link for more info:
<a href="https://www.notion.so/rudderstacks/"
>https://www.notion.so/rudderstacks/</a
>
</p>
</div>
<div style="text-align: center">
<button
style="
margin: 0 auto;
display: block;
height: 40px;
width: 100px;
background-color: #3657eb;
color: cornsilk;
"
onclick="myFunction()"
>
Click me
</button>

<p id="demo"></p>
</div>
Expand Down
60 changes: 56 additions & 4 deletions tests/v3/tc2.2.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,64 @@
</head>

<body>
<div style="text-align: center">
<div
style="
height: 100px;
width: 50%;
margin: 0 auto;
border-style: solid;
border-radius: 20px;
padding-top: 5px;
background-color: #f2d9bf;
color: #824304;
text-align: center;
"
>
<h2>Case 2: Customer forwards SDKs CDN</h2>
<h3>Forwards core + intg. SDKs. (whole /v3 folder is forwarded)</h3>
<br />
<br />
<button onclick="myFunction()">Click me</button>
</div>
<div
style="
margin: 20px auto;
height: 20%;
width: 50%;
border-style: solid;
border-radius: 20px;
padding: 5px 0px 2px 10px;
background-color: #b4e3aa;
color: #185c0a;
text-align: center; ;
"
>
<p>
<b>Note:</b> Rudderstack's JS SDK CDN:
https://cdn.rudderlabs.com/v3/rudder-analytics.min.js
</p>
<p>
Rudderstack's destination SDKs url :
https://cdn.rudderlabs.com/v3/js-integration
</p>
<p>
Refer this link for more info:
<a href="https://www.notion.so/rudderstacks/"
>https://www.notion.so/rudderstacks/</a
>
</p>
</div>
<div style="text-align: center">
<button
style="
margin: 0 auto;
display: block;
height: 40px;
width: 100px;
background-color: #3657eb;
color: cornsilk;
"
onclick="myFunction()"
>
Click me
</button>

<p id="demo"></p>
</div>
Expand Down
70 changes: 63 additions & 7 deletions tests/v3/tc2.4.html → tests/v3/tc2.3.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Test case 2(4)</title>
<title>Test case 2(3)</title>

<!-- Case 2: Customer forwards SDKs CDN -->
<!-- Case 2.4: Forwards only intg. SDKs(/v3/js-integrations folder is forwarded) -->
<!-- Case 2.3: Forwards only intg. SDKs(/v3/js-integrations folder is forwarded) -->

<script>
rudderanalytics = window.rudderanalytics = [];
Expand Down Expand Up @@ -42,21 +42,77 @@
{
configUrl:
"https://api.dev.rudderlabs.com/sourceConfig/?p=web&v=1.1.18",
// destSDKBaseURL: "https://d3939rm5up60zi.cloudfront.net", //Customer's cdn base url for destination SDKs
}
);
</script>

<!-- ============ Customer CDN forwarding d3939rm5up60zi.cloudfront.net: cdn.rudderlabs.com/v3/js-integrations ============ -->
<script src="https://d3939rm5up60zi.cloudfront.net/rudder-analytics.min.js"></script>

<!-- ============ RS's JS SDK ============ -->
<!-- <script src="https://cdn.rudderlabs.com/rudder-analytics.min.js"></script> -->
</head>

<body>
<div style="text-align: center">
<h2>Case 1: Customer forwards SDKs CDN</h2>
<div
style="
height: 100px;
width: 50%;
margin: 0 auto;
border-style: solid;
border-radius: 20px;
padding-top: 5px;
background-color: #f2d9bf;
color: #824304;
text-align: center;
"
>
<h2>Case 2: Customer forwards SDKs CDN</h2>
<h3>Forwards only intg. SDKs(/v3/js-integrations folder is forwarded)</h3>
<br />
<br />
<button onclick="myFunction()">Click me</button>
</div>
<div
style="
margin: 20px auto;
height: 20%;
width: 50%;
border-style: solid;
border-radius: 20px;
padding: 5px 0px 2px 10px;
background-color: #b4e3aa;
color: #185c0a;
text-align: center; ;
"
>
<p>
<b>Note:</b> Rudderstack's JS SDK CDN:
https://cdn.rudderlabs.com/v3/rudder-analytics.min.js
</p>
<p>
Rudderstack's destination SDKs url :
https://cdn.rudderlabs.com/v3/js-integration
</p>
<p>
Refer this link for more info:
<a href="https://www.notion.so/rudderstacks/"
>https://www.notion.so/rudderstacks/</a
>
</p>
</div>
<div style="text-align: center">
<button
style="
margin: 0 auto;
display: block;
height: 40px;
width: 100px;
background-color: #3657eb;
color: cornsilk;
"
onclick="myFunction()"
>
Click me
</button>

<p id="demo"></p>
</div>
Expand Down
64 changes: 58 additions & 6 deletions tests/v3/tc3.1.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,66 @@
</head>

<body>
<div style="text-align: center">
<h2>
<div
style="
height: 100px;
width: 50%;
margin: 0 auto;
border-style: solid;
border-radius: 20px;
padding-top: 5px;
background-color: #f2d9bf;
color: #824304;
text-align: center;
"
>
<h3>
Case 3: Customer downloaded all the sdks and uploaded in their own CDN
</h2>
</h3>
<h3>3.1: No changes to the file names or folder structure</h3>
<br />
<br />
<button onclick="myFunction()">Click me</button>
</div>
<div
style="
margin: 20px auto;
height: 20%;
width: 50%;
border-style: solid;
border-radius: 20px;
padding: 5px 0px 2px 10px;
background-color: #b4e3aa;
color: #185c0a;
text-align: center; ;
"
>
<p>
<b>Note:</b> Rudderstack's JS SDK CDN:
https://cdn.rudderlabs.com/v3/rudder-analytics.min.js
</p>
<p>
Rudderstack's destination SDKs url :
https://cdn.rudderlabs.com/v3/js-integration
</p>
<p>
Refer this link for more info:
<a href="https://www.notion.so/rudderstacks/"
>https://www.notion.so/rudderstacks/</a
>
</p>
</div>
<div style="text-align: center">
<button
style="
margin: 0 auto;
display: block;
height: 40px;
width: 100px;
background-color: #3657eb;
color: cornsilk;
"
onclick="myFunction()"
>
Click me
</button>

<p id="demo"></p>
</div>
Expand Down
Loading

0 comments on commit 48059e1

Please sign in to comment.