<commit_before>(ns celestial.integration.vsphere
  "VSphere integration test, require a vpshere instance to be configured"
  (:use 
     midje.sweet 
     vsphere.provider 
     vsphere.guest
     [vsphere.vijava :only (guest-status)]
     [celestial.fixtures :only (redis-vsphere-spec with-conf)]
     [celestial.model :only (vconstruct)]))

(with-conf
  (fact "creating a virtualmachine" :integration :vsphere
    (let [vm (vconstruct redis-vsphere-spec)]
      (.create vm)
      (.start vm)
      (.status vm)  => :running
      (guest-status (get-in redis-vsphere-spec [:machine :hostname]))  => :running
      (.stop vm)
      (.status vm)  => :stopped
      (.delete vm)
      )))<commit_msg>adding start again since create starts up as well<commit_after>(ns celestial.integration.vsphere
  "VSphere integration test, require a vpshere instance to be configured"
  (:use 
     midje.sweet 
     vsphere.provider 
     vsphere.guest
     [vsphere.vijava :only (guest-status)]
     [celestial.fixtures :only (redis-vsphere-spec with-conf)]
     [celestial.model :only (vconstruct)]))

(with-conf
  (fact "creating a virtualmachine" :integration :vsphere
    (let [vm (vconstruct redis-vsphere-spec)]
      (.create vm)
      (.start vm)
      (.status vm)  => :running
      (guest-status (get-in redis-vsphere-spec [:machine :hostname]))  => :running
      (.stop vm)
      (.status vm)  => :stopped
      (.start vm)
      (.stop vm)
      (.delete vm)
      )))
{'fraction_non_alphanumeric': 0.13206262763784887, 'fraction_numerical': 0.0, 'mean_word_length': 2.798449612403101, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4317930', 'n_tokens_mistral': 505, 'n_tokens_neox': 474, 'n_words': 126}