Skip to content

Commit

Permalink
Run cdap-e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
Vipinofficial11 committed Nov 30, 2023
1 parent 4c4503f commit 77704dd
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ derby.log
# generated by docs build
*.pyc

/cdap-ui
#/cdap-ui
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ public void createPEMFile() throws Exception {
// Generate a keystore and write out PEM blocks
KeyStore keystore = KeyStores.generatedCertKeyStore(KeyStores.VALIDITY, password);
Key key = keystore.getKey(KeyStores.CERT_ALIAS, password.toCharArray());
Path path = Paths.get("PATH To Your Combined.pem file");
Path path = Paths.get("/Users/vipinbhatt/IdeaProjects/cdap-vipin-fork/cdap-common/src/test/java/io/cdap/cdap/common/security/combined.pem");
File file = new File(path.toUri());

// Override the existing file content.
File pemFile = writePEMFile(file, keystore, KeyStores.CERT_ALIAS, password);

KeyStore keystore2 = KeyStores.createKeyStore(pemFile.toPath(), password);

String keystorePath = "PATH To KeyStore file"; // You can create an empty file with .jks extension.
String keystorePath = "/Users/vipinbhatt/IdeaProjects/cdap-vipin-fork/cdap-common/src/test/java/io/cdap/cdap/common/security/keystore.jks"; // You can create an empty file with .jks extension.
FileOutputStream fos = new FileOutputStream(keystorePath);
keystore2.store(fos, password.toCharArray());
//
Expand All @@ -132,6 +132,7 @@ public void createPEMFile() throws Exception {
}
}


/**
* Writes a private key and certificate pair from a KeyStore to the given PEM file.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-128-CBC,91E4CC2711FA9DEFB217C97413544436

uLgVSgPqEjpdJUJspPiBAj8G8pJ3Lm8jxNWs9JXCJQA1B0omEqlgFlRdW5TDe/s6
ezB1Twdqbu/4GzlDC52E16LKkpZY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ir+vAGtFpQBv
mn27cpEeDsiT3tGgrUFjh4LlV8a6BdWjhV/ZdwIDAQABMA0GCSqGSIb3DQEBBQUA
A4IBAQALlI9VrAgfJ74m3Oqg06Q5E2MW2RP0vdM9s2gUo0hWBGCAVtVJsr1WCgQC
v1CdwWYaJQEgSjFeK4x/fY4F1DWm8fEKsX9Rgfylwe1DieCLYy/FIEXaw94O3c3H
g2AR72llI3i6Na5t1JlZvWJAeSZCbA9sLO/JsogU7WLpITtt01Fj1IguZH0Qir8p
MbMOacFLJTEAk4hhw2fqGERRJt3LNKECL69GhTYff8kloOA+ISMdlqZyygiba3Bl
ad+Y4ZgwhoTF6GU2LAouPnExDunf38g5rCPP9m0hh2WpeYFONEqTsc6Pg3b4cLux
WbDBy0lE/7WvBduXfUzVvVZuOFJ/
-----END CERTIFICATE-----
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public static void init() throws Exception {
MasterServiceMainTestBase.cConf = cConf;

final SConfiguration sConf = SConfiguration.create();
sConf.set(Security.AuthenticationServer.SSL_KEYSTORE_PATH, "src/test/resources/KeyStore.jks");
sConf.set(Security.AuthenticationServer.SSL_KEYSTORE_PASSWORD, "123456");
sConf.set(Security.AuthenticationServer.SSL_KEYSTORE_PATH, "src/test/resources/ks.jks");
sConf.set(Security.AuthenticationServer.SSL_KEYSTORE_PASSWORD, "1234");
MasterServiceMainTestBase.sConf = sConf;

MasterServiceMainTestBase.init();
Expand All @@ -64,9 +64,12 @@ private static String realmFile() throws IOException {
@Test
public void testRouterServiceWithAuthenticationEnabled() throws Exception {
URL url = getRouterBaseUri().resolve("/").toURL();
System.out.println("Router url : " + url);
HttpResponse response = HttpRequests
.execute(HttpRequest.get(url).build(), new DefaultHttpRequestConfig(false));

System.out.println("Response code : " + response.getResponseCode());

Assert.assertEquals(HttpURLConnection.HTTP_UNAUTHORIZED, response.getResponseCode());
}
}
2 changes: 1 addition & 1 deletion cdap-ui
Submodule cdap-ui updated 42 files
+40 −0 app/cdap/api/longRunningOperation.ts
+30 −0 app/cdap/api/serviceaccounts.js
+2 −0 app/cdap/api/sourcecontrol.ts
+31 −5 app/cdap/components/CaskWizards/AddNamespace/index.js
+47 −3 app/cdap/components/DataPrep/Directives/ChangeDataType/DecimalOptions.tsx
+47 −6 app/cdap/components/DataPrep/Directives/ChangeDataType/__test__/DecimalOptions.test.tsx
+14 −0 app/cdap/components/NamespaceAdmin/AdminTabs.tsx
+63 −0 app/cdap/components/NamespaceAdmin/ServiceAccounts/DeleteConfirmDialog.tsx
+174 −0 app/cdap/components/NamespaceAdmin/ServiceAccounts/EditConfirmDialog.tsx
+144 −0 app/cdap/components/NamespaceAdmin/ServiceAccounts/index.tsx
+2 −0 app/cdap/components/NamespaceAdmin/index.tsx
+57 −0 app/cdap/components/NamespaceAdmin/store/ActionCreator.ts
+17 −0 app/cdap/components/NamespaceAdmin/store/index.ts
+25 −9 app/cdap/components/Replicator/Create/Content/SelectColumnsWithTransforms/TransformAdd.tsx
+10 −1 app/cdap/components/SourceControlManagement/LocalPipelineListView/CommitModal.tsx
+13 −1 app/cdap/components/SourceControlManagement/LocalPipelineListView/PipelineTable.tsx
+116 −5 app/cdap/components/SourceControlManagement/LocalPipelineListView/index.tsx
+25 −0 app/cdap/components/SourceControlManagement/OperationStatus.ts
+20 −0 app/cdap/components/SourceControlManagement/OperationType.ts
+58 −2 app/cdap/components/SourceControlManagement/RemotePipelineListView/RemotePipelineTable.tsx
+110 −4 app/cdap/components/SourceControlManagement/RemotePipelineListView/index.tsx
+1 −1 app/cdap/components/SourceControlManagement/SearchBox.tsx
+125 −0 app/cdap/components/SourceControlManagement/helpers.ts
+6 −3 app/cdap/components/SourceControlManagement/index.tsx
+149 −2 app/cdap/components/SourceControlManagement/store/ActionCreator.ts
+38 −1 app/cdap/components/SourceControlManagement/store/index.ts
+9 −0 app/cdap/components/SourceControlManagement/styles.ts
+49 −0 app/cdap/components/SourceControlManagement/types.ts
+92 −0 app/cdap/components/shared/ConfirmDialog/Status.tsx
+101 −0 app/cdap/components/shared/ConfirmDialog/index.tsx
+62 −0 app/cdap/components/shared/ConfirmDialog/styles.ts
+48 −2 app/cdap/text/text-en.yaml
+1 −1 app/hydrator/templates/create/pipeline-upgrade-modal.html
+1 −1 pom.xml
+1 −1 sandboxjs/sandbox_version.json
+1 −0 server/express.js
+16 −2 src/e2e-test/features/logviewer.feature
+4 −13 src/e2e-test/features/source.control.management.sync.apps.feature
+1 −0 src/e2e-test/features/wrangler.spanner.feature
+13 −0 src/e2e-test/java/io/cdap/cdap/ui/stepsdesign/Logviewer.java
+11 −1 src/e2e-test/java/io/cdap/cdap/ui/stepsdesign/SourceControlManagement.java
+5 −3 src/e2e-test/java/io/cdap/cdap/ui/utils/Commands.java

0 comments on commit 77704dd

Please sign in to comment.