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
return Math.random() | |
.toString(36) | |
.substr(2, 6) | |
.toUpperCase(); // e.g. 'CM2JUR' | |
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
const product = { | |
name: 'Our testing product', | |
description: 'a product object used for testing', | |
type: 'TICKET', | |
createdAt: '2020-11-20T15:03:35.219Z', | |
createdBy: 'auth0|0', | |
lastUpdatedAt: '2020-11-20T15:03:35.219Z', | |
lastUpdatedBy: 'auth0|0', | |
}; |
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
// You can edit this code! | |
// Click here and start typing. | |
package main | |
import ( | |
"fmt" | |
"encoding/json" | |
) | |
func main() { |
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
PS C:\Users\Administrator> Get-WindowsFeature | where-object { $_.installed -eq $true } | |
Display Name Name Install State | |
------------ ---- ------------- | |
[X] Application Server Application-Server Installed | |
[X] .NET Framework 4.5 AS-NET-Framework Installed | |
[X] File and Storage Services FileAndStorage-Services Installed | |
[X] Storage Services Storage-Services Installed | |
[X] Web Server (IIS) Web-Server Installed | |
[X] Web Server Web-WebServer Installed |
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
I, [2016-12-01T14:16:30.834891 #15368] INFO -- default-windows-2012R2: -----> Verifying <default-windows-2012R2>... | |
I, [2016-12-01T14:16:30.970906 #15368] INFO -- default-windows-2012R2: Using `C:/chef-repo/cookbooks/pulse_web/test/recipes/default` for testing | |
E, [2016-12-01T14:16:52.435799 #15368] ERROR -- default-windows-2012R2: Verify failed on instance <default-windows-2012R2>. | |
E, [2016-12-01T14:16:52.435799 #15368] ERROR -- default-windows-2012R2: ------Exception------- | |
E, [2016-12-01T14:16:52.435799 #15368] ERROR -- default-windows-2012R2: Class: Kitchen::ActionFailed | |
E, [2016-12-01T14:16:52.435799 #15368] ERROR -- default-windows-2012R2: Message: Inspec Runner returns 1 | |
E, [2016-12-01T14:16:52.435799 #15368] ERROR -- default-windows-2012R2: ---------------------- | |
E, [2016-12-01T14:16:52.435799 #15368] ERROR -- default-windows-2012R2: ------Backtrace------- | |
E, [2016-12-01T14:16:52.436798 #15368] ERROR -- default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/kitchen-inspec-0.16.1/ |
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
powershell_script 'Configure the LCM' do | |
code <<-EOH | |
Configuration ConfigLCM | |
{ | |
Node "localhost" | |
{ | |
LocalConfigurationManager | |
{ | |
ConfigurationMode = "ApplyOnly" | |
RebootNodeIfNeeded = $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
# | |
# Cookbook Name:: pulse_web | |
# Spec:: default | |
# | |
# Copyright (c) 2016 The Authors, All Rights Reserved. | |
require 'spec_helper' | |
describe 'pulse_web::default' do | |
let(:chef_run) do |