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 net.admoment.tests.functional.services | |
import org.scalatest._ | |
import scalaj.http.{HttpOptions, Http} | |
import net.admoment.tests.WebTest | |
import com.google.gson.Gson | |
import net.admoment.db.model._ | |
import org.springframework.beans.factory.annotation.Autowired | |
import com.typesafe.config.Config | |
import org.springframework.test.context.{TestContextManager, ContextConfiguration} |
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
--Добавление ЕГАИС (включение для алкогольных товаров происходит на кассах) | |
INSERT INTO service_type(id, name) | |
VALUES (nextval('hibernate_sequence'), 'egais'); | |
INSERT INTO service_provider(id, deleted, name, registered_name, service_type, settings_on_shop) | |
VALUES (nextval('hibernate_sequence'), FALSE, 'egais','ЕГАИС',(SELECT id FROM service_type WHERE name='egais'),FALSE); | |
INSERT INTO service_provider_settings(id, name, value, provider) | |
VALUES (nextval('hibernate_sequence'), 'egais_url', 'http://172.16.7.10:8080/xml', (SELECT id FROM service_provider WHERE name='egais' AND deleted=FALSE)); |
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
public boolean checkGiftCardStatus(String code, CardStatus status) throws TestException { | |
try { | |
Connection conn = getCentrumConnection(SET); | |
String sql = "SELECT * FROM card_cards WHERE numberfield = ? "; | |
PreparedStatement st = conn.prepareStatement(sql); | |
st.setString(1, code); | |
ResultSet rs = st.executeQuery(); | |
boolean exist = false; | |
while (rs.next()) { | |
exist = rs.getInt("status") == status.ordinal(); |
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
__author__ = 'v.chernov' | |
import requests | |
from pymongo import MongoClient | |
from multiprocessing import Pool | |
def db_connection(): | |
client = MongoClient('mongodb://localhost:27017/') | |
base = client.posts_db |
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
{"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"Set10.ear\".\"SET-Scales-Tech.jar\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"Set10.ear\".\"SET-Scales-Tech.jar\".POST_MODULE: Failed to process phase POST_MODULE of subdeployment \"SET-Scales-Tech.jar\" of deployment \"Set10.ear\"","jboss.deployment.subunit.\"Set10.ear\".\"SET-Scales-GUI.jar\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"Set10.ear\".\"SET-Scales-GUI.jar\".POST_MODULE: Failed to process phase POST_MODULE of subdeployment \"SET-Scales-GUI.jar\" of deployment \"Set10.ear\""},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.SetRetail10.SET-OperDay.SET/SenderFiscalInfoToCentrum.ValidatorFactoryjboss.naming.context.java.comp.SetRetail10.SET-OperDay.SET/SenderFiscalInfoToCentrumMissing[jb |
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
def check_out() | |
output = `tf @./tfs_scripts/checkout.tfs #{@tfs_path} #{@user} #{@domen} #{@password}` | |
end | |
def check_in() | |
output = `tf @./tfs_scripts/checkin.tfs` |
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
workspace -new -server:%1/tfs -login:%3\%2,%4 Workspace -noprompt | |
workfold -map $/ProjectName Temp -workspace:Workspace/Temp | |
get $/ProjectName/PathTo/File/toGet.ext | |
checkout $/ProjectName/PathTo/File/toGet.ext |
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
checkin $/ProjectName/PathTo/File/toGet.ext -comment:"Ruby TFS test checkin" -noprompt | |
workfold -unmap -workspace:Workspace $/ProjectName | |
workspace /delete Workspace -noprompt |
NewerOlder