This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package testng; | |
import org.testng.annotations.DataProvider; | |
import org.testng.annotations.Test; | |
import java.util.*; | |
public class testngListOfMaps_DataProvider { | |
@DataProvider(name = "Passing List Of Maps") | |
public Iterator<Object[]> createDataforTest3() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: selenium-hub | |
labels: | |
name: selenium-hub | |
spec: | |
selector: | |
app: selenium-hub | |
ports: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
name: selenium-ingress | |
annotations: | |
nginx.ingress.kubernetes.io: /$1 | |
spec: | |
rules: | |
- host: my-selenium-grid.com | |
http: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: selenium-grid-k8s-autoscaler-deployment | |
labels: | |
app: selenium-grid-k8s-autoscaler | |
name: selenium-grid-k8s-autoscaler | |
spec: | |
replicas: 1 | |
selector: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sahajamit.selenium.ws; | |
import org.json.JSONObject; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.chrome.ChromeDriver; | |
import org.openqa.selenium.logging.LogEntries; | |
import org.openqa.selenium.logging.LogType; | |
import org.openqa.selenium.logging.LoggingPreferences; | |
import org.openqa.selenium.remote.CapabilityType; | |
import org.openqa.selenium.remote.DesiredCapabilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: selenium-node-chrome | |
labels: | |
name: selenium-node-chrome | |
spec: | |
selector: | |
app: selenium-node-chrome | |
browser: chrome |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:centos7 | |
ARG JAVA_VERSION="1.8.0" | |
LABEL maintainer="sahajamit@gmail.com" | |
WORKDIR /app | |
RUN chmod 666 /etc/passwd && chown root:root /etc/passwd | |
RUN yum install -y java-$JAVA_VERSION-openjdk-devel unzip && mkdir -p /opt/lib | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/kubernetes/client-go/blob/master/examples/out-of-cluster-client-configuration/main.go | |
https://github.com/kubernetes/client-go/blob/master/tools/clientcmd/client_config.go | |
https://github.com/kubernetes/client-go/tree/master/examples/create-update-delete-deployment | |
https://stackoverflow.com/questions/53891862/patching-deployments-via-kubernetes-client-go | |
https://stackoverflow.com/questions/32554893/how-can-i-create-a-simple-client-app-with-the-kubernetes-go-library |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"math/rand" | |
"os" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: demo-pod | |
spec: | |
containers: | |
- name: busybox-demo | |
image: busybox | |
args: | |
[ |
NewerOlder