This commit is contained in:
Andre Rodrigues 2012-03-14 23:19:43 -07:00
Родитель 8abedcf06e
Коммит 7960eeb6be
1 изменённых файлов: 235 добавлений и 235 удалений

Просмотреть файл

@ -140,24 +140,24 @@ suite('roleenvironment-tests', function () {
runtimeKernel.namedPipeInputChannel._readData = function (name, callback) {
if (name === '\\\\.\\pipe\\WindowsAzureRuntime') {
callback(undefined,
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RuntimeServerDiscovery xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<RuntimeServerEndpoints>" +
"<RuntimeServerEndpoint version=\"2011-03-08\" path=\"SomePath.GoalState\" />" +
"</RuntimeServerEndpoints>" +
"</RuntimeServerDiscovery>");
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RuntimeServerDiscovery xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<RuntimeServerEndpoints>" +
"<RuntimeServerEndpoint version=\"2011-03-08\" path=\"SomePath.GoalState\" />" +
"</RuntimeServerEndpoints>" +
"</RuntimeServerDiscovery>");
} else if (name === 'SomePath.GoalState') {
callback(undefined,
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<GoalState xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Incarnation>1</Incarnation>" +
"<ExpectedState>Started</ExpectedState>" +
"<RoleEnvironmentPath>C:\\file.xml</RoleEnvironmentPath>" +
"<CurrentStateEndpoint>\\.\pipe\WindowsAzureRuntime.CurrentState</CurrentStateEndpoint>" +
"<Deadline>9999-12-31T23:59:59.9999999</Deadline>" +
"</GoalState>");
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<GoalState xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Incarnation>1</Incarnation>" +
"<ExpectedState>Started</ExpectedState>" +
"<RoleEnvironmentPath>C:\\file.xml</RoleEnvironmentPath>" +
"<CurrentStateEndpoint>\\.\pipe\WindowsAzureRuntime.CurrentState</CurrentStateEndpoint>" +
"<Deadline>9999-12-31T23:59:59.9999999</Deadline>" +
"</GoalState>");
} else {
callback('wrong file');
}
@ -167,21 +167,21 @@ suite('roleenvironment-tests', function () {
runtimeKernel.fileInputChannel._readData = function (name, callback) {
if (name === 'C:\\file.xml') {
callback(undefined,
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RoleEnvironment xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Deployment id=\"mydeploymentid\" emulated=\"false\" />" +
"<CurrentInstance id=\"geophotoapp_IN_0\" roleName=\"geophotoapp\" faultDomain=\"0\" updateDomain=\"0\">" +
"<ConfigurationSettings />" +
"<LocalResources>" +
"<LocalResource name=\"DiagnosticStore\" path=\"somepath.DiagnosticStore\" sizeInMB=\"4096\" />" +
"</LocalResources>" +
"<Endpoints>" +
"<Endpoint name=\"HttpIn\" address=\"10.114.250.21\" port=\"80\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</CurrentInstance>" +
"<Roles />" +
"</RoleEnvironment>");
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RoleEnvironment xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Deployment id=\"mydeploymentid\" emulated=\"false\" />" +
"<CurrentInstance id=\"geophotoapp_IN_0\" roleName=\"geophotoapp\" faultDomain=\"0\" updateDomain=\"0\">" +
"<ConfigurationSettings />" +
"<LocalResources>" +
"<LocalResource name=\"DiagnosticStore\" path=\"somepath.DiagnosticStore\" sizeInMB=\"4096\" />" +
"</LocalResources>" +
"<Endpoints>" +
"<Endpoint name=\"HttpIn\" address=\"10.114.250.21\" port=\"80\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</CurrentInstance>" +
"<Roles />" +
"</RoleEnvironment>");
} else {
callback('wrong file');
}
@ -200,24 +200,24 @@ suite('roleenvironment-tests', function () {
runtimeKernel.namedPipeInputChannel._readData = function (name, callback) {
if (name === '\\\\.\\pipe\\WindowsAzureRuntime') {
callback(undefined,
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RuntimeServerDiscovery xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<RuntimeServerEndpoints>" +
"<RuntimeServerEndpoint version=\"2011-03-08\" path=\"SomePath.GoalState\" />" +
"</RuntimeServerEndpoints>" +
"</RuntimeServerDiscovery>");
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RuntimeServerDiscovery xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<RuntimeServerEndpoints>" +
"<RuntimeServerEndpoint version=\"2011-03-08\" path=\"SomePath.GoalState\" />" +
"</RuntimeServerEndpoints>" +
"</RuntimeServerDiscovery>");
} else if (name === 'SomePath.GoalState') {
callback(undefined,
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<GoalState xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Incarnation>1</Incarnation>" +
"<ExpectedState>Started</ExpectedState>" +
"<RoleEnvironmentPath>C:\\file.xml</RoleEnvironmentPath>" +
"<CurrentStateEndpoint>\\.\pipe\WindowsAzureRuntime.CurrentState</CurrentStateEndpoint>" +
"<Deadline>9999-12-31T23:59:59.9999999</Deadline>" +
"</GoalState>");
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<GoalState xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Incarnation>1</Incarnation>" +
"<ExpectedState>Started</ExpectedState>" +
"<RoleEnvironmentPath>C:\\file.xml</RoleEnvironmentPath>" +
"<CurrentStateEndpoint>\\.\pipe\WindowsAzureRuntime.CurrentState</CurrentStateEndpoint>" +
"<Deadline>9999-12-31T23:59:59.9999999</Deadline>" +
"</GoalState>");
} else {
callback('wrong file');
}
@ -226,21 +226,21 @@ suite('roleenvironment-tests', function () {
runtimeKernel.fileInputChannel._readData = function (name, callback) {
if (name === 'C:\\file.xml') {
callback(undefined,
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RoleEnvironment xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Deployment id=\"92f5cd71a4c048ed94e1b130bd0c4639\" emulated=\"false\" />" +
"<CurrentInstance id=\"geophotoapp_IN_0\" roleName=\"geophotoapp\" faultDomain=\"0\" updateDomain=\"0\">" +
"<ConfigurationSettings />" +
"<LocalResources>" +
"<LocalResource name=\"DiagnosticStore\" path=\"somepath.DiagnosticStore\" sizeInMB=\"4096\" />" +
"</LocalResources>" +
"<Endpoints>" +
"<Endpoint name=\"HttpIn\" address=\"10.114.250.21\" port=\"80\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</CurrentInstance>" +
"<Roles />" +
"</RoleEnvironment>");
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RoleEnvironment xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Deployment id=\"92f5cd71a4c048ed94e1b130bd0c4639\" emulated=\"false\" />" +
"<CurrentInstance id=\"geophotoapp_IN_0\" roleName=\"geophotoapp\" faultDomain=\"0\" updateDomain=\"0\">" +
"<ConfigurationSettings />" +
"<LocalResources>" +
"<LocalResource name=\"DiagnosticStore\" path=\"somepath.DiagnosticStore\" sizeInMB=\"4096\" />" +
"</LocalResources>" +
"<Endpoints>" +
"<Endpoint name=\"HttpIn\" address=\"10.114.250.21\" port=\"80\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</CurrentInstance>" +
"<Roles />" +
"</RoleEnvironment>");
} else {
callback('wrong file');
}
@ -262,24 +262,24 @@ suite('roleenvironment-tests', function () {
runtimeKernel.namedPipeInputChannel._readData = function (name, callback) {
if (name === '\\\\.\\pipe\\WindowsAzureRuntime') {
callback(undefined,
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RuntimeServerDiscovery xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<RuntimeServerEndpoints>" +
"<RuntimeServerEndpoint version=\"2011-03-08\" path=\"SomePath.GoalState\" />" +
"</RuntimeServerEndpoints>" +
"</RuntimeServerDiscovery>");
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RuntimeServerDiscovery xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<RuntimeServerEndpoints>" +
"<RuntimeServerEndpoint version=\"2011-03-08\" path=\"SomePath.GoalState\" />" +
"</RuntimeServerEndpoints>" +
"</RuntimeServerDiscovery>");
} else if (name === 'SomePath.GoalState') {
callback(undefined,
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<GoalState xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Incarnation>1</Incarnation>" +
"<ExpectedState>Started</ExpectedState>" +
"<RoleEnvironmentPath>C:\\file.xml</RoleEnvironmentPath>" +
"<CurrentStateEndpoint>\\.\pipe\WindowsAzureRuntime.CurrentState</CurrentStateEndpoint>" +
"<Deadline>9999-12-31T23:59:59.9999999</Deadline>" +
"</GoalState>");
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<GoalState xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Incarnation>1</Incarnation>" +
"<ExpectedState>Started</ExpectedState>" +
"<RoleEnvironmentPath>C:\\file.xml</RoleEnvironmentPath>" +
"<CurrentStateEndpoint>\\.\pipe\WindowsAzureRuntime.CurrentState</CurrentStateEndpoint>" +
"<Deadline>9999-12-31T23:59:59.9999999</Deadline>" +
"</GoalState>");
} else {
callback('wrong file');
}
@ -288,44 +288,44 @@ suite('roleenvironment-tests', function () {
runtimeKernel.fileInputChannel._readData = function (name, callback) {
if (name === 'C:\\file.xml') {
callback(undefined,
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RoleEnvironment xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Deployment id=\"92f5cd71a4c048ed94e1b130bd0c4639\" emulated=\"false\" />" +
"<CurrentInstance id=\"geophotoapp_IN_0\" roleName=\"role1\" faultDomain=\"0\" updateDomain=\"0\">" +
"<ConfigurationSettings />" +
"<LocalResources />" +
"<Endpoints>" +
"<Endpoint name=\"HttpIn\" address=\"10.114.250.21\" port=\"80\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</CurrentInstance>" +
"<Roles>" +
"<Role name=\"role1\">" +
"<Instances>" +
"<Instance id=\"deployment16(191).test.role1_IN_0\" faultDomain=\"0\" updateDomain=\"0\">" +
"<Endpoints>" +
"<Endpoint name=\"MyInternalEndpoint1\" address=\"127.255.0.0\" port=\"20000\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</Instance>" +
"</Instances>" +
"</Role>" +
"<Role name=\"role2\">" +
"<Instances>" +
"<Instance id=\"deployment16(191).test.role2_IN_0\" faultDomain=\"0\" updateDomain=\"0\">" +
"<Endpoints>" +
"<Endpoint name=\"MyInternalEndpoint2\" address=\"127.255.0.2\" port=\"20002\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</Instance>" +
"<Instance id=\"deployment16(191).test.role2_IN_1\" faultDomain=\"0\" updateDomain=\"0\">" +
"<Endpoints>" +
"<Endpoint name=\"MyInternalEndpoint3\" address=\"127.255.0.3\" port=\"20002\" protocol=\"tcp\" />" +
"<Endpoint name=\"MyInternalEndpoint4\" address=\"127.255.0.3\" port=\"20004\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</Instance>" +
"</Instances>" +
"</Role>" +
"</Roles>" +
"</RoleEnvironment>");
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RoleEnvironment xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Deployment id=\"92f5cd71a4c048ed94e1b130bd0c4639\" emulated=\"false\" />" +
"<CurrentInstance id=\"geophotoapp_IN_0\" roleName=\"role1\" faultDomain=\"0\" updateDomain=\"0\">" +
"<ConfigurationSettings />" +
"<LocalResources />" +
"<Endpoints>" +
"<Endpoint name=\"HttpIn\" address=\"10.114.250.21\" port=\"80\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</CurrentInstance>" +
"<Roles>" +
"<Role name=\"role1\">" +
"<Instances>" +
"<Instance id=\"deployment16(191).test.role1_IN_0\" faultDomain=\"0\" updateDomain=\"0\">" +
"<Endpoints>" +
"<Endpoint name=\"MyInternalEndpoint1\" address=\"127.255.0.0\" port=\"20000\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</Instance>" +
"</Instances>" +
"</Role>" +
"<Role name=\"role2\">" +
"<Instances>" +
"<Instance id=\"deployment16(191).test.role2_IN_0\" faultDomain=\"0\" updateDomain=\"0\">" +
"<Endpoints>" +
"<Endpoint name=\"MyInternalEndpoint2\" address=\"127.255.0.2\" port=\"20002\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</Instance>" +
"<Instance id=\"deployment16(191).test.role2_IN_1\" faultDomain=\"0\" updateDomain=\"0\">" +
"<Endpoints>" +
"<Endpoint name=\"MyInternalEndpoint3\" address=\"127.255.0.3\" port=\"20002\" protocol=\"tcp\" />" +
"<Endpoint name=\"MyInternalEndpoint4\" address=\"127.255.0.3\" port=\"20004\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</Instance>" +
"</Instances>" +
"</Role>" +
"</Roles>" +
"</RoleEnvironment>");
} else {
callback('wrong file');
}
@ -351,24 +351,24 @@ suite('roleenvironment-tests', function () {
runtimeKernel.namedPipeInputChannel._readData = function (name, callback) {
if (name === '\\\\.\\pipe\\WindowsAzureRuntime') {
callback(undefined,
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RuntimeServerDiscovery xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<RuntimeServerEndpoints>" +
"<RuntimeServerEndpoint version=\"2011-03-08\" path=\"SomePath.GoalState\" />" +
"</RuntimeServerEndpoints>" +
"</RuntimeServerDiscovery>");
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RuntimeServerDiscovery xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<RuntimeServerEndpoints>" +
"<RuntimeServerEndpoint version=\"2011-03-08\" path=\"SomePath.GoalState\" />" +
"</RuntimeServerEndpoints>" +
"</RuntimeServerDiscovery>");
} else if (name === 'SomePath.GoalState') {
callback(undefined,
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<GoalState xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Incarnation>1</Incarnation>" +
"<ExpectedState>Started</ExpectedState>" +
"<RoleEnvironmentPath>C:\\file.xml</RoleEnvironmentPath>" +
"<CurrentStateEndpoint>\\.\pipe\WindowsAzureRuntime.CurrentState</CurrentStateEndpoint>" +
"<Deadline>9999-12-31T23:59:59.9999999</Deadline>" +
"</GoalState>");
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<GoalState xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Incarnation>1</Incarnation>" +
"<ExpectedState>Started</ExpectedState>" +
"<RoleEnvironmentPath>C:\\file.xml</RoleEnvironmentPath>" +
"<CurrentStateEndpoint>\\.\pipe\WindowsAzureRuntime.CurrentState</CurrentStateEndpoint>" +
"<Deadline>9999-12-31T23:59:59.9999999</Deadline>" +
"</GoalState>");
} else {
callback('wrong file');
}
@ -377,44 +377,44 @@ suite('roleenvironment-tests', function () {
runtimeKernel.fileInputChannel._readData = function (name, callback) {
if (name === 'C:\\file.xml') {
callback(undefined,
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RoleEnvironment xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Deployment id=\"92f5cd71a4c048ed94e1b130bd0c4639\" emulated=\"false\" />" +
"<CurrentInstance id=\"geophotoapp_IN_0\" roleName=\"role1\" faultDomain=\"0\" updateDomain=\"0\">" +
"<ConfigurationSettings />" +
"<LocalResources />" +
"<Endpoints>" +
"<Endpoint name=\"HttpIn\" address=\"10.114.250.21\" port=\"80\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</CurrentInstance>" +
"<Roles>" +
"<Role name=\"role1\">" +
"<Instances>" +
"<Instance id=\"deployment16(191).test.role1_IN_0\" faultDomain=\"0\" updateDomain=\"0\">" +
"<Endpoints>" +
"<Endpoint name=\"MyInternalEndpoint1\" address=\"127.255.0.0\" port=\"20000\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</Instance>" +
"</Instances>" +
"</Role>" +
"<Role name=\"role2\">" +
"<Instances>" +
"<Instance id=\"deployment16(191).test.role2_IN_0\" faultDomain=\"0\" updateDomain=\"0\">" +
"<Endpoints>" +
"<Endpoint name=\"MyInternalEndpoint2\" address=\"127.255.0.2\" port=\"20002\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</Instance>" +
"<Instance id=\"deployment16(191).test.role2_IN_1\" faultDomain=\"0\" updateDomain=\"0\">" +
"<Endpoints>" +
"<Endpoint name=\"MyInternalEndpoint3\" address=\"127.255.0.3\" port=\"20002\" protocol=\"tcp\" />" +
"<Endpoint name=\"MyInternalEndpoint4\" address=\"127.255.0.3\" port=\"20004\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</Instance>" +
"</Instances>" +
"</Role>" +
"</Roles>" +
"</RoleEnvironment>");
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RoleEnvironment xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Deployment id=\"92f5cd71a4c048ed94e1b130bd0c4639\" emulated=\"false\" />" +
"<CurrentInstance id=\"geophotoapp_IN_0\" roleName=\"role1\" faultDomain=\"0\" updateDomain=\"0\">" +
"<ConfigurationSettings />" +
"<LocalResources />" +
"<Endpoints>" +
"<Endpoint name=\"HttpIn\" address=\"10.114.250.21\" port=\"80\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</CurrentInstance>" +
"<Roles>" +
"<Role name=\"role1\">" +
"<Instances>" +
"<Instance id=\"deployment16(191).test.role1_IN_0\" faultDomain=\"0\" updateDomain=\"0\">" +
"<Endpoints>" +
"<Endpoint name=\"MyInternalEndpoint1\" address=\"127.255.0.0\" port=\"20000\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</Instance>" +
"</Instances>" +
"</Role>" +
"<Role name=\"role2\">" +
"<Instances>" +
"<Instance id=\"deployment16(191).test.role2_IN_0\" faultDomain=\"0\" updateDomain=\"0\">" +
"<Endpoints>" +
"<Endpoint name=\"MyInternalEndpoint2\" address=\"127.255.0.2\" port=\"20002\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</Instance>" +
"<Instance id=\"deployment16(191).test.role2_IN_1\" faultDomain=\"0\" updateDomain=\"0\">" +
"<Endpoints>" +
"<Endpoint name=\"MyInternalEndpoint3\" address=\"127.255.0.3\" port=\"20002\" protocol=\"tcp\" />" +
"<Endpoint name=\"MyInternalEndpoint4\" address=\"127.255.0.3\" port=\"20004\" protocol=\"tcp\" />" +
"</Endpoints>" +
"</Instance>" +
"</Instances>" +
"</Role>" +
"</Roles>" +
"</RoleEnvironment>");
} else {
callback('wrong file');
}
@ -441,24 +441,24 @@ suite('roleenvironment-tests', function () {
runtimeKernel.namedPipeInputChannel._readData = function (name, callback) {
if (name === '\\\\.\\pipe\\WindowsAzureRuntime') {
callback(undefined,
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RuntimeServerDiscovery xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<RuntimeServerEndpoints>" +
"<RuntimeServerEndpoint version=\"2011-03-08\" path=\"SomePath.GoalState\" />" +
"</RuntimeServerEndpoints>" +
"</RuntimeServerDiscovery>");
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RuntimeServerDiscovery xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<RuntimeServerEndpoints>" +
"<RuntimeServerEndpoint version=\"2011-03-08\" path=\"SomePath.GoalState\" />" +
"</RuntimeServerEndpoints>" +
"</RuntimeServerDiscovery>");
} else if (name === 'SomePath.GoalState') {
callback(undefined,
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<GoalState xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Incarnation>1</Incarnation>" +
"<ExpectedState>Started</ExpectedState>" +
"<RoleEnvironmentPath>C:\\file.xml</RoleEnvironmentPath>" +
"<CurrentStateEndpoint>\\.\pipe\WindowsAzureRuntime.CurrentState</CurrentStateEndpoint>" +
"<Deadline>9999-12-31T23:59:59.9999999</Deadline>" +
"</GoalState>");
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<GoalState xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Incarnation>1</Incarnation>" +
"<ExpectedState>Started</ExpectedState>" +
"<RoleEnvironmentPath>C:\\file.xml</RoleEnvironmentPath>" +
"<CurrentStateEndpoint>\\.\pipe\WindowsAzureRuntime.CurrentState</CurrentStateEndpoint>" +
"<Deadline>9999-12-31T23:59:59.9999999</Deadline>" +
"</GoalState>");
} else {
callback('wrong file');
}
@ -467,17 +467,17 @@ suite('roleenvironment-tests', function () {
runtimeKernel.fileInputChannel._readData = function (name, callback) {
if (name === 'C:\\file.xml') {
callback(undefined,
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RoleEnvironment xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Deployment id=\"deploymentId\" emulated=\"false\" />" +
"<CurrentInstance id=\"test\" roleName=\"test\" faultDomain=\"0\" updateDomain=\"0\">" +
"<ConfigurationSettings />" +
"<LocalResources />" +
"<Endpoints />" +
"</CurrentInstance>" +
"<Roles />" +
"</RoleEnvironment>");
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RoleEnvironment xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Deployment id=\"deploymentId\" emulated=\"false\" />" +
"<CurrentInstance id=\"test\" roleName=\"test\" faultDomain=\"0\" updateDomain=\"0\">" +
"<ConfigurationSettings />" +
"<LocalResources />" +
"<Endpoints />" +
"</CurrentInstance>" +
"<Roles />" +
"</RoleEnvironment>");
} else {
callback('wrong file');
}
@ -655,17 +655,17 @@ suite('roleenvironment-tests', function () {
runtimeKernel.fileInputChannel._readData = function (name, callback) {
if (name === 'C:\\file.xml') {
callback(undefined,
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RoleEnvironment xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Deployment id=\"deploymentId\" emulated=\"false\" />" +
"<CurrentInstance id=\"test\" roleName=\"test\" faultDomain=\"0\" updateDomain=\"0\">" +
"<ConfigurationSettings />" +
"<LocalResources />" +
"<Endpoints />" +
"</CurrentInstance>" +
"<Roles />" +
"</RoleEnvironment>");
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RoleEnvironment xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Deployment id=\"deploymentId\" emulated=\"false\" />" +
"<CurrentInstance id=\"test\" roleName=\"test\" faultDomain=\"0\" updateDomain=\"0\">" +
"<ConfigurationSettings />" +
"<LocalResources />" +
"<Endpoints />" +
"</CurrentInstance>" +
"<Roles />" +
"</RoleEnvironment>");
} else {
console.log('hahah: ' + name);
callback('wrong file');
@ -692,24 +692,24 @@ suite('roleenvironment-tests', function () {
runtimeKernel.namedPipeInputChannel._readData = function (name, callback) {
if (name === '\\\\.\\pipe\\WindowsAzureRuntime') {
callback(undefined,
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RuntimeServerDiscovery xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<RuntimeServerEndpoints>" +
"<RuntimeServerEndpoint version=\"2011-03-08\" path=\"SomePath.GoalState\" />" +
"</RuntimeServerEndpoints>" +
"</RuntimeServerDiscovery>");
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RuntimeServerDiscovery xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<RuntimeServerEndpoints>" +
"<RuntimeServerEndpoint version=\"2011-03-08\" path=\"SomePath.GoalState\" />" +
"</RuntimeServerEndpoints>" +
"</RuntimeServerDiscovery>");
} else if (name === 'SomePath.GoalState') {
callback(undefined,
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<GoalState xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Incarnation>1</Incarnation>" +
"<ExpectedState>Started</ExpectedState>" +
"<RoleEnvironmentPath>C:\\file.xml</RoleEnvironmentPath>" +
"<CurrentStateEndpoint>\\.\pipe\WindowsAzureRuntime.CurrentState</CurrentStateEndpoint>" +
"<Deadline>9999-12-31T23:59:59.9999999</Deadline>" +
"</GoalState>");
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<GoalState xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Incarnation>1</Incarnation>" +
"<ExpectedState>Started</ExpectedState>" +
"<RoleEnvironmentPath>C:\\file.xml</RoleEnvironmentPath>" +
"<CurrentStateEndpoint>\\.\pipe\WindowsAzureRuntime.CurrentState</CurrentStateEndpoint>" +
"<Deadline>9999-12-31T23:59:59.9999999</Deadline>" +
"</GoalState>");
} else {
callback('wrong file');
}
@ -718,17 +718,17 @@ suite('roleenvironment-tests', function () {
runtimeKernel.fileInputChannel._readData = function (name, callback) {
if (name === 'C:\\file.xml') {
callback(undefined,
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RoleEnvironment xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Deployment id=\"deploymentId\" emulated=\"false\" />" +
"<CurrentInstance id=\"test\" roleName=\"test\" faultDomain=\"0\" updateDomain=\"0\">" +
"<ConfigurationSettings />" +
"<LocalResources />" +
"<Endpoints />" +
"</CurrentInstance>" +
"<Roles />" +
"</RoleEnvironment>");
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<RoleEnvironment xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
"<Deployment id=\"deploymentId\" emulated=\"false\" />" +
"<CurrentInstance id=\"test\" roleName=\"test\" faultDomain=\"0\" updateDomain=\"0\">" +
"<ConfigurationSettings />" +
"<LocalResources />" +
"<Endpoints />" +
"</CurrentInstance>" +
"<Roles />" +
"</RoleEnvironment>");
} else {
callback('wrong file');
}