diff --git a/Ansible/activity 2.yml b/Ansible/activity 2.yml new file mode 100644 index 000000000..0221f7b43 --- /dev/null +++ b/Ansible/activity 2.yml @@ -0,0 +1,31 @@ +--- +- hosts: all + become: yes + tasks: + - name: Update all the packages + apt: + name: '*' + state: latest + - name: Install required packages + apt: + name: + - nginx + - firewalld + state: present + notify: + - Start nginx + - Start firewalld + - name: Open port 80 on the firewall + firewalld: + port: 80/tcp + state: enabled + + handlers: + - name: Start nginx + service: + name: nginx + state: started + - name: Start firewalld + service: + name: firewalld + state: started \ No newline at end of file diff --git a/Ansible/maven-project.yml b/Ansible/maven-project.yml new file mode 100644 index 000000000..1f08c9d1e --- /dev/null +++ b/Ansible/maven-project.yml @@ -0,0 +1,19 @@ +--- +- hosts: local + become: true + tasks: + - name: Install required components + apt: + name: + - git + - maven + - openjdk-17-jdk + state: present + - name: Clone Maven repo + git: + repo: https://github.com/training-support/FST_JUNIT_Project.git + dest: /home/sreesiri/FST_JUNIT_Project + - name: Run Maven tests + command: mvn clean test + args: + chdir: /home/sreesiri/FST_JUNIT_Project diff --git a/Ansible/pom.xml b/Ansible/pom.xml new file mode 100644 index 000000000..02a60c83e --- /dev/null +++ b/Ansible/pom.xml @@ -0,0 +1,60 @@ + + + 4.0.0 + + org.example + FST_JUnit + 1.0-SNAPSHOT + + + 11 + 11 + + + + + org.junit.jupiter + junit-jupiter-api + 5.10.0 + test + + + org.junit.jupiter + junit-jupiter-params + 5.10.0 + test + + + org.junit.jupiter + junit-jupiter-engine + 5.10.0 + test + + + org.junit.platform + junit-platform-suite-api + 1.10.0 + test + + + org.junit.platform + junit-platform-suite-engine + 1.10.0 + test + + + + + + org.apache.maven.plugins + maven-surefire-report-plugin + 3.3.0 + + ${basedir}/target/reports + + + + + \ No newline at end of file diff --git a/Docker/Activities/.gitkeep b/Docker/Activities/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/Docker/Project/.gitkeep b/Docker/Project/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/Hadoop/Hive/Activities/activity6.hive b/Hadoop/Hive/Activities/activity6.hive new file mode 100644 index 000000000..0cf0d9363 --- /dev/null +++ b/Hadoop/Hive/Activities/activity6.hive @@ -0,0 +1,17 @@ +-- Create a table to store results +DROP TABLE files; +DROP TABLE wordcounts; +CREATE TABLE files (line STRING); + +-- Load data into the database using a file on your local system (NOT HDFS) +LOAD DATA LOCAL INPATH '/root/input.txt' INTO TABLE files; + +-- Create a new table using data from the files table +CREATE TABLE word_counts AS +SELECT word, count(1) AS count FROM +(SELECT explode(split(line, ' ')) AS word FROM files) AS w +GROUP BY word +ORDER BY word; + +-- To view the final result +SELECT * FROM word_counts; diff --git a/Hadoop/Hive/Activities/activity7.hive b/Hadoop/Hive/Activities/activity7.hive new file mode 100644 index 000000000..66cc8ff28 --- /dev/null +++ b/Hadoop/Hive/Activities/activity7.hive @@ -0,0 +1,19 @@ +DROP TABLE employee; + +CREATE TABLE employee +(id INT, name STRING, dept STRING, yoj INT, salary INT) +ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' +TBLPROPERTIES ("skip.header.line.count"="1"); + +LOAD DATA LOCAL INPATH '/root/empdata.csv' +INTO TABLE employee; + + +INSERT OVERWRITE DIRECTORY '/user/root/output' +ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' +SELECT * FROM employee WHERE dept='IT'; + + +INSERT OVERWRITE LOCAL DIRECTORY '/root/result' +ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' +SELECT * FROM employee WHERE yoj=2022; diff --git a/Hadoop/Hive/Activities/activity9.hive b/Hadoop/Hive/Activities/activity9.hive new file mode 100644 index 000000000..4a6cdde0e --- /dev/null +++ b/Hadoop/Hive/Activities/activity9.hive @@ -0,0 +1,13 @@ +DROP TABLE zipcodes; + +CREATE TABLE zipcodes (RecordNumber int, Country string, City string, Zipcode int) +PARTITIONED BY (state string) +CLUSTERED BY (Zipcode) INTO 3 BUCKETS +ROW FORMAT DELIMITED FIELDS TERMINATED BY ','; + +LOAD DATA LOCAL INPATH '/root/zipcodes.csv' +INTO TABLE zipcodes; + +INSERT OVERWRITE LOCAL DIRECTORY '/root/resultActivity9' +ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' +SELECT * FROM zipcodes WHERE state='PR' and Zipcode=704; diff --git a/Hadoop/Hive/Project/ProjectHive1.hive.txt b/Hadoop/Hive/Project/ProjectHive1.hive.txt new file mode 100644 index 000000000..3306803be --- /dev/null +++ b/Hadoop/Hive/Project/ProjectHive1.hive.txt @@ -0,0 +1,14 @@ +DROP TABLE dialogues; +CREATE TABLE dialogues ( + character_name STRING, + dialogue STRING +) +ROW FORMAT DELIMITED +FIELDS TERMINATED BY '\t' +LINES TERMINATED BY '\n'; + +LOAD DATA LOCAL INPATH '/root/inputs' INTO TABLE dialogues; +SELECT character_name, COUNT(*) AS dialogue_count +FROM dialogues +GROUP BY character_name +ORDER BY dialogue_count DESC; \ No newline at end of file diff --git a/Hadoop/Hive/Project/ProjectHive1.png b/Hadoop/Hive/Project/ProjectHive1.png new file mode 100644 index 000000000..d65934aca Binary files /dev/null and b/Hadoop/Hive/Project/ProjectHive1.png differ diff --git a/Hadoop/Hive/Project/ProjectHive2.hive.txt b/Hadoop/Hive/Project/ProjectHive2.hive.txt new file mode 100644 index 000000000..c5ca7396c --- /dev/null +++ b/Hadoop/Hive/Project/ProjectHive2.hive.txt @@ -0,0 +1,14 @@ +DROP TABLE dialogues; +CREATE TABLE dialogues ( + character_name STRING, + dialogue STRING +) +ROW FORMAT DELIMITED +FIELDS TERMINATED BY '\t' +LINES TERMINATED BY '\n'; + +LOAD DATA LOCAL INPATH '/root/inputs/episodeIV_dialogues.txt' INTO TABLE dialogues; + +SELECT COUNT(*) AS num_dialogues_with_luke +FROM dialogues +WHERE LOWER(dialogue) RLIKE '\\bluke\\b'; \ No newline at end of file diff --git a/Hadoop/Hive/Project/ProjectHive2.png b/Hadoop/Hive/Project/ProjectHive2.png new file mode 100644 index 000000000..04ac70e7d Binary files /dev/null and b/Hadoop/Hive/Project/ProjectHive2.png differ diff --git a/Hadoop/Pig/Activities/.gitkeep b/Hadoop/Pig/Activities/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/Hadoop/Pig/Project/.gitkeep b/Hadoop/Pig/Project/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/Hadoop/Spark/Activities/.gitkeep b/Hadoop/Spark/Activities/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/Informatica/Activities/Info4.png b/Informatica/Activities/Info4.png new file mode 100644 index 000000000..841167549 Binary files /dev/null and b/Informatica/Activities/Info4.png differ diff --git a/Informatica/Activities/Info5.png b/Informatica/Activities/Info5.png new file mode 100644 index 000000000..dde448f29 Binary files /dev/null and b/Informatica/Activities/Info5.png differ diff --git a/Informatica/Activities/inf02.png b/Informatica/Activities/inf02.png new file mode 100644 index 000000000..5c311c6dc Binary files /dev/null and b/Informatica/Activities/inf02.png differ diff --git a/Informatica/Activities/info1.png b/Informatica/Activities/info1.png new file mode 100644 index 000000000..02f3accdb Binary files /dev/null and b/Informatica/Activities/info1.png differ diff --git a/Informatica/Activities/info3.png b/Informatica/Activities/info3.png new file mode 100644 index 000000000..abcbb95db Binary files /dev/null and b/Informatica/Activities/info3.png differ diff --git a/JMeter/Activities/ACtivity 3.jmx b/JMeter/Activities/ACtivity 3.jmx new file mode 100644 index 000000000..88c0fca4d --- /dev/null +++ b/JMeter/Activities/ACtivity 3.jmx @@ -0,0 +1,125 @@ + + + + + + + + false + false + + + + 1 + 1 + true + continue + + 1 + false + + + + + v1.training-support.net + https + + + + HttpClient4 + + + + + + https + /selenium + true + GET + true + false + + + + + + + pageTitle + h1[class="ui inverted header"] + + NOT_FOUND + false + 0 + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + false + true + false + + + + + pageTitle=Selenium + + + Assertion.response_data + false + 2 + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + + diff --git a/JMeter/Activities/Activity1.jmx b/JMeter/Activities/Activity1.jmx new file mode 100644 index 000000000..2b6f532fb --- /dev/null +++ b/JMeter/Activities/Activity1.jmx @@ -0,0 +1,190 @@ + + + + + + + + + + + 10 + 1 + true + continue + + 10 + false + + + + + v1.training-support.net + https + + + + HttpClient4 + + + + / + true + GET + true + false + + + + + + + /selenium + true + GET + true + false + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + + 10 + 1 + true + continue + + 10 + false + + + + + the-internet.herokuapp.com + https + + + + HttpClient4 + + + + + + https://the-internet.herokuapp.com/basic_auth + admin + admin + + + + + false + true + + + + /basic_auth + true + GET + true + false + + + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + 500 + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + + + diff --git a/JMeter/Activities/Activity_2.jmx b/JMeter/Activities/Activity_2.jmx new file mode 100644 index 000000000..4149275a7 --- /dev/null +++ b/JMeter/Activities/Activity_2.jmx @@ -0,0 +1,137 @@ + + + + + + + + + + + 10 + 1 + true + continue + + 10 + false + + + + + the-internet.herokuapp.com + https + + + + HttpClient4 + + + + + + https://the-internet.herokuapp.com/basic_auth + admin + admin + + + + + false + true + + + + /basic_auth + true + GET + true + false + + + + + + + 5000 + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + + + diff --git a/JMeter/Activities/Activity_6.jmx b/JMeter/Activities/Activity_6.jmx new file mode 100644 index 000000000..1d1f485bf --- /dev/null +++ b/JMeter/Activities/Activity_6.jmx @@ -0,0 +1,143 @@ + + + + + + + + + + + 1 + 1 + true + continue + + 30 + false + + + + + v1.training-support.net + https + + + + HttpClient4 + + + + true + false + + + + /selenium + true + GET + true + false + + + + + + + 2000 + + + + + /.* + true + GET + true + false + + + + + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + + + diff --git a/JMeter/Activities/Activity_7.jmx b/JMeter/Activities/Activity_7.jmx new file mode 100644 index 000000000..20d04af9d --- /dev/null +++ b/JMeter/Activities/Activity_7.jmx @@ -0,0 +1,126 @@ + + + + + + + + + + + 1 + 1 + true + continue + + 1 + false + + + + + /selenium + true + GET + true + false + + + + + + + as_document + inputLinks + <a href="([^"]+)" + $1$ + NOT_FOUND + false + -1 + + + + + v1.training-support.net + https + + + + HttpClient4 + + + + + 200 + + + Assertion.response_code + false + 8 + + + + inputLinks + outputlink + true + + + + ${outputlink} + true + GET + true + false + + + + + + + + false + true + false + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + + + diff --git a/JMeter/Activities/Actvity 4.jmx b/JMeter/Activities/Actvity 4.jmx new file mode 100644 index 000000000..564a91e31 --- /dev/null +++ b/JMeter/Activities/Actvity 4.jmx @@ -0,0 +1,101 @@ + + + + + + + + false + false + + + + 1 + 1 + true + continue + + 1 + false + + + + + true + + 5000 + + dbconnection + jdbc:mysql://www.db4free.net:3306/fstm1db + com.mysql.jdbc.Driver + + true + 6Y6NowPybq + 0 + false + 10000 + DEFAULT + 60000 + fstm1db + + + + dbconnection + Select * from petData; + + + + Select Statement + Store as String + + + id,name,status + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + false + true + false + + + + + + diff --git a/JMeter/Activities/act_8.jmx b/JMeter/Activities/act_8.jmx new file mode 100644 index 000000000..c9d998e75 --- /dev/null +++ b/JMeter/Activities/act_8.jmx @@ -0,0 +1,124 @@ + + + + + + + + + + + 1 + 1 + true + continue + + 1 + false + + + + + // Import statements +import org.openqa.selenium.*; +import org.openqa.selenium.support.ui.*; + +// Captures sampler's start time +WDS.sampleResult.sampleStart(); +WDS.log.info("Test started"); + +// Load the page +WDS.browser.get("https://v1.training-support.net/selenium/login-form"); +WDS.log.info("Test page opened"); + +// Credentials +String[] username = {"admin"}; +String[] password = {"password"}; + +// Find credential fields and enter values +WDS.browser.findElement(By.id("username")).sendKeys(username); +WDS.browser.findElement(By.id("password")).sendKeys(password); + +// Find Login button and click it +WDS.browser.findElement(By.xpath("//button[text()='Log in']")).click(); +WDS.log.info("Logged in"); + +// Find confirmation message and print it to log +String message = WDS.browser.findElement(By.id("action-confirmation")); +WDS.log.info("Login message: " + message.getText()); + +// End the test sampler +// Also captures sampler's end time +WDS.sampleResult.sampleEnd(); +WDS.log.info("Test ended"); + + java + + + + false + false + C:\Users\ShireeshaM\Downloads\chromedriver-win64\chromedriver-win64\chromedriver.exe + false + true + false + + + SYSTEM + + + 8080 + true + + 8080 + true + + 8080 + true + + 8080 + localhost + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + + + diff --git a/JMeter/Activities/activity_5.jmx b/JMeter/Activities/activity_5.jmx new file mode 100644 index 000000000..ec7a07f55 --- /dev/null +++ b/JMeter/Activities/activity_5.jmx @@ -0,0 +1,109 @@ + + + + + + + + false + false + + + + 1 + 1 + true + continue + + 1 + false + + + + + , + UTF-8 + C:\Users\ShireeshaM\Desktop\FST_M2\jmeter\creds.csv + false + false + true + shareMode.all + false + username,password + + + + www.example.com + https + / + true + GET + true + false + + + + false + $(username) + = + true + username + + + false + $(password) + = + true + password + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + false + true + false + + + + + + diff --git a/JMeter/Activities/activity_8.jmx b/JMeter/Activities/activity_8.jmx new file mode 100644 index 000000000..c9d998e75 --- /dev/null +++ b/JMeter/Activities/activity_8.jmx @@ -0,0 +1,124 @@ + + + + + + + + + + + 1 + 1 + true + continue + + 1 + false + + + + + // Import statements +import org.openqa.selenium.*; +import org.openqa.selenium.support.ui.*; + +// Captures sampler's start time +WDS.sampleResult.sampleStart(); +WDS.log.info("Test started"); + +// Load the page +WDS.browser.get("https://v1.training-support.net/selenium/login-form"); +WDS.log.info("Test page opened"); + +// Credentials +String[] username = {"admin"}; +String[] password = {"password"}; + +// Find credential fields and enter values +WDS.browser.findElement(By.id("username")).sendKeys(username); +WDS.browser.findElement(By.id("password")).sendKeys(password); + +// Find Login button and click it +WDS.browser.findElement(By.xpath("//button[text()='Log in']")).click(); +WDS.log.info("Logged in"); + +// Find confirmation message and print it to log +String message = WDS.browser.findElement(By.id("action-confirmation")); +WDS.log.info("Login message: " + message.getText()); + +// End the test sampler +// Also captures sampler's end time +WDS.sampleResult.sampleEnd(); +WDS.log.info("Test ended"); + + java + + + + false + false + C:\Users\ShireeshaM\Downloads\chromedriver-win64\chromedriver-win64\chromedriver.exe + false + true + false + + + SYSTEM + + + 8080 + true + + 8080 + true + + 8080 + true + + 8080 + localhost + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + + + diff --git a/JMeter/Activities/activity_8_chrome.jmx b/JMeter/Activities/activity_8_chrome.jmx new file mode 100644 index 000000000..c9d998e75 --- /dev/null +++ b/JMeter/Activities/activity_8_chrome.jmx @@ -0,0 +1,124 @@ + + + + + + + + + + + 1 + 1 + true + continue + + 1 + false + + + + + // Import statements +import org.openqa.selenium.*; +import org.openqa.selenium.support.ui.*; + +// Captures sampler's start time +WDS.sampleResult.sampleStart(); +WDS.log.info("Test started"); + +// Load the page +WDS.browser.get("https://v1.training-support.net/selenium/login-form"); +WDS.log.info("Test page opened"); + +// Credentials +String[] username = {"admin"}; +String[] password = {"password"}; + +// Find credential fields and enter values +WDS.browser.findElement(By.id("username")).sendKeys(username); +WDS.browser.findElement(By.id("password")).sendKeys(password); + +// Find Login button and click it +WDS.browser.findElement(By.xpath("//button[text()='Log in']")).click(); +WDS.log.info("Logged in"); + +// Find confirmation message and print it to log +String message = WDS.browser.findElement(By.id("action-confirmation")); +WDS.log.info("Login message: " + message.getText()); + +// End the test sampler +// Also captures sampler's end time +WDS.sampleResult.sampleEnd(); +WDS.log.info("Test ended"); + + java + + + + false + false + C:\Users\ShireeshaM\Downloads\chromedriver-win64\chromedriver-win64\chromedriver.exe + false + true + false + + + SYSTEM + + + 8080 + true + + 8080 + true + + 8080 + true + + 8080 + localhost + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + + + diff --git a/JMeter/Project/ProjectActivity1.jmx b/JMeter/Project/ProjectActivity1.jmx new file mode 100644 index 000000000..5d367cdc5 --- /dev/null +++ b/JMeter/Project/ProjectActivity1.jmx @@ -0,0 +1,827 @@ + + + + + + + + false + false + + + + + + host + v1.training-support.net + = + + + scheme + https + = + + + + + + v1.training-support.net + https + /selenium + + + + + + + + + false + false + + + + 10 + 1 + true + continue + + 10 + false + + + + + + + 443 + UTF-8 + / + true + GET + true + false + + + + + + + + + Sec-Fetch-Mode + navigate + + + Sec-Fetch-Site + none + + + Accept-Language + en-US,en;q=0.5 + + + Sec-Fetch-User + ?1 + + + Priority + u=0, i + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate, br, zstd + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0 + + + Sec-Fetch-Dest + document + + + + + + + Training Support + + + Assertion.response_data + false + 2 + + + + + 443 + utf-8 + true + GET + true + false + + + + + + + + Training Support - Selenium + + Assertion.response_data + + false + 2 + + + + + + Sec-Fetch-Mode + navigate + + + Referer + ${scheme}://${host}/ + + + Sec-Fetch-Site + same-origin + + + Accept-Language + en-US,en;q=0.5 + + + Sec-Fetch-User + ?1 + + + Priority + u=0, i + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate, br, zstd + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0 + + + Sec-Fetch-Dest + document + + + + + + + 443 + UTF-8 + /selenium/simple-form + true + GET + true + false + + + + + + + + Simple Form + + Assertion.response_data + + false + 2 + + + + + + Sec-Fetch-Mode + navigate + + + Referer + ${scheme}://${host}/selenium + + + Sec-Fetch-Site + same-origin + + + Accept-Language + en-US,en;q=0.5 + + + Sec-Fetch-User + ?1 + + + Priority + u=0, i + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate, br, zstd + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0 + + + Sec-Fetch-Dest + document + + + + + + + 443 + UTF-8 + /selenium/iframes + true + GET + true + false + + + + + + + + Iframes + + Assertion.response_data + + false + 2 + + + + + + Sec-Fetch-Mode + navigate + + + Referer + ${scheme}://${host}/selenium + + + Sec-Fetch-Site + same-origin + + + Accept-Language + en-US,en;q=0.5 + + + Sec-Fetch-User + ?1 + + + Priority + u=0, i + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate, br, zstd + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0 + + + Sec-Fetch-Dest + document + + + + + + + 443 + UTF-8 + /selenium/frame1 + true + GET + true + false + + + + + + + + + Sec-Fetch-Mode + navigate + + + Referer + ${scheme}://${host}/selenium/iframes + + + Sec-Fetch-Site + same-origin + + + Accept-Language + en-US,en;q=0.5 + + + Priority + u=4 + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate, br, zstd + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0 + + + Sec-Fetch-Dest + iframe + + + + + + + Frame 1 + + + Assertion.response_data + false + 2 + + + + + 443 + UTF-8 + /selenium/frame2 + true + GET + true + false + + + + + + + + + Sec-Fetch-Mode + navigate + + + Referer + ${scheme}://${host}/selenium/iframes + + + Sec-Fetch-Site + same-origin + + + Accept-Language + en-US,en;q=0.5 + + + Priority + u=4 + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate, br, zstd + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0 + + + Sec-Fetch-Dest + iframe + + + + + + + Frame 2 + + + Assertion.response_data + false + 2 + + + + + 443 + UTF-8 + /selenium/login-form + true + GET + true + false + + + + + + + + Login Form + + Assertion.response_data + + false + 2 + + + + + + Sec-Fetch-Mode + navigate + + + Referer + ${scheme}://${host}/selenium + + + Sec-Fetch-Site + same-origin + + + Accept-Language + en-US,en;q=0.5 + + + Sec-Fetch-User + ?1 + + + Priority + u=0, i + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate, br, zstd + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0 + + + Sec-Fetch-Dest + document + + + + + + + 443 + UTF-8 + /selenium/upload + true + GET + true + false + + + + + + + + Upload + + Assertion.response_data + + false + 2 + + + + + + Sec-Fetch-Mode + navigate + + + Referer + ${scheme}://${host}/selenium + + + Sec-Fetch-Site + same-origin + + + Accept-Language + en-US,en;q=0.5 + + + Sec-Fetch-User + ?1 + + + Priority + u=0, i + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate, br, zstd + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0 + + + Sec-Fetch-Dest + document + + + + + + + 443 + UTF-8 + /selenium/tables + true + GET + true + false + + + + + + + + Tables + + Assertion.response_data + + false + 2 + + + + + + Sec-Fetch-Mode + navigate + + + Referer + ${scheme}://${host}/selenium + + + Sec-Fetch-Site + same-origin + + + Accept-Language + en-US,en;q=0.5 + + + Sec-Fetch-User + ?1 + + + Priority + u=0, i + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate, br, zstd + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0 + + + Sec-Fetch-Dest + document + + + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + false + false + true + false + false + false + false + true + false + false + true + true + 0 + true + true + true + true + + + + + + + 8888 + + (?i).*\.(bmp|css|js|gif|ico|jpe?g|png|swf|eot|otf|ttf|mp4|woff|woff2) + www\.download\.windowsupdate\.com.* + toolbarqueries\.google\..* + clients.*\.google.* + api\.bing\.com.* + (?i).*\.(bmp|css|js|gif|ico|jpe?g|png|swf|eot|otf|ttf|mp4|woff|woff2)[\?;].* + us\.update\.toolbar\.yahoo\.com.* + safebrowsing.*\.google\.com.* + g\.msn.* + .*msg\.yahoo\.com.* + tiles.*\.mozilla\.com.* + sqm\.microsoft\.com.* + geo\.yahoo\.com.* + .*yimg\.com.* + www\.google-analytics\.com.* + http?://self-repair\.mozilla\.org.* + windowsupdate\.microsoft\.com.* + .*detectportal\.firefox\.com.* + .*toolbar\.yahoo\.com.* + .*\.google\.com.*/safebrowsing/.* + toolbar\.google\.com.* + pgq\.yahoo\.com.* + toolbar\.avg\.com/.* + toolbar\.msn\.com.* + + + true + 0 + true + + false + true + true + false + true + + + false + + 0 + + true + UTF-8 + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + true + true + true + true + true + true + false + true + true + true + true + 0 + true + true + true + true + true + true + true + true + + + recording.xml + + + + + + diff --git a/JMeter/Project/ProjectActivity2.jmx b/JMeter/Project/ProjectActivity2.jmx new file mode 100644 index 000000000..1b4b9de37 --- /dev/null +++ b/JMeter/Project/ProjectActivity2.jmx @@ -0,0 +1,182 @@ + + + + + + + + false + false + + + + 5 + 1 + true + stopthread + + 5 + false + + + + + + + Authorization + token ghp_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 + + + + + + + + + + api.github.com + https + + + + + + + + + + sshKey + ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBZpMSH3Pj0+IKQDvhhaXGOuzUI09yBoJJbIBsCuVVIE + = + + + + + + global_lock + + + + /user/keys + true + POST + true + true + + + + false + { + "title": "TestKey", + "key": "${sshKey}" +} + + = + + + + + + + keyID + $['id'] + + + + + + 201 + + + Assertion.response_code + false + 8 + + + + + /user/keys/${keyID} + true + GET + true + false + + + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + /user/keys/${keyID} + true + DELETE + true + false + + + + + + + + 204 + + + Assertion.response_code + false + 8 + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + + + diff --git a/JMeter/Project/ProjectActivity_3.jmx b/JMeter/Project/ProjectActivity_3.jmx new file mode 100644 index 000000000..5affa550d --- /dev/null +++ b/JMeter/Project/ProjectActivity_3.jmx @@ -0,0 +1,188 @@ + + + + + + + + + + + 5 + 1 + true + continue + + 5 + false + + + + + petstore.swagger.io + https + + + + + + + + global_lock + + + + /v2/pet/findByStatus + true + GET + true + false + + + + false + sold + = + true + status + + + + + + + 6000 + + + + + /v2/pet + true + POST + true + true + + + + false + { + "id": "77679", + "name": "Timmy", + "status": "alive" +} + + = + + + + + + + + + Content-Type + application/json + + + + + + petID + $["id"] + 0 + NOT_FOUND + + + + 6000 + + + + + /v2/pet/findByStatus + true + GET + true + false + + + + false + alive + = + true + status + + + + + + + 6000 + + + + + /v2/pet/${petID} + true + DELETE + true + false + + + + + + + 6000 + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + false + true + false + + + + + + diff --git a/Kubernetes/Activities/act3-replicaset.yml b/Kubernetes/Activities/act3-replicaset.yml new file mode 100644 index 000000000..137310137 --- /dev/null +++ b/Kubernetes/Activities/act3-replicaset.yml @@ -0,0 +1,19 @@ +apiVersion: apps/v1 +kind: ReplicaSet +metadata: + name: nginx-replicaset +spec: + replicas: 4 + selector: + matchLabels: + app: nginx + template: + metadata: + labels: + app: nginx + spec: + containers: + - name: nginx + image: docker.io/nginx:latest + ports: + - containerPort: 80 \ No newline at end of file diff --git a/Kubernetes/Activities/act4-deployment.yml b/Kubernetes/Activities/act4-deployment.yml new file mode 100644 index 000000000..70c596c7c --- /dev/null +++ b/Kubernetes/Activities/act4-deployment.yml @@ -0,0 +1,19 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: activity-deployment +spec: + replicas: 3 + selector: + matchLabels: + component: web + template: + metadata: + labels: + component: web + spec: + containers: + - name: client + image: docker.io/nginx + ports: + - containerPort: 80 \ No newline at end of file diff --git a/Kubernetes/Activities/act5-deployment.yml b/Kubernetes/Activities/act5-deployment.yml new file mode 100644 index 000000000..357c04926 --- /dev/null +++ b/Kubernetes/Activities/act5-deployment.yml @@ -0,0 +1,19 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: activity-deployment +spec: + replicas: 1 + selector: + matchLabels: + component: web + template: + metadata: + labels: + component: web + spec: + containers: + - name: client + image: docker.io/caddy + ports: + - containerPort: 80 \ No newline at end of file diff --git a/Kubernetes/Activities/act_2.png b/Kubernetes/Activities/act_2.png new file mode 100644 index 000000000..44ee43dea Binary files /dev/null and b/Kubernetes/Activities/act_2.png differ diff --git a/Kubernetes/Activities/act_4.png b/Kubernetes/Activities/act_4.png new file mode 100644 index 000000000..d8be54866 Binary files /dev/null and b/Kubernetes/Activities/act_4.png differ diff --git a/Kubernetes/Activities/act_4_1.png b/Kubernetes/Activities/act_4_1.png new file mode 100644 index 000000000..ec7fee916 Binary files /dev/null and b/Kubernetes/Activities/act_4_1.png differ diff --git a/Kubernetes/Activities/act_5.png b/Kubernetes/Activities/act_5.png new file mode 100644 index 000000000..ec7fee916 Binary files /dev/null and b/Kubernetes/Activities/act_5.png differ diff --git a/Kubernetes/Activities/activity_3.png b/Kubernetes/Activities/activity_3.png new file mode 100644 index 000000000..77d82843e Binary files /dev/null and b/Kubernetes/Activities/activity_3.png differ diff --git a/Kubernetes/Activities/config.yml b/Kubernetes/Activities/config.yml new file mode 100644 index 000000000..c452ac8a4 --- /dev/null +++ b/Kubernetes/Activities/config.yml @@ -0,0 +1,21 @@ +apiVersion: kind.x-k8s.io/v1alpha4 +kind: Cluster +nodes: + - role: control-plane + kubeadmConfigPatches: + - | + kind: InitConfiguration + nodeRegistration: + kubeletExtraArgs: + node-labels: "ingress-ready=true" + extraPortMappings: + - containerPort: 31515 + hostPort: 31515 + protocol: tcp + - containerPort: 3000 + hostPort: 3000 + protocol: tcp + - containerPort: 80 + hostPort: 30000 + protocol: tcp + - role: worker \ No newline at end of file diff --git a/Kubernetes/Project/api-cluster-ip-service.yml b/Kubernetes/Project/api-cluster-ip-service.yml new file mode 100644 index 000000000..c51a9ec0a --- /dev/null +++ b/Kubernetes/Project/api-cluster-ip-service.yml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: client-cluster-ip-service +spec: + type: ClusterIP + selector: + component: web + ports: + - port: 5000 + targetPort: 5000 \ No newline at end of file diff --git a/Kubernetes/Project/api-deployment.yml b/Kubernetes/Project/api-deployment.yml new file mode 100644 index 000000000..4ffc87430 --- /dev/null +++ b/Kubernetes/Project/api-deployment.yml @@ -0,0 +1,39 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: api-deployment +spec: + selector: + matchLabels: + component: api + template: + metadata: + labels: + component: api + spec: + containers: + - name: api-app + image: docker.io/sreesiri2docker/simple_blog_api + resources: + limits: + memory: "128Mi" + cpu: "500m" + ports: + - containerPort: 3000 + + env: + - name: POSTGRES_HOST + value: postgres-cluster-ip-service + - name: POSTGRES_PORT + value: "5432" + - name: POSTGRES_USERNAME + value: postgres + - name: POSTGRES_DB + value: simple_blog_api + - name: POSTGRES_PASSWORD + valueFrom: + secretKeyRef: + name: postgres_password + key: PROJECT_PASSWORD + + diff --git a/Kubernetes/Project/database-persistent-volume-claim.yml b/Kubernetes/Project/database-persistent-volume-claim.yml new file mode 100644 index 000000000..b6404fd9a --- /dev/null +++ b/Kubernetes/Project/database-persistent-volume-claim.yml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: database-persistent-volume-claim +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi \ No newline at end of file diff --git a/Kubernetes/Project/ingress-service.yml b/Kubernetes/Project/ingress-service.yml new file mode 100644 index 000000000..35ae0cb69 --- /dev/null +++ b/Kubernetes/Project/ingress-service.yml @@ -0,0 +1,26 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: ingress-service + annotations: + kubernetes.io/ingress.class: nginx + nginx.ingress.kubernetes.io/use-regex: "true" + nginx.ingress.kubernetes.io/rewrite-target: /$1 +spec: + rules: + - http: + paths: + - pathType: Prefix + path: / + backend: + service: + name: client-cluster-ip-service + port: + number: 3000 + - path: /api + pathType: Prefix + backend: + service: + name: server-cluster-ip-service + port: + number: 5000 diff --git a/Kubernetes/Project/postgres-cluster-ip-service.yml b/Kubernetes/Project/postgres-cluster-ip-service.yml new file mode 100644 index 000000000..d39856c0f --- /dev/null +++ b/Kubernetes/Project/postgres-cluster-ip-service.yml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: postgres-cluster-ip-service +spec: + type: ClusterIP + selector: + component: postgres + ports: + - port: 5432 + targetPort: 5432 diff --git a/Kubernetes/Project/postgres-deployment.yml b/Kubernetes/Project/postgres-deployment.yml new file mode 100644 index 000000000..5ae33538c --- /dev/null +++ b/Kubernetes/Project/postgres-deployment.yml @@ -0,0 +1,37 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: postgres-deployment +spec: + selector: + matchLabels: + component: postgres + template: + metadata: + labels: + component: postgres + spec: + volumes: + - name: postgres-storage + persistentVolumeClaim: + claimName: database-persistent-volume-claim + containers: + - name: postgres + image: docker.io/postgres + resources: + limits: + memory: "128Mi" + cpu: "500m" + ports: + - containerPort: 5432 + volumeMounts: + - name: postgres-storage + mountPath: /var/lib/postgresql/data + subPath: postgres + env: + - name: POSTGRES_PASSWORD + valueFrom: + seceretKeyRef: + name: pgpassword + key: POSTGRES_PASSWORD + diff --git a/Linux/ACTOIVITY_1.png b/Linux/ACTOIVITY_1.png new file mode 100644 index 000000000..76ef1db6a Binary files /dev/null and b/Linux/ACTOIVITY_1.png differ diff --git a/Linux/Actiivity_2.png b/Linux/Actiivity_2.png new file mode 100644 index 000000000..cfea88ce4 Binary files /dev/null and b/Linux/Actiivity_2.png differ diff --git a/Linux/Activity_4.png b/Linux/Activity_4.png new file mode 100644 index 000000000..40e76a4ea Binary files /dev/null and b/Linux/Activity_4.png differ diff --git a/Linux/act_3.png b/Linux/act_3.png new file mode 100644 index 000000000..240a97567 Binary files /dev/null and b/Linux/act_3.png differ diff --git a/Linux/act_4_folder screenshot.png b/Linux/act_4_folder screenshot.png new file mode 100644 index 000000000..75380f487 Binary files /dev/null and b/Linux/act_4_folder screenshot.png differ diff --git a/Linux/activity_3.png b/Linux/activity_3.png new file mode 100644 index 000000000..440d40b31 Binary files /dev/null and b/Linux/activity_3.png differ diff --git a/OpenShift/Activity-2.png b/OpenShift/Activity-2.png new file mode 100644 index 000000000..e9d709c42 Binary files /dev/null and b/OpenShift/Activity-2.png differ diff --git a/OpenShift/Apenshift_activity_6.png b/OpenShift/Apenshift_activity_6.png new file mode 100644 index 000000000..55ad290b5 Binary files /dev/null and b/OpenShift/Apenshift_activity_6.png differ diff --git a/OpenShift/OPENSHIFT_ACTIVITY_4.png b/OpenShift/OPENSHIFT_ACTIVITY_4.png new file mode 100644 index 000000000..33b9694ce Binary files /dev/null and b/OpenShift/OPENSHIFT_ACTIVITY_4.png differ diff --git a/OpenShift/Openshift_acitivity_7.png b/OpenShift/Openshift_acitivity_7.png new file mode 100644 index 000000000..9f3396840 Binary files /dev/null and b/OpenShift/Openshift_acitivity_7.png differ diff --git a/OpenShift/Openshift_activity_01.png b/OpenShift/Openshift_activity_01.png new file mode 100644 index 000000000..fd8ddf288 Binary files /dev/null and b/OpenShift/Openshift_activity_01.png differ diff --git a/OpenShift/Openshift_activity_5.png b/OpenShift/Openshift_activity_5.png new file mode 100644 index 000000000..4e60b8ad2 Binary files /dev/null and b/OpenShift/Openshift_activity_5.png differ diff --git a/OpenShift/Openshift_activity_5_url.png b/OpenShift/Openshift_activity_5_url.png new file mode 100644 index 000000000..030f08649 Binary files /dev/null and b/OpenShift/Openshift_activity_5_url.png differ diff --git a/OpenShift/Openshift_activity_6.png b/OpenShift/Openshift_activity_6.png new file mode 100644 index 000000000..5424d0891 Binary files /dev/null and b/OpenShift/Openshift_activity_6.png differ diff --git a/QuerySurge/Querysurge_1.png b/QuerySurge/Querysurge_1.png new file mode 100644 index 000000000..a21f278b3 Binary files /dev/null and b/QuerySurge/Querysurge_1.png differ diff --git a/QuerySurge/Querysurge_2.png b/QuerySurge/Querysurge_2.png new file mode 100644 index 000000000..3aff055c7 Binary files /dev/null and b/QuerySurge/Querysurge_2.png differ diff --git a/QuerySurge/Querysurge_3.png b/QuerySurge/Querysurge_3.png new file mode 100644 index 000000000..502f0615c Binary files /dev/null and b/QuerySurge/Querysurge_3.png differ