Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Payconnect QA Tools

This is a Node.js application that provides utility tools for managing and supporting Payconnect operations.

Uses

  • Node.js child_process used to execute kubectl commands.
  • kubectl Commands:
  • get pod, logs, exec - cat (to read the switch.log comms)

Available Tools

  • 2FA Authenticator
    Tool used for generating two-factor OTP codes. 2FA Authenticator Screenshot

  • Kubernetes Logs Downloader
    Utility for downloading logs from Rancher environments for troubleshooting and monitoring.

    2FA Authenticator Screenshot

Prerequisites

  1. Install Node Js.
  2. Install Kubectl.

Node Js Installation

  1. Download Link: https://nodejs.org/en/download
  2. Verify Installation
    node --version or node -v
    

Kubectl Installation

  1. Open the command prompt and run

    curl.exe -LO "https://dl.k8s.io/release/v1.32.0/bin/windows/amd64/kubectl.exe"
  2. Download the kubectl checksum file

    curl.exe -LO "https://dl.k8s.io/v1.32.0/bin/windows/amd64/kubectl.exe.sha256"
  3. Verify the checksum file

    CertUtil -hashfile kubectl.exe SHA256
  4. Verify installation.

    kubectl version

Project Setup

  1. Open or create a new directory:

    mkdir <DIRECTORY> #create folder
    cd <DIRECTORY>
  2. Initialize Git and clone this project:

    git init
    git clone <REPOSITORY_URL>
    cd <REPOSITORY_FOLDER>
  3. Install packages:

    npm install || npm i
  4. Setup Kube Config. Kube config files are untracked for security purposes. Create a directory named kube-config/ inside the src/ folder,. Download the kubeconfig files from your Rancher accounts, then rename them as follows:

    Note: These configs can be downloaded or copied from your Rancher accounts.

     kube-config/am1-aks-sbx.txt #(Payconnect Test AM1-AKS, rancher-sbx)
     kube-config/am1-aks.txt #(Payconnect RBGI Test & Sandbox AM1-ASK)
     kube-config/vm2-aks.txt #(Payconnect Sandbox & Prod VM2-AKS)

Authenticator Setup

  1. Create account.js file inside 'src/data/' directory.

    let payconnect = {
         users: [{
             username: 'payconnect-user',
             password: 'password',
             app: 'Payconnect 3',
             secret_key: 'YOUR_ACCOUNT_SECREY_KEY_HERE',
             interval: 60,
             environment: ['sbx']
         }]
     } 
    
     export default payconnect

Run the project:

  1. Execute this commands:

    npm run start || node ./src/server.js
    # OR -> Run the start.sh or start.bat files, it will execute the command above. :) 
  2. Open the browser and go to:

    http://localhost:4000/ or http://127.0.0.1:4000/

About

No description or website provided.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages