nazwa:
rola:
status:
status-description:
atrakcyjnosc(1-5): ⭐⭐⭐⭐⭐
Scenario Outline: Convert IP address range to CIDR notation | |
Given a range of IP addresses "<start_ip>" to "<end_ip>" | |
When I convert the IP address range to CIDR notation | |
Then the CIDR notation should be "<cidr_notation>" | |
Examples: | |
| start_ip | end_ip | cidr_notation | | |
| 192.168.0.1 | 192.168.0.5 | 192.168.0.1/31 | | |
| 10.0.0.0 | 10.0.0.255 | 10.0.0.0/24 | | |
| 172.16.0.0 | 172.31.255.255 | 172.16.0.0/12 | |
<plugin> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>3.0.0-M7</version> | |
<configuration> | |
<excludes> | |
<exclude>**/*IT</exclude> | |
<exclude>**/*ITTest</exclude> | |
<exclude>**/*ITTests</exclude> | |
</excludes> | |
<reportFormat>plain</reportFormat> |
/* | |
* Copyright (C) 2012-2021 Thomas Akehurst | |
* | |
* source: https://github.com/wiremock/wiremock/blob/master/src/test/java/ignored/Examples.java#374 | |
*/ | |
package ignored; | |
import static com.github.tomakehurst.wiremock.client.WireMock.*; | |
import static com.github.tomakehurst.wiremock.common.DateTimeTruncation.FIRST_DAY_OF_MONTH; | |
import static com.github.tomakehurst.wiremock.stubbing.Scenario.STARTED; |
# Generates a JSON with valid format of Azure App Service enviroment variables - https://docs.microsoft.com/en-us/azure/app-service/configure-common?tabs=portal | |
# Script uses json with env variables in format {"ENV_NAME": "ENV_VALUE",...} | |
import json | |
# Opening JSON file | |
f = open("env.json") | |
# returns JSON object as | |
# a dictionary |
import org.json.JSONObject | |
import spock.lang.Specification | |
import java.nio.charset.StandardCharsets | |
import java.nio.file.Files | |
import java.nio.file.Path | |
import java.nio.file.Paths | |
class BaseTestSpec extends Specification { | |
String loadFile(String classPath) throws IOException { |
nazwa:
rola:
status:
status-description:
atrakcyjnosc(1-5): ⭐⭐⭐⭐⭐
+NumpadAdd:: Send {Volume_Up} | |
+NumpadSub:: Send {Volume_Down} | |
break::Send {Volume_Mute} | |
:R*?:/todayDate:: | |
FormatTime, CurrentDateTime,, dd/MM/yy | |
SendInput %CurrentDateTime% | |
return | |
:R*?:/todayTimeDate:: | |
FormatTime, CurrentDateTime,, dd-MM-yy HH:mm | |
SendInput %CurrentDateTime% |
/* | |
Node.js is used to execute JS code with payload and mocked external API connections | |
*/ | |
const fetch = require("node-fetch") | |
const FormData = require("form-data") | |
const btoa = require("btoa") | |
const fs = require("fs") | |
const _ = require("lodash") | |
const url = require("url") |
pragma solidity ^0.4.4; | |
contract Token { | |
/// @return total amount of tokens | |
function totalSupply() constant returns (uint256 supply) {} | |
/// @param _owner The address from which the balance will be retrieved | |
/// @return The balance | |
function balanceOf(address _owner) constant returns (uint256 balance) {} |
pragma solidity ^0.4.4; | |
contract Token { | |
/// @return total amount of tokens | |
function totalSupply() constant returns (uint256 supply) {} | |
/// @param _owner The address from which the balance will be retrieved | |
/// @return The balance | |
function balanceOf(address _owner) constant returns (uint256 balance) {} |